libpthread problem (segfaults)

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


Hello,

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/libpthread.so.1
#1  0x2951755f in _pthread_mutex_trylock () from /usr/lib/libpthread.so.1
#2  0x29518aca in pthread_mutex_lock () from /usr/lib/libpthread.so.1
#3  0x290cc580 in QRealMutexPrivate::lock () from
/usr/X11R6/lib/libqt-mt.so.3
#4  0x290cc8b4 in QMutex::lock () from /usr/X11R6/lib/libqt-mt.so.3
#5  0x28e1a4b9 in insert_tree () from /usr/X11R6/lib/libqt-mt.so.3
#6  0x28e1a618 in QObject::QObject () from /usr/X11R6/lib/libqt-mt.so.3
#7  0x28de4514 in QGuardedPtrPrivate::QGuardedPtrPrivate () from
/usr/X11R6/lib/libqt-mt.so.3
#8  0x28d6215b in __static_initialization_and_destruction_0 () from
/usr/X11R6/lib/libqt-mt.so.3
#9  0x28d6220a in global constructors keyed to qt_xdnd_enter () from
/usr/X11R6/lib/libqt-mt.so.3
#10 0x291b9122 in __do_global_ctors_aux () from /usr/X11R6/lib/libqt-mt.so.3
#11 0x28d1417a in _init () from /usr/X11R6/lib/libqt-mt.so.3
#12 0x2804fb91 in find_symdef () from /libexec/ld-elf.so.1
#13 0x2804e77c in _rtld () from /libexec/ld-elf.so.1
#14 0x2804d9f6 in .rtld_start () from /libexec/ld-elf.so.1
(gdb)

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?

Thanks
Benjamin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 186 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050530/5018ba27/signature.bin


More information about the freebsd-stable mailing list