On Thu, Dec 10, 1998 at 06:22:54PM -0500, Tom wrote: > Could anyone please answer these questions about segmentation faults? > What is a Segmentation Fault? How do I trace its cause? How are they > normally fixed. Why don't I get a core dump when they happen? Thank you
It's a memory access violation. It could happen (for example) by writing to read-only memory or by writing outside of the process memory space. It could be caused by a null-pointer dereference. If your executable that's crashing has debug symbols in it, you can run it from the gdb debugger. Reproduce the problem and gdb will show you the line of offending code. You may also learn something by using strace or ltrace on the program. You don't get a core dump because you have core dumps disabled. The command "ulimit -c" controls the creation and maximum size of core files. A core file will probably not be useful to you unless the binary that's crashing has debug info in it. Regards, Jeff