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 Tue, Jun 20, 2006 at 08:53:26PM +0200, Jan Kratochvil wrote:
> > A new thread can be created with the same thread ID - even before this one
> > exits.
> 
> Not sure of how much are non-Linux platforms a concern for these minor issues.

Hint: the file was renamed a while back to "linux-thread-db.c".

> Apparently on Linux kernel the same LWP id cannot be created until the final
> syscall __NR_exit.

No, that's the LWP id.  In linux-thread-db.c things are still indexed
by thread ID, which is a pointer in NPTL - and NPTL will aggressively
reuse them.

I think the real fix to this problem is going to involve less
dependence on thread IDs.  I've been migrating the code away from that
and I'll try to find some time in the next week to finish the job;
maybe that will help.

-- 
Daniel Jacobowitz
CodeSourcery


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