From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21714 invoked by alias); 7 Mar 2011 05:05:19 -0000 Received: (qmail 21706 invoked by uid 22791); 7 Mar 2011 05:05:18 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Mar 2011 05:05:11 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p2754nOT002717 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 7 Mar 2011 00:04:49 -0500 Received: from host1.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p2754lIq022187 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 7 Mar 2011 00:04:49 -0500 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p2754laO017068; Mon, 7 Mar 2011 06:04:47 +0100 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p2754jXF017063; Mon, 7 Mar 2011 06:04:45 +0100 Date: Mon, 07 Mar 2011 05:21:00 -0000 From: Jan Kratochvil To: Joel Brobecker Cc: Pedro Alves , gdb-patches@sourceware.org, Mark Kettenis Subject: Re: [PATCH] fix spurious FAIL in py-inferior.exp (x86-solaris) Message-ID: <20110307050445.GA31964@host1.jankratochvil.net> References: <1299238268-32142-1-git-send-email-brobecker@adacore.com> <201103041218.p24CI1vS028257@glazunov.sibelius.xs4all.nl> <201103041227.04761.pedro@codesourcery.com> <20110307043923.GN30306@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110307043923.GN30306@adacore.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2011-03/txt/msg00420.txt.bz2 On Mon, 07 Mar 2011 05:39:23 +0100, Joel Brobecker wrote: > > On Friday 04 March 2011 12:18:01, Mark Kettenis wrote: > > > That's a bug in the Solaris thread support. So... > > > > It's by design. Consequence of the M:N support, IIRC. > > (I didn't design it!) > > So, are we OK with this patch? I do not have a fix but there seems to me mistaken LWP<->PID, each thread gets duplicated once as {PID, 0, ID} and once as {PID, ID, 0}. (gdb) info threads Id Target Id Frame 10 Thread 4 (LWP 4) start3 (arg=0x0) at threadit.c:9 9 Thread 3 (LWP 3) start2 (arg=0x0) at threadit.c:8 8 Thread 2 (LWP 2) start1 (arg=0x0) at threadit.c:7 * 7 Thread 5 (LWP 5) start4 (arg=0x0) at threadit.c:10 6 LWP 5 start4 (arg=0x0) at threadit.c:10 5 LWP 4 start3 (arg=0x0) at threadit.c:9 4 LWP 3 start2 (arg=0x0) at threadit.c:8 3 LWP 2 start1 (arg=0x0) at threadit.c:7 2 Thread 1 (LWP 1) 0xfef022f5 in __lwp_wait () from /lib/libc.so.1 1 LWP 1 0xfef022f5 in __lwp_wait () from /lib/libc.so.1 Regards, Jan