From owner-freebsd-threads@FreeBSD.ORG Thu Jan 31 19:28:19 2008 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E35C116A418; Thu, 31 Jan 2008 19:28:19 +0000 (UTC) (envelope-from landonf@bikemonkey.org) Received: from secure.bikemonkey.org (bluefish.bikemonkey.org [69.80.211.101]) by mx1.freebsd.org (Postfix) with ESMTP id C95CF13C46A; Thu, 31 Jan 2008 19:28:19 +0000 (UTC) (envelope-from landonf@bikemonkey.org) Received: from [192.168.54.11] (unknown [192.168.54.11]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by secure.bikemonkey.org (Postfix) with ESMTP id BDB3717032; Thu, 31 Jan 2008 11:28:19 -0800 (PST) In-Reply-To: <47A22097.2040303@elischer.org> References: <200801240850.m0O8o2JQ023500@freefall.freebsd.org> <4798564B.7070500@elischer.org> <20080128185830.B56811@fledge.watson.org> <479E3079.3000803@elischer.org> <20080129222455.T53151@fledge.watson.org> <20080131093321.K35034@fledge.watson.org> <47A2170D.6020308@elischer.org> <42D09215-18FD-43A1-97E8-D4CC9E97AFDD@bikemonkey.org> <47A22097.2040303@elischer.org> Mime-Version: 1.0 (Apple Message framework v753) Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-34-162199877" Message-Id: <79EBC63D-72A1-4CB9-962C-C4649544FF7A@bikemonkey.org> Content-Transfer-Encoding: 7bit From: Landon Fuller Date: Thu, 31 Jan 2008 11:28:19 -0800 To: Julian Elischer X-Pgp-Agent: GPGMail 1.1.2 (Tiger) X-Mailer: Apple Mail (2.753) Cc: Daniel Eischen , Gary Stanley , Robert Watson , freebsd-threads@freebsd.org Subject: Re: threads/119920: fork broken in libpthread X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2008 19:28:20 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --Apple-Mail-34-162199877 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Jan 31, 2008, at 11:25, Julian Elischer wrote: > Landon Fuller wrote: >> On Jan 31, 2008, at 10:44, Julian Elischer wrote: >>> the releng 6 and releng 7 versions of this patch are at: >>> >>> http://www.freebsd.org/~julian/kse-6.diff >>> >>> and >>> >>> http://www.freebsd.org/~julian/kse-7.diff >>> >>> >>> but the one for 7 is just speculative. >>> >>> I don't have a 7.x system to test. >>> >>> >>> Landon, what is your test case? >>> >> Inlined below. On our 8-core 6.3 system without this patch, the >> fork() threads wedge and spin in <2 minutes. With the patch, works >> as expected. > > when you say "wedge and spin" what do you see in top? > > which is it , wedge, or spin? The children processes spin (in either sigprocmask() or _lockuser_reinit()), and the parent process thread wedges on waitpid(). --Apple-Mail-34-162199877 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFHoiFTlplZCE/15mMRAt3UAJ9YpEkDmvP+4oSeIklNdIA/NaW8gQCdEnRY V1Ze/PZnZaPhGUPWXWpUtFg= =A3bn -----END PGP SIGNATURE----- --Apple-Mail-34-162199877--