Backtrace using gdb & Download and Compile.sh

From FlightGear wiki
Jump to navigation Jump to search


Tracking down a crash with double free corruption (fasttop)

Set environment variable:

set environment MALLOC_CHECK_ 2

Next run FlightGear with debug:

./run_fgfs_debug.sh --launcher

Use the below gdb commands handle SIGPIPE nostop and handle SIG32 nostop to skip innocent events:

gdb: handle SIGPIPE nostop
gdb: handle SIG32 nostop

Use r within gdb to run FlightGear:

gdb: r

After the crash use the gdb command bt to print the backtrace:

gdb: bt