libpthread problem
Dan Nelson
dnelson at allantgroup.com
Wed Jun 16 16:13:56 GMT 2004
In the last episode (Jun 16), Liam Foy said:
> Hey guys, I seen to get this error on certain applications, such as
> xmms and beep-media-player:
>
> Fatal error 'Spinlock called when not threaded.' at line 83 in file /usr/src/lib/libpthread/thread/thr_spinlock.c (errno = 0)
> Segmentation fault (core dumped)
That means that the program was linked with two threading libraries
(usually libc_r and libpthread), and unfortunately, they are not smart
enough to only initialize one or the other so they step on each others'
data. Run "ldd -a" on your binary, determine which file depends on
libc_r, and rebuild the port providing that file.
A workaround would be to add a libmap.conf entry remapping libc_r to
libpthread globally. See the libmap.conf manpage for examples.
--
Dan Nelson
dnelson at allantgroup.com
More information about the freebsd-hackers
mailing list