From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 22 10:24:12 2006 Return-Path: X-Original-To: hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB67816A401 for ; Wed, 22 Mar 2006 10:24:12 +0000 (UTC) (envelope-from stolz@i2.informatik.rwth-aachen.de) Received: from atlas.informatik.rwth-aachen.de (atlas.informatik.RWTH-Aachen.DE [137.226.194.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6364543D72 for ; Wed, 22 Mar 2006 10:24:04 +0000 (GMT) (envelope-from stolz@i2.informatik.rwth-aachen.de) Received: from i2.informatik.rwth-aachen.de (menelaos.informatik.RWTH-Aachen.DE [137.226.194.73]) by atlas.informatik.rwth-aachen.de (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k2MAO3sY007267 for ; Wed, 22 Mar 2006 11:24:03 +0100 Received: (from stolz@localhost) by i2.informatik.rwth-aachen.de (8.13.4/8.13.4/Submit) id k2MAOawK056103 for hackers@FreeBSD.org; Wed, 22 Mar 2006 11:24:36 +0100 (CET) (envelope-from stolz) Date: Wed, 22 Mar 2006 11:24:36 +0100 From: Volker Stolz To: hackers@FreeBSD.org Message-ID: <20060322102436.GB54061@i2.informatik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s/l3CgOIzMHHjg/5" Content-Disposition: inline X-PGP-Key: finger vs@foldr.org X-PGP-Id: 0x3FD1B6B5 User-Agent: Mutt/1.5.11 Cc: Subject: 6.1 libpthread: pthread_create and _pq_insert_tail: Already in priority queue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Mar 2006 10:24:12 -0000 --s/l3CgOIzMHHjg/5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable A rather largish application (the most recent version of GHC, see lang/ghc) fails in its runtime system with: _pq_insert_tail: Already in priority queue Basically some threads and mutexes are involved, then the application forks= , some more threads are created and then I get this error on a pthread_create(). If I use libmap.conf to map libpthread to either libthr or libc_r, the error doesn't occur. I'm a bit baffled by this...any pointers are welcome! This is mentioned on some MySQL-lists as well, but never with an explanatio= n :| Maybe the runtime is violation some assumptions on what it should be able t= o do with threads, but I couldn't find anything "interesting". Cheers, Volker --=20 http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME "All the excitement lies in pattern matching." (SPJ et al.) --s/l3CgOIzMHHjg/5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iQCVAwUBRCEl4xLpPok/0ba1AQIqzwP/YYbNe3gVzFMNPJgLFuiAAGWdlYpgA6I6 44x6QGZr0WE1UCxQhThhelyE98ocq4SpgpAOPuGCsmcwi0sZ4HqXnxP88nFyNCyn zF4n8KlVSmb4OqPdNQg3pYPaUCfgaiLtlGba+q7ffXP74gd2G9yP2I1HpCdgt4NE 4HJ1oRHECaw= =QbTX -----END PGP SIGNATURE----- --s/l3CgOIzMHHjg/5--