From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22752 invoked by alias); 30 Nov 2007 14:47:48 -0000 Received: (qmail 22744 invoked by uid 22791); 30 Nov 2007 14:47:47 -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; Fri, 30 Nov 2007 14:47:41 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id E894E98248; Fri, 30 Nov 2007 14:47:39 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id D0FA198245; Fri, 30 Nov 2007 14:47:39 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1Iy79W-0001Ry-S2; Fri, 30 Nov 2007 09:47:38 -0500 Date: Fri, 30 Nov 2007 14:47:00 -0000 From: Daniel Jacobowitz To: Atsushi Nemoto Cc: gdb@sourceware.org Subject: Re: gdbserver and "terminated with signal SIGTRAP" Message-ID: <20071130144738.GB5548@caradoc.them.org> Mail-Followup-To: Atsushi Nemoto , gdb@sourceware.org References: <20071129.235502.95065374.anemo@mba.ocn.ne.jp> <20071130.175814.18313162.nemoto@toshiba-tops.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071130.175814.18313162.nemoto@toshiba-tops.co.jp> 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/msg00289.txt.bz2 On Fri, Nov 30, 2007 at 05:58:14PM +0900, Atsushi Nemoto wrote: > On Thu, 29 Nov 2007 23:55:02 +0900 (JST), Atsushi Nemoto wrote: > > I confirmed that maybe_attach_thread() in thread-db.c did not call > > linux_attach_lwp() on the second time. That was because > > find_inferior_id() returned non NULL value. It seems > > find_inferior_id() returned the first thread (which should be dead > > before the second thread creation). > > Now I understand why find_inferior_id() misbehaves. The "id" is > actually pthread_t and it might be recycled. Right. Have you tried HEAD? The new code I've added since 6.7.1 for thread creation might help. -- Daniel Jacobowitz CodeSourcery