Tomographer  v5.4
Tomographer C++ Framework Documentation
Useful Resources for Debugging

CORE Files & GDB/DDD

  • Don't forget to compile code with g++ -g to include debugging information
  • ulimit -c unlimited — generate core files
  • ./path/to/program — if it crashes, generates core file
  • gdb ./path/to/program -c core — load core file into GDB
  • inside GDB: bt — display backtrace

Using libSegFault.so

Useful trick:

env SEGFAULT_SIGNALS="abrt segv" LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so ./path/to/program (adapt to location of libSegFault.so): this will print the stack trace if the given signals are caught. You don't get line numbers though.