Differences between revisions 4 and 5
Revision 4 as of 2012-03-22 15:55:01
Size: 847
Editor: dsl4E5C0633
Comment:
Revision 5 as of 2016-05-07 21:04:13
Size: 882
Editor: dx
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from GetTrace

How to get backtrace (on Linux)?

The backtrace is useful when the application crashes or freezes. You might use the following steps:

1. Rebuild BitlBee with --debug=1 (if you're using the Debian packages from http://code.bitlbee.org/debian/ you don't need to do this)

2. Start the debugger with the binary and log the output:

gdb --args ./bitlbee -v -n -D 2>&1 | tee /tmp/gdb.log

3. Inside the debugger, start the application:

run

4. Do the steps to reproduce the application crash or freeze. If the freeze is the case, you need to press CTRL-C in gdb to get the gdb commandline back.

5. Produce the backtrace:

bt

6. Quit the debugger

quit

7. Attach the whole gdb.log to the bug report. Remember to include the exact BitlBee version used to create your backtrace.

BitlBee Wiki: DebuggingCrashes (last edited 2018-02-06 17:11:06 by 2800:810:46b:747:76d4:35ff:feeb:fa02)