From: Michael Friedrich Date: Tue, 15 Mar 2016 08:45:27 +0000 (+0100) Subject: Update development docs to use 'thread apply all bt full' X-Git-Tag: v2.4.4~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed4378e52113174f4739e45038d044e65849957b;p=icinga2 Update development docs to use 'thread apply all bt full' fixes #11385 --- diff --git a/doc/21-development.md b/doc/21-development.md index 62f3ba3e6..204ac76c9 100644 --- a/doc/21-development.md +++ b/doc/21-development.md @@ -156,12 +156,12 @@ a new gdb run. If Icinga 2 aborted its operation abnormally, generate a backtrace. (gdb) bt - (gdb) bt full + (gdb) thread apply all bt full -Generate a full backtrace for all threads and store it into a new file -(e.g. for debugging dead locks): +If Icinga 2 is still running generate a full backtrace from the running +process and store it into a new file (e.g. for debugging dead locks): - # gdb -p PID -batch -ex "thread apply all bt full" -ex "detach" -ex "q" > gdb_bt.log + # gdb -p $(pidof icinga2) -batch -ex "thread apply all bt full" -ex "detach" -ex "q" > gdb_bt.log If you're opening an issue at [https://dev.icinga.org] make sure to attach as much detail as possible.