Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 May 2005 05:31:56 +0200
From:      Benjamin Lutz <benlutz@datacomm.ch>
To:        freebsd-stable@freebsd.org
Subject:   libpthread problem (segfaults)
Message-ID:  <429A892C.6060006@datacomm.ch>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigAFC1F4D259B2AB05EDC8ED26
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

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

--------------enigAFC1F4D259B2AB05EDC8ED26
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFCmokvgShs4qbRdeQRAq+CAJwIgpAxEtJl5MEB0B8eGw0K+AknUQCfaZCR
6wt3e1nnFZiy9ueos5ffdyU=
=MtAL
-----END PGP SIGNATURE-----

--------------enigAFC1F4D259B2AB05EDC8ED26--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?429A892C.6060006>