From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20764 invoked by alias); 19 Jul 2008 14:57:48 -0000 Received: (qmail 20755 invoked by uid 22791); 19 Jul 2008 14:57:47 -0000 X-Spam-Check-By: sourceware.org Received: from node01.cambriumhosting.nl (HELO node01.cambriumhosting.nl) (217.19.16.162) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 19 Jul 2008 14:57:22 +0000 Received: from localhost (localhost [127.0.0.1]) by node01.cambriumhosting.nl (Postfix) with ESMTP id C267FB000254 for ; Sat, 19 Jul 2008 16:57:19 +0200 (CEST) Received: from node01.cambriumhosting.nl ([127.0.0.1]) by localhost (node01.cambriumhosting.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qbJIwjPjG-K1 for ; Sat, 19 Jul 2008 16:57:19 +0200 (CEST) Received: from ashley.powercraft.nl (84-245-3-195.dsl.cambrium.nl [84.245.3.195]) by node01.cambriumhosting.nl (Postfix) with ESMTP id 50BECB000110 for ; Sat, 19 Jul 2008 16:57:19 +0200 (CEST) Received: by ashley.powercraft.nl (Postfix, from userid 108) id 112CD23BC687; Sat, 19 Jul 2008 16:57:19 +0200 (CEST) Received: from [192.168.1.239] (unknown [192.168.1.239]) by ashley.powercraft.nl (Postfix) with ESMTPSA id C7AAA23BC56C for ; Sat, 19 Jul 2008 16:57:18 +0200 (CEST) Message-ID: <488200CC.6000900@powercraft.nl> Date: Sat, 19 Jul 2008 15:00:00 -0000 From: Jelle de Jong User-Agent: Mozilla-Thunderbird 2.0.0.14 (X11/20080509) MIME-Version: 1.0 To: gdb@sourceware.org Subject: how can i stop a running process to do a backtrace? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-07/txt/msg00223.txt.bz2 -----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-----