6.1 libpthread: pthread_create and _pq_insert_tail: Already in priority queue

Volker Stolz vs at FreeBSD.org
Wed Mar 22 10:24:12 UTC 2006


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 explanation :|
Maybe the runtime is violation some assumptions on what it should be able to do
with threads, but I couldn't find anything "interesting".

Cheers,
  Volker
-- 
http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME
"All the excitement lies in pattern matching." (SPJ et al.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20060322/834bac20/attachment.pgp


More information about the freebsd-hackers mailing list