Date: Thu, 23 Sep 2010 18:38:44 -0400 From: Alexander Kabaev <kabaev@gmail.com> To: Jung-uk Kim <jkim@FreeBSD.org> Cc: freebsd-threads@FreeBSD.org Subject: Re: threads/150889: PTHREAD_MUTEX_INITIALIZER + pthread_mutex_destroy() == EINVAL Message-ID: <20100923183844.1823928a@kan.dnsalias.net> In-Reply-To: <201009232220.o8NMK3fX011639@freefall.freebsd.org> References: <201009232220.o8NMK3fX011639@freefall.freebsd.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Thu, 23 Sep 2010 22:20:03 GMT Jung-uk Kim <jkim@FreeBSD.org> wrote: > The following reply was made to PR threads/150889; it has been noted > by GNATS. > > From: Jung-uk Kim <jkim@FreeBSD.org> > To: bug-followup@FreeBSD.org, > cgf@netapp.com > Cc: > Subject: Re: threads/150889: PTHREAD_MUTEX_INITIALIZER + > pthread_mutex_destroy() == EINVAL Date: Thu, 23 Sep 2010 18:12:02 > -0400 > > I was horribly bitten by the incompatibility when I ported IcedTea6 > Java plugin for Linux. Please see my comments in the patch: > > http://www.freebsd.org/cgi/cvsweb.cgi/ports/java/openjdk6/files/icedtea.patch?rev=1.2;content-type=text%2Fplain > " 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. -- Alexander Kabaev [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iD8DBQFMm9cGQ6z1jMm+XZYRApNWAJ47Mb/lfZcXf9tjVpiAQEcKbQjLwACg1qHd B6wyK2h13rLhoszc9IdIORU= =H+Ll -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100923183844.1823928a>
