From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30575 invoked by alias); 29 Aug 2006 12:39:10 -0000 Received: (qmail 30564 invoked by uid 22791); 29 Aug 2006 12:39:10 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 29 Aug 2006 12:39:05 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GI2ru-0003R5-OX; Tue, 29 Aug 2006 08:39:02 -0400 Date: Tue, 29 Aug 2006 12:39:00 -0000 From: Daniel Jacobowitz To: Steffen Schumacher Cc: gdb@sourceware.org Subject: Re: Which thread caused dump? Message-ID: <20060829123901.GA12955@nevyn.them.org> Mail-Followup-To: Steffen Schumacher , gdb@sourceware.org References: <1156847520.29200.ezmlm@sourceware.org> <2B1831460E7C6B46A19066A0E9147A4E0C173F@VESTMB403A.tdk.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2B1831460E7C6B46A19066A0E9147A4E0C173F@VESTMB403A.tdk.dk> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00209.txt.bz2 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