From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17072 invoked by alias); 13 Jul 2006 13:43:38 -0000 Received: (qmail 17063 invoked by uid 22791); 13 Jul 2006 13:43:38 -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; Thu, 13 Jul 2006 13:43:36 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G11Ta-0005wE-70; Thu, 13 Jul 2006 09:43:34 -0400 Date: Thu, 13 Jul 2006 13:43:00 -0000 From: Daniel Jacobowitz To: Jan Kratochvil Cc: gdb-patches@sourceware.org, Christoph Bartoschek Subject: Re: RFC: Re: [patch] Fix for 'info threads' crashes if zombie threads exist Message-ID: <20060713134334.GA22807@nevyn.them.org> Mail-Followup-To: Jan Kratochvil , gdb-patches@sourceware.org, Christoph Bartoschek References: <20060620130932.GA21490@nevyn.them.org> <200606201524.45099.bartoschek@or.uni-bonn.de> <20060620132737.GA21951@nevyn.them.org> <20060619165609.GA14691@host0.dyn.jankratochvil.net> <20060620170451.GA17022@host0.dyn.jankratochvil.net> <20060620171109.GA28310@nevyn.them.org> <20060620185326.GA9482@host0.dyn.jankratochvil.net> <20060620190740.GA31643@nevyn.them.org> <20060713040135.GY24622@nevyn.them.org> <20060713132623.GA17780@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060713132623.GA17780@host0.dyn.jankratochvil.net> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00151.txt.bz2 On Thu, Jul 13, 2006 at 03:26:23PM +0200, Jan Kratochvil wrote: > The test > 1.Start print-threads within GDB > 2.Set a breakpoint in __pthread_unwind > 3.Run the program > 4.When the program stops at the breakpoint, run `info threads' > > still fails the same way. Logs attached - attached also that patch of mine > fixing/workaround it in some way. You didn't apply the patch, or else you didn't rebuild, I think. > Program received signal SIGSEGV, Segmentation fault. > thread_db_map_id2thr (thread_info=0x0, fatal=1) at .././gdb-clean/linux-thread-db.c:318 > 318 if (thread_info->private->th_valid) > (gdb) bt > #0 thread_db_map_id2thr (thread_info=0x0, fatal=1) at .././gdb-clean/linux-thread-db.c:318 > #1 0x0809737e in thread_db_fetch_registers (regno=8) at .././gdb-clean/linux-thread-db.c:1009 >From the patch: (thread_db_fetch_registers, thread_db_store_registers) (thread_db_thread_alive): Delete. -- Daniel Jacobowitz CodeSourcery