This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: Re: [patch] Fix for 'info threads' crashes if zombie threads exist
- From: Daniel Jacobowitz <drow at false dot org>
- To: Jan Kratochvil <lace at jankratochvil dot net>
- Cc: gdb-patches at sourceware dot org, Christoph Bartoschek <bartoschek at or dot uni-bonn dot de>
- Date: Thu, 13 Jul 2006 09:43:34 -0400
- Subject: Re: RFC: Re: [patch] Fix for 'info threads' crashes if zombie threads exist
- 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>
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