RMS's gdb Tutorial: Segmentation Fault Example
A Question-And-Answer tutorial on how to use GDB (the GNU Debugger) ... 7.2 Example Debugging Session: Segmentation Fault Example We are going to use gdb to figure out why the following program causes a segmentation fault....