Re: Bug#325600: <defunct> threads.... a solution?
On Sat, Nov 12, 2005 at 07:36:21PM -0500, Tom Evans wrote:
> Daniel Jacobowitz wrote:
> >On Tue, Oct 25, 2005 at 12:05:16AM -0400, Tom Evans wrote
> >
> >Do you have a clear testcase for this problem? I tried to reproduce
> >it, and could not
>
> Well, any threaded program should do, but while working on the solution,
> I used the test below.
> Compile if and run it and in another window look for the process -
> you;ll see lots of defunct threads.
>
> This is what I used:
How can this possibly be fixed by changing waitpid_not_cancel? That
call is in pthread_reap_children, which isn't even reached by this
test, as far as I can tell. Of course it should be. And of course GDB
and strace are both a bit broken on alpha, so I'm having some trouble
tracking it down.
Anyway, I'll give it another shot later.
--
Daniel Jacobowitz
CodeSourcery, LLC
Reply to: