Tomographer
v1.0a
Tomographer C++ Framework Documentation
|
CORE Files & GDB/DDD
g++ -g
to include debugging informationulimit -c unlimited
— generate core
files./path/to/program
— if it crashes, generates core
filegdb ./path/to/program -c core
— load core file into GDBbt
— display backtraceUsing 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.