Gdb - "thread apply all bt full" gives an empty

I tried to debug a multi-threaded process on a Linux server running Slackware 12 using gdb 6.6. Once I attach and issue the "thread apply all bt full" command, it returns with nothing (back to the gdb prompt).

Any idea why this is happening?

+2
source share
2 answers

Try the latest version of GDB. 7.1 or 7.2. Everything should work.

0
source

I ran into this problem and found that I can fix it as follows:

  • run "bt". this should show the reverse flow line, although it may not be the one you need.
  • now "cont".
  • press ctrl + c. I see something like "[Switching to LWP% d]"
  • press ctrl + c again. it breaks in the thread, I want to see the backtracking, but it also seems to start working "thread apply all bt full".
+1
source

All Articles