This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Re: [patch] Fix for 'info threads' crashes if zombie threads exist


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]