From owner-freebsd-stable@FreeBSD.ORG Mon May 30 03:32:03 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B8D816A41C for ; Mon, 30 May 2005 03:32:03 +0000 (GMT) (envelope-from benlutz@datacomm.ch) Received: from maxlor.mine.nu (c-213-160-32-54.customer.ggaweb.ch [213.160.32.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id A414643D1F for ; Mon, 30 May 2005 03:32:02 +0000 (GMT) (envelope-from benlutz@datacomm.ch) Received: from localhost (localhost [127.0.0.1]) by maxlor.mine.nu (Postfix) with ESMTP id C8FA8286 for ; Mon, 30 May 2005 05:31:53 +0200 (CEST) Received: from maxlor.mine.nu ([127.0.0.1]) by localhost (midgard [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 55219-10 for ; Mon, 30 May 2005 05:31:53 +0200 (CEST) Received: from [10.0.0.23] (mini.intranet [10.0.0.23]) by maxlor.mine.nu (Postfix) with ESMTP id ED3254E for ; Mon, 30 May 2005 05:31:52 +0200 (CEST) Message-ID: <429A892C.6060006@datacomm.ch> Date: Mon, 30 May 2005 05:31:56 +0200 From: Benjamin Lutz User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigAFC1F4D259B2AB05EDC8ED26" X-Virus-Scanned: by amavisd-new at maxlor.mine.nu Subject: libpthread problem (segfaults) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2005 03:32:03 -0000 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--