From owner-freebsd-threads@FreeBSD.ORG Thu Sep 23 23:10:17 2010 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 429BA106564A; Thu, 23 Sep 2010 23:10:17 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id C2D9F8FC0C; Thu, 23 Sep 2010 23:10:16 +0000 (UTC) Received: by mail-qy0-f175.google.com with SMTP id 31so419173qyk.13 for ; Thu, 23 Sep 2010 16:10:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type; bh=eMmEKx1hv9l9DHwkUjBJdeDESrq1qu6e+1TaRO1tMt0=; b=O4xGSBJxU2YKYhRJ6ei//vFQGklGTR74CpHFTnPzlVAFabQ2CqV7x6upQ2wKtcg5CG R5iK1cOQkOz9zPSIHMO7sXMr2EAAV1qbLmZu+mUd2SiyqZGmEPTaW5HP1qDREKYeYkan Ul5wBtL+9i6OAR6kXe8/LcrBdEjM/e80YeHMo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; b=tkzCKgWQzvOdhq0lERJUkLdZeeJ7WTUeBYDWws9SI64DRh37vyyvohQjwN6KCFcoLg eU6Er9ghE7UbLBLppTGVtDA2zxWijewHq1F1ZVl8SliXZs5yNuhDIvr/fGN4hET+67qv kVuFHMoJA1tm9PmSUOAj67jYrVIz4xqe1eqM4= Received: by 10.229.51.219 with SMTP id e27mr1868243qcg.250.1285281545585; Thu, 23 Sep 2010 15:39:05 -0700 (PDT) Received: from kan.dnsalias.net (c-24-63-226-98.hsd1.ma.comcast.net [24.63.226.98]) by mx.google.com with ESMTPS id r36sm1496714qcs.15.2010.09.23.15.39.03 (version=SSLv3 cipher=RC4-MD5); Thu, 23 Sep 2010 15:39:04 -0700 (PDT) Date: Thu, 23 Sep 2010 18:38:44 -0400 From: Alexander Kabaev To: Jung-uk Kim Message-ID: <20100923183844.1823928a@kan.dnsalias.net> In-Reply-To: <201009232220.o8NMK3fX011639@freefall.freebsd.org> References: <201009232220.o8NMK3fX011639@freefall.freebsd.org> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/GalQ4ZHqC6OakA/jFCU9XJb"; protocol="application/pgp-signature" Cc: freebsd-threads@FreeBSD.org Subject: Re: threads/150889: PTHREAD_MUTEX_INITIALIZER + pthread_mutex_destroy() == EINVAL 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, 23 Sep 2010 23:10:17 -0000 --Sig_/GalQ4ZHqC6OakA/jFCU9XJb Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 23 Sep 2010 22:20:03 GMT Jung-uk Kim wrote: > The following reply was made to PR threads/150889; it has been noted > by GNATS. >=20 > From: Jung-uk Kim > To: bug-followup@FreeBSD.org, > cgf@netapp.com > Cc: =20 > Subject: Re: threads/150889: PTHREAD_MUTEX_INITIALIZER + > pthread_mutex_destroy() =3D=3D EINVAL Date: Thu, 23 Sep 2010 18:12:02 > -0400 >=20 > I was horribly bitten by the incompatibility when I ported IcedTea6=20 > Java plugin for Linux. Please see my comments in the patch: > =20 > http://www.freebsd.org/cgi/cvsweb.cgi/ports/java/openjdk6/files/icedtea.= patch?rev=3D1.2;content-type=3Dtext%2Fplain > =20 " The pthread_cond_timedwait() and pthread_cond_wait() functions shall block on a condition variable. They shall be called with mutex locked by the calling thread or undefined behavior results. " NPTL is being non-compliant here. --=20 Alexander Kabaev --Sig_/GalQ4ZHqC6OakA/jFCU9XJb Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iD8DBQFMm9cGQ6z1jMm+XZYRApNWAJ47Mb/lfZcXf9tjVpiAQEcKbQjLwACg1qHd B6wyK2h13rLhoszc9IdIORU= =H+Ll -----END PGP SIGNATURE----- --Sig_/GalQ4ZHqC6OakA/jFCU9XJb--