From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25520 invoked by alias); 10 Nov 2007 03:26:05 -0000 Received: (qmail 25471 invoked by uid 22791); 10 Nov 2007 03:26:04 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 10 Nov 2007 03:26:02 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 570FC98353 for ; Sat, 10 Nov 2007 03:26:00 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 3066E98100 for ; Sat, 10 Nov 2007 03:26:00 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1Iqgys-0005AE-NR for gdb@sourceware.org; Fri, 09 Nov 2007 22:25:58 -0500 Date: Sat, 10 Nov 2007 03:26:00 -0000 From: Daniel Jacobowitz To: gdb@sourceware.org Subject: Re: linux-thread-db.c not only caller of add_thread, -> gdb segv Message-ID: <20071110032558.GA19831@caradoc.them.org> Mail-Followup-To: gdb@sourceware.org References: <20071109140225.GA32113@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-11/txt/msg00078.txt.bz2 On Fri, Nov 09, 2007 at 05:26:56PM -0800, Douglas Evans wrote: > GDB detects the exec and removes thread_db_ops from the target stack. > But (a) it doesn't clear out thread_list and (b) still thinks it has control of > the running process. (b) should be true, no? Exec support is somewhat horrible. I posted a patch for it recently which might help (might not, I'm not sure). -- Daniel Jacobowitz CodeSourcery