13. Run the Debugger: gdb
% pwd /home/perry/osp/crash % gdb -q src/crash Reading symbols from src/crash...done. (gdb) run Starting program: /home/perry/osp/crash/src/crash hello Program received signal SIGSEGV, Segmentation fault. 0x000055555555464f in main () at main.c:6 6 *(int *)1000 = 1; // should crash here (gdb) where #0 0x000055555555464f in main () at main.c:6 (gdb) quit A debugging session is active. Inferior 1 [process 7189] will be killed. Quit anyway? (y or n) y %