libpthread problem (segfaults)

Benjamin Lutz benlutz at
Sun May 29 20:32:03 PDT 2005


I've run into an issue that has me stumped. Anything that I link against
libpthread on my FreeBSD-5.4-RELEASE/i386 installation will segfault as
soon as it tries making use of the threads. For example:

$ kedit
zsh: segmentation fault (core dumped)  kedit
$ gdb `which kedit` -c kedit.core
(gdb) backtrace
#0  0x29524ac7 in __error () from /usr/lib/
#1  0x2951755f in _pthread_mutex_trylock () from /usr/lib/
#2  0x29518aca in pthread_mutex_lock () from /usr/lib/
#3  0x290cc580 in QRealMutexPrivate::lock () from
#4  0x290cc8b4 in QMutex::lock () from /usr/X11R6/lib/
#5  0x28e1a4b9 in insert_tree () from /usr/X11R6/lib/
#6  0x28e1a618 in QObject::QObject () from /usr/X11R6/lib/
#7  0x28de4514 in QGuardedPtrPrivate::QGuardedPtrPrivate () from
#8  0x28d6215b in __static_initialization_and_destruction_0 () from
#9  0x28d6220a in global constructors keyed to qt_xdnd_enter () from
#10 0x291b9122 in __do_global_ctors_aux () from /usr/X11R6/lib/
#11 0x28d1417a in _init () from /usr/X11R6/lib/
#12 0x2804fb91 in find_symdef () from /libexec/
#13 0x2804e77c in _rtld () from /libexec/
#14 0x2804d9f6 in .rtld_start () from /libexec/

This behaviour started appearing after the installation of
FreeBSD-5.4-RELEASE. I've rebuilt libpthread and qt (I've used qt's own
uic program as a test, it's affected by this problem too), removed any
contents of libmap.conf, and there's nothing special in make.conf, the
problem persists though.

Also, only programs/libraries that I compiled after the installation of
FreeBSD-5.4 are affected. Programs that have been compiled under
FreeBSD-5.3 run just fine.

Can you give me any pointers as to what exactly is broken on my system,
and where I should start with fixing things?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 186 bytes
Desc: OpenPGP digital signature
Url :

More information about the freebsd-stable mailing list