From: Daniel Jacobowitz <drow@false.org>
To: Steffen Schumacher <STEFF@tdc.dk>
Cc: gdb@sourceware.org
Subject: Re: Which thread caused dump?
Date: Tue, 29 Aug 2006 12:39:00 -0000 [thread overview]
Message-ID: <20060829123901.GA12955@nevyn.them.org> (raw)
In-Reply-To: <2B1831460E7C6B46A19066A0E9147A4E0C173F@VESTMB403A.tdk.dk>
On Tue, Aug 29, 2006 at 12:42:40PM +0200, Steffen Schumacher wrote:
> Hi!
>
> I have a multithreaded program which coredumps after ~20 hours of
> running.
> Is it possible to see which thread caused the crash?
> Usually I use thr x and bt for seeing if some exception was thrown, but
> I have a case where no thread is throwing any exceptions.
>
> I've enclosed output from the actual core dump.. any other cmd's I
> should know of?
> Any help on discovering why it is crashing would be greatly
> appreciated..
Generally the first thread that comes up is the one that crashed.
> Program terminated with signal 11, Segmentation fault.
> * 10 LWP 100080 0x2834f4ab in pthread_testcancel () from
> /usr/lib/libpthread.so.2
> (gdb) thr 10
> [Switching to thread 10 (LWP 100080)]#0 0x2834f46b in
> pthread_testcancel () from /usr/lib/libpthread.so.2
> (gdb) bt
> #0 0x2834f46b in pthread_testcancel () from /usr/lib/libpthread.so.2
> #1 0x28347e3c in pthread_mutexattr_init () from
> /usr/lib/libpthread.so.2
> #2 0x284fa450 in ?? ()
> (gdb)
>
So probably right there.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2006-08-29 12:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1156847520.29200.ezmlm@sourceware.org>
2006-08-29 10:42 ` Steffen Schumacher
2006-08-29 12:39 ` Daniel Jacobowitz [this message]
2006-08-29 13:23 ` SV: " Steffen Schumacher
2006-08-29 13:27 ` Daniel Jacobowitz
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=20060829123901.GA12955@nevyn.them.org \
--to=drow@false.org \
--cc=STEFF@tdc.dk \
--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