Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: David Carlton <david.carlton@sun.com>
To: gdb <gdb@sourceware.org>
Subject: multithreaded core files
Date: Thu, 25 Jan 2007 19:40:00 -0000	[thread overview]
Message-ID: <yf264auj3np.fsf@luai12.SFBay.Sun.COM> (raw)

One of my coworkers is looking at a core file from a multithreaded
program.  (x86 Linux.)  In this situation, GDB only prints a backtrace
from the thread that actually seg faulted; he'd like to see what other
threads were doing at the time.

I assume there's no easy way to fix that, but he had the idea of
looking through the memory to find out where the other threads' stacks
are.  Not completely impossible - we know some of the functions to
expect in the other threads' backtraces, so we can come up with some
addresses to look for.

If we can find those other stacks, is there any way that we can try to
convince GDB to print out backtraces for them?  And even give us local
variable information?

Thanks,
David Carlton
david.carlton@sun.com


             reply	other threads:[~2007-01-25 19:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-25 19:40 David Carlton [this message]
2007-01-25 19:48 ` Daniel Jacobowitz
2007-01-25 19:54   ` Neo
2007-01-25 19:57     ` Daniel Jacobowitz
2007-01-25 20:04   ` David Carlton

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=yf264auj3np.fsf@luai12.SFBay.Sun.COM \
    --to=david.carlton@sun.com \
    --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