Howto:Build and run FlightGear on Raspberry Pi 4: Difference between revisions

Jump to navigation Jump to search
Line 1,141: Line 1,141:


|}
|}
==Backtrace using gdb: and Download_and_compile.sh==
Tracking down a crash with <code>double free corruption (fasttop)</code>
Set environment variable:
<syntaxhighlight>
set environment MALLOC_CHECK_ 2
</syntaxhighlight>
Next run FlightGear with debug:
<syntaxhighlight lang="bash">
./run_fgfs_debug.sh --launcher
</syntaxhighlight>
Use the below gdb commands <code> handle SIGPIPE nostop and handle SIG32 nostop</code>  to skip innocent events:
<syntaxhighlight>
gdb: handle SIGPIPE nostop
gdb: handle SIG32 nostop
</syntaxhighlight>
Use <code>r</code> within gdb to run FlightGear:
<syntaxhighlight>
gdb: r
</syntaxhighlight>
After the crash use the gdb command <code>bt</code> to print the backtrace:
<syntaxhighlight>
gdb: bt
</syntaxhighlight>


== Feature Scaling - FlightGear ==
== Feature Scaling - FlightGear ==
320

edits

Navigation menu