From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21880 invoked by alias); 20 Jun 2006 17:05:50 -0000 Received: (qmail 21862 invoked by uid 22791); 20 Jun 2006 17:05:50 -0000 X-Spam-Check-By: sourceware.org Received: from ip-85-160-1-89.eurotel.cz (HELO host0.dyn.jankratochvil.net) (85.160.1.89) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 20 Jun 2006 17:05:47 +0000 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.13.6/8.13.4) with ESMTP id k5KH4rkO017096; Tue, 20 Jun 2006 19:04:54 +0200 Received: (from lace@localhost) by host0.dyn.jankratochvil.net (8.13.6/8.13.6/Submit) id k5KH4pwX017095; Tue, 20 Jun 2006 19:04:51 +0200 Date: Tue, 20 Jun 2006 17:05:00 -0000 From: Jan Kratochvil To: gdb-patches@sourceware.org Cc: Daniel Jacobowitz , Christoph Bartoschek Subject: RFC: Re: [patch] Fix for 'info threads' crashes if zombie threads exist Message-ID: <20060620170451.GA17022@host0.dyn.jankratochvil.net> References: <200606191719.00530.bartoschek@or.uni-bonn.de> <200606201542.12070.bartoschek@or.uni-bonn.de> <20060620135351.GA9853@host0.dyn.jankratochvil.net> <200606201821.41941.bartoschek@or.uni-bonn.de> <200606191719.00530.bartoschek@or.uni-bonn.de> <200606201456.57681.bartoschek@or.uni-bonn.de> <20060620130932.GA21490@nevyn.them.org> <200606201524.45099.bartoschek@or.uni-bonn.de> <20060620132737.GA21951@nevyn.them.org> <20060619165609.GA14691@host0.dyn.jankratochvil.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606201821.41941.bartoschek@or.uni-bonn.de> <20060620132737.GA21951@nevyn.them.org> <20060619165609.GA14691@host0.dyn.jankratochvil.net> User-Agent: Mutt/1.4.2.1i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00281.txt.bz2 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