From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32733 invoked by alias); 29 Jun 2009 21:48:44 -0000 Received: (qmail 32675 invoked by uid 22791); 29 Jun 2009 21:48:44 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 29 Jun 2009 21:48:30 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5TLkS0K021367; Mon, 29 Jun 2009 17:46:28 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5TLkS8s032696; Mon, 29 Jun 2009 17:46:28 -0400 Received: from host0.dyn.jankratochvil.net (sebastian-int.corp.redhat.com [172.16.52.221]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5TLkROs029718; Mon, 29 Jun 2009 17:46:27 -0400 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.3/8.14.3) with ESMTP id n5TLkQ3b010621; Mon, 29 Jun 2009 23:46:26 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.3/8.14.3/Submit) id n5TLkQUM010620; Mon, 29 Jun 2009 23:46:26 +0200 Date: Mon, 29 Jun 2009 21:48:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [patch] Fix internal-error on dead LWPs with no associated thread Message-ID: <20090629214626.GA10335@host0.dyn.jankratochvil.net> References: <20090629100922.GA26882@host0.dyn.jankratochvil.net> <200906291941.52129.pedro@codesourcery.com> <20090629213333.GA3295@host0.dyn.jankratochvil.net> <200906292243.24272.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200906292243.24272.pedro@codesourcery.com> User-Agent: Mutt/1.5.19 (2009-01-05) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-06/txt/msg00853.txt.bz2 On Mon, 29 Jun 2009 23:43:23 +0200, Pedro Alves wrote: > On Monday 29 June 2009 22:33:33, Jan Kratochvil wrote: > > I do not share this opinion - not attaching short-lived threads should not be > > allowed for performance reasons.  When such short-lived thread crashes GDB > > should catch such crash. > > Sorry, this makes no sense. GDB is automaticaly attached to cloned > threads. You won't miss any crash. You're thinking of discovering > threads with thread_db? I agree my comment made no sense. I was thinking of the case when linux_test_for_tracefork() fails and PTRACE_O_TRACEFORK is not in effect; but that is not possible on the current systems. Thanks, Jan