This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
how can i stop a running process to do a backtrace?
- From: Jelle de Jong <jelledejong at powercraft dot nl>
- To: gdb at sourceware dot org
- Date: Sat, 19 Jul 2008 16:57:16 +0200
- Subject: how can i stop a running process to do a backtrace?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
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: <487C568C.4010504@powercraft.nl>
https://lists.sourceforge.net/lists/listinfo/fuse-devel
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:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=491210
I now wanted to run my gdb in the following way:
pidof sshfs
1948
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,
Jelle
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iJwEAQECAAYFAkiCAMoACgkQ1WclBW9j5HnhegQAjKoIl1zAAtR+bPFYJlinZLK1
KOKXCBvceuk1ri6neb3aGK/RsWtKf63hP4VLrdT8Gh6Aif5GWAR6ojhe7HI5yrKl
1roeSf4/0rPSpgY7coIopcsgcKBLAqMxpXdD/sbw6clLMOcE5pIn3+5BbvjW1Z0V
V7o+q7CXqgJUg3Gy0KY=
=Poet
-----END PGP SIGNATURE-----