-
Compile your application with
-g, then you’ll have debug symbols in the binary file. -
Use
gdbto open the gdb console. -
Use
fileand pass it your application’s binary file in the console. -
Use
runand pass in any arguments your application needs to start. -
Do something to cause a Segmentation Fault.
-
Type
btin thegdbconsole to get a stack trace of the Segmentation Fault.