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

Jan Kratochvil
2006-06-20T17:05:50Z

Hi Christoph,

On Tue, 20 Jun 2006 18:21:41 +0200, Christoph Bartoschek wrote:
...
> I applied your patch to gdb 6.4 and do not see the error again.

sincerely thanks for the test.

Is there any objection regarding the patch import? What was the original
TD_DEATH notification reason? Not sure if the patch is compatible with
non-Linux platforms.

Thanks for any info,
Jan Kratochvil

On Mon, 19 Jun 2006 18:56:09 +0200, Jan Kratochvil wrote:
> Hi,
>
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=182116
>
> Steps to Reproduce:
> 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'
>
>
> Patch disables handling of the TD_DEATH notification from __nptl_death_event()
> and tries to keep the thread in TD_THR_ZOMBIE state as long as possible before
> its LWP ceases to be. While expecting regressions so far no such was found,
> statistically it improves some testcases (+24 passes,-14 fails), no negatives.
> ('longjmp' part not resolved; not reproducible for GDB-CVS)
>
> Thread is now debuggable through pthread_exit(3) and the thread terminating
> code.
>
>
>
> Regards,
> Jan Kratochvil