Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Oct 2009 11:54:01 -0400
From:      Joe Marcus Clarke <marcus@freebsd.org>
To:        threads@freebsd.org
Subject:   [Fwd: Pthread fix to libc on FreeBSD 9.X, 8.X, 7.X, and 6.X]
Message-ID:  <4AC4D099.3000109@freebsd.org>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------020207040004090508060901
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Kostik already gave his blessing, but before I commit this, I figured
I'd run this by you guys.  Is this patch okay?

Joe

-- 
Joe Marcus Clarke
FreeBSD GNOME Team	::	gnome@FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome

--------------020207040004090508060901
Content-Type: message/rfc822;
	name="Pthread fix to libc on FreeBSD 9.X, 8.X, 7.X, and 6.X.eml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
	filename*0="Pthread fix to libc on FreeBSD 9.X, 8.X, 7.X, and 6.X.eml"

Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35])
	by creme-brulee.marcuscom.com (8.14.3/8.14.3) with ESMTP id
	n91461w4052507
	for <marcus@marcuscom.com>; Thu, 1 Oct 2009 00:06:01 -0400 (EDT)
	(envelope-from owner-freebsd-current@freebsd.org)
Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36])
	by mx2.freebsd.org (Postfix) with ESMTP id 9CBDA1584E1;
	Thu,  1 Oct 2009 04:05:40 +0000 (UTC)
Received: from hub.freebsd.org (localhost [127.0.0.1])
	by hub.freebsd.org (Postfix) with ESMTP id 64A85106574B;
	Thu,  1 Oct 2009 04:05:37 +0000 (UTC)
	(envelope-from owner-freebsd-current@freebsd.org)
Delivered-To: current@FreeBSD.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A78A61065670
	for <current@FreeBSD.org>; Thu,  1 Oct 2009 04:05:29 +0000 (UTC)
	(envelope-from marcus@FreeBSD.org)
Received: from creme-brulee.marcuscom.com
	(marcuscom-pt.tunnel.tserv1.fmt.ipv6.he.net
	[IPv6:2001:470:1f00:ffff::1279])
	by mx1.freebsd.org (Postfix) with ESMTP id 60DD18FC14
	for <current@FreeBSD.org>; Thu,  1 Oct 2009 04:05:29 +0000 (UTC)
Received: from [IPv6:2001:470:1f00:2464::4] (shumai.marcuscom.com
	[IPv6:2001:470:1f00:2464::4])
	by creme-brulee.marcuscom.com (8.14.3/8.14.3) with ESMTP id
	n9145RHP052499
	for <current@freebsd.org>; Thu, 1 Oct 2009 00:05:27 -0400 (EDT)
	(envelope-from marcus@FreeBSD.org)
From: Joe Marcus Clarke <marcus@freebsd.org>
To: current@freebsd.org
Content-Type: multipart/signed; micalg="pgp-sha1";
	protocol="application/pgp-signature";
	boundary="=-lMa+IQr3OZ5ud5OYMQAG"
Organization: FreeBSD, Inc.
Date: Thu, 01 Oct 2009 00:05:28 -0400
Message-Id: <1254369928.94567.50.camel@shumai.marcuscom.com>
Mime-Version: 1.0
X-Mailer: Evolution 2.26.3 FreeBSD GNOME Team Port 
X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00
	autolearn=ham version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on
	creme-brulee.marcuscom.com
Cc: 
Subject: Pthread fix to libc on FreeBSD 9.X, 8.X, 7.X, and 6.X
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
	<freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
	<mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current>;
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
	<mailto:freebsd-current-request@freebsd.org?subject=subscribe>
Sender: owner-freebsd-current@freebsd.org
Errors-To: owner-freebsd-current@freebsd.org


--=-lMa+IQr3OZ5ud5OYMQAG
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Users were reporting a failure with pthread_mutexattr_settype(), and I
couldn't figure out why this function would fail.  It's quite simple.  I
tracked down a problem to the pthread stubs in libc.  The stub
definition for pthread_mutexattr_settype() is wrong.  Here is a patch
which has been reported to fix the problem users have reported.  I'd
like to commit it, but I'd really like a review from someone with thread
knowledge.  Thanks.

http://www.marcuscom.com/downloads/_pthread_stubs.c.diff

Joe

--=20
Joe Marcus Clarke
FreeBSD GNOME Team      ::      gnome@FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome

--=-lMa+IQr3OZ5ud5OYMQAG
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)

iEUEABECAAYFAkrEKocACgkQb2iPiv4Uz4cHZACbBcV25iKOYUKp5DRWaeGMWOth
R1oAmIM7zN7OqY/rLJGdOUrXhjALWEA=
=BKVg
-----END PGP SIGNATURE-----

--=-lMa+IQr3OZ5ud5OYMQAG--



--------------020207040004090508060901--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AC4D099.3000109>