Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jelle de Jong <jelledejong@powercraft.nl>
To: gdb@sourceware.org
Subject: Re: how can i stop a running process to do a backtrace?
Date: Sat, 19 Jul 2008 16:37:00 -0000	[thread overview]
Message-ID: <4882023D.5090705@powercraft.nl> (raw)
In-Reply-To: <20080719150017.GA18314@caradoc.them.org>

[-- Attachment #1: Type: text/plain, Size: 622 bytes --]

Daniel Jacobowitz wrote:
> On Sat, Jul 19, 2008 at 04:57:16PM +0200, Jelle de Jong wrote:
>> (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
> 
> What does it show in GDB after you do this?
> 
> It sounds like you're out of luck.  WHen programs, like fuse, go in
> and out of the kernel it is sometimes impossible for GDB to regain
> control.

Thank you for your fast response, I attached my logfile i created
yesterday.

After the sshfs froze i did a killall -9 sshfs and run the next gdb
commands.

Best regards,

Jelle


[-- Attachment #2: gdb-sshfs-v0,0.1.txt --]
[-- Type: text/plain, Size: 2047 bytes --]

GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
(gdb) handle SIG33 pass nostop noprint
Signal        Stop	Print	Pass to program	Description
SIG33         No	No	Yes		Real-time event 33
(gdb) set pagination 0
(gdb) attach 2312
Attaching to process 2312
Reading symbols from /usr/bin/sshfs...Reading symbols from /usr/lib/debug/usr/bin/sshfs...done.
done.
Reading symbols from /usr/lib/libfuse.so.2...done.
Loaded symbols for /usr/lib/libfuse.so.2
Reading symbols from /lib/i686/cmov/libdl.so.2...done.
Loaded symbols for /lib/i686/cmov/libdl.so.2
Reading symbols from /usr/lib/libgthread-2.0.so.0...done.
Loaded symbols for /usr/lib/libgthread-2.0.so.0
Reading symbols from /lib/i686/cmov/librt.so.1...done.
Loaded symbols for /lib/i686/cmov/librt.so.1
Reading symbols from /usr/lib/libglib-2.0.so.0...done.
Loaded symbols for /usr/lib/libglib-2.0.so.0
Reading symbols from /lib/i686/cmov/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread 0xb7d36960 (LWP 2312)]
[New Thread 0xb7d13b90 (LWP 2313)]
Loaded symbols for /lib/i686/cmov/libpthread.so.0
Reading symbols from /lib/i686/cmov/libc.so.6...done.
Loaded symbols for /lib/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libselinux.so.1...done.
Loaded symbols for /lib/libselinux.so.1
Reading symbols from /usr/lib/libpcre.so.3...done.
Loaded symbols for /usr/lib/libpcre.so.3
0xb7fde424 in __kernel_vsyscall ()
(gdb) continue
Continuing.

Program terminated with signal SIGKILL, Killed.
The program no longer exists.
(gdb) backtrace full
No stack.
(gdb) info registers
The program has no registers now.
(gdb) thread apply all backtrace
No registers.
(gdb) quit

  reply	other threads:[~2008-07-19 15:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-19 15:00 Jelle de Jong
2008-07-19 15:04 ` Daniel Jacobowitz
2008-07-19 16:37   ` Jelle de Jong [this message]
2008-07-19 18:25     ` Paul Pluzhnikov
2008-07-20 23:37       ` Jelle de Jong
2008-07-21  3:43         ` Paul Pluzhnikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4882023D.5090705@powercraft.nl \
    --to=jelledejong@powercraft.nl \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox