How to track down segmentation fault in Linux

segmentation-fault

My server went down suddenly and the ISP supports says it may have had a segmentation fault. I am wondering how to track down and possibly fix this so it will not occur again?

Thanks

Best Answer

Such segfaults are usually logged in the system's syslog facility. The exact name of which changes by distro, though dmesg should have it if it's recent enough; it'll be in /var/log one way or the other, though.

Interpreting the message will be another story entirely. But at least you'll know what faulted.