how can i stop a running process to do a backtrace?

Jelle de Jong
Sat Jul 19 15:00:00 GMT 2008

Hash: SHA1


My name is Jelle and i am new to this list, so thanks you for all the
hard work everybody is doing on the gdb debugger.

I have a problem with freezing sshfs mounts on my systems, so I wanted
to debug the sshfs system.

I contacted the fuse-devel mailinglist and ask them how I could help to
create some usefull bug reports, they told me to do some backtrace with
gdb: (the archive does not seem to be working on this moment)
Message-ID: <>

I use debian sid and there were no sshfs-dbg packages, so I created a
bug-report and attached my debdiff and new deb packages:

I now wanted to run my gdb in the following way:

pidof sshfs

gdb 2>&1 | tee gdb-sshfs.txt
(gdb) handle SIG33 pass nostop noprint
(gdb) set pagination 0
(gdb) attach 1948
(gdb) continue
# ok how to stop the continue command so i can do a backtrace?
# kill 1948 wil stop the process but leaves no traceabale info
(gdb) backtrace full
(gdb) info registers
(gdb) thread apply all backtrace
(gdb) quit

But when the gdb is in "Continue" mode and the sshfs is freezing i want
to go back to gdb and do a backtrace its still in "Continue" mode and i
cant do anything. If i kill sshfs then there is no backtrace information
left. So how can i get debug information out of my frozen sshfs program?

I asked this question today on the IRC channel with an exception of hlep
from "jeremybennett" nobody was there. So i decided to send this mail.

I hope somebody can help me?

Best regards,

Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla -


More information about the Gdb mailing list