View Full Version : df command execution and segmentation fault
rajeshraoshindhe
January 10th, 2023, 08:05 AM
I get segmentation fault when I try to execute commands like df, cal, etc. Why does this happen ? Can anyone please tell me how to overcome this ?
QIII
January 10th, 2023, 08:08 AM
It would be quite helpful if you would post the entirety of the command issued and the results.
A segfault is most often raised by an attempt to access or write to an illegal memory location.
Impavidus
January 10th, 2023, 10:51 AM
Segmentations faults are normally the result of a bug in the program, so that's an error made by the programmer. It's somewhat unlikely such an error would be present in such commonly used tools, so I think something else must be going on. Is the tool used with a different version of the library than it was compiled for? Shouldn't happen if you installed all from the official repos.
Could you tell which version of Ubuntu you have installed?
TheFu
January 10th, 2023, 08:41 PM
If the disk used for temporary storage is 100% full, that can cause programs to crash. Remove some times and check that you don't have run-away log files eating all the storage.
journalctl --disk-usage
sudo journalctl --vacuum-size=200M
will let you see and massively reduce log file storage use for a bit. You'll need to figure out the root issue or later today, the same problem will happen.
Or it could be the other things mentioned above, but let's be optimistic and hope it is just huge log files. It is possible to limit the number and sizes of log files, BTW.
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.