threads/80887: ULE with SMP broke libpthread/libthr on 5.4-RELEASE
steve at post.pl
Wed May 11 04:50:03 PDT 2005
>Synopsis: ULE with SMP broke libpthread/libthr on 5.4-RELEASE
>Arrival-Date: Wed May 11 11:50:02 GMT 2005
>Originator: Steven Jurczyk
FreeBSD meritum2.home.net.pl 5.4-RELEASE FreeBSD 5.4-RELEASE #17: Wed May 11 11:11:01 CEST 2005 steve at meritum2.home.net.pl:/data/src/bsd/sys/i386/compile/HOME i386
Using ULE on SMP machine broke applications which use libpthread/libthr, probably at context switching between threads... The applications simply hang and they aren't killable (kill -9 <pid> don't work).. Usually this also break kernel shutdown (can't flush some inodes or blocks)...
Compile kernel with options:
and try to start mysqld_server on dual dual processor (may be on Pentium IV with enabled HT)
The problem also is repeatable at 50% success rate with simple /usr/bin/host util.
Setting setenv LIBPTHREAD_SYSTEM_SCOPE usually helps to hang any pthreads application at their initialization.
More information about the freebsd-threads