|
|
Line 29: |
Line 29: |
| <syntaxhighlight lang="bash"> | | <syntaxhighlight lang="bash"> |
| sudo rpi-update (DO NOT USE) | | sudo rpi-update (DO NOT USE) |
| </syntaxhighlight>
| |
|
| |
| ==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> | | </syntaxhighlight> |
|
| |
|