From owner-freebsd-current@FreeBSD.ORG Thu Oct 1 04:05:29 2009 Return-Path: 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 ; 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 ; 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 ; Thu, 1 Oct 2009 00:05:27 -0400 (EDT) (envelope-from marcus@FreeBSD.org) From: Joe Marcus Clarke 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=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Oct 2009 04:05:29 -0000 --=-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--