From owner-freebsd-stable@FreeBSD.ORG Wed Jun 1 15:07:06 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 7EE7916A41C for ; Wed, 1 Jun 2005 15:07:06 +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 1806B43D48 for ; Wed, 1 Jun 2005 15:07:05 +0000 (GMT) (envelope-from benlutz@datacomm.ch) Received: from localhost (localhost [127.0.0.1]) by maxlor.mine.nu (Postfix) with ESMTP id EBB92227; Wed, 1 Jun 2005 17:06:55 +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 81711-02; Wed, 1 Jun 2005 17:06:55 +0200 (CEST) Received: from [10.0.0.23] (mini.intranet [10.0.0.23]) by maxlor.mine.nu (Postfix) with ESMTP id 107D04E; Wed, 1 Jun 2005 17:06:55 +0200 (CEST) Message-ID: <429DCF14.8060608@datacomm.ch> Date: Wed, 01 Jun 2005 17:07:00 +0200 From: Benjamin Lutz User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Benjamin Lutz References: <429A892C.6060006@datacomm.ch> <20050531101206.I1376@chenjesu.americas.sgi.com> <429DA927.1000000@datacomm.ch> In-Reply-To: <429DA927.1000000@datacomm.ch> 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="------------enigE5D0BCC0A2A1DD73A270E05B" X-Virus-Scanned: by amavisd-new at maxlor.mine.nu Cc: freebsd-stable@freebsd.org, Brent Casavant Subject: Re: 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: Wed, 01 Jun 2005 15:07:06 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE5D0BCC0A2A1DD73A270E05B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello, > I've built a new installation, and I'm no longer seeing my old > problem, but a new one. I have a small Qt based application. As soon > as I try to open any dialog (no matter whether it's a standard open > file dialog or one I wrote myself), It aborts with > > Fatal error 'Recurse on a private mutex.' at line 988 in file > /usr/src/lib/libpthread/thread/thr_mutex.c (errno = 0) [...] > Other people seem to have run into this too. I've found ports/81148 ( > http://www.freebsd.org/cgi/query-pr.cgi?pr=81148 ). > > The PR points to a libtool problem. It says that using > USE_LIBTOOL_VER=15 instead of USE_LIBTOOL_VER=13 should solve the > problem. I've found the problem for my own program. I was compiling with -lc. Why I started doing that in the first place I can't remember, but removing that option fixed above fatal error, and seems to have no negative effects (of course, why would it). So, as a conclusion: gcc apparently produces broken code when -lc is specified. I don't know much about how gcc is supposed to work, but that might actually be a bug? And, something in the 5.3->5.4 upgrade process went wrong which left me with a broken libpthread. Can't say what exactly, maybe my system was slightly broken to begin with. Cheers Benjamin --------------enigE5D0BCC0A2A1DD73A270E05B 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) iD8DBQFCnc8YgShs4qbRdeQRAr4gAKCDU56WBymWWo3WACgKm+thsiiV6ACeOq84 howl+9aaPUVJzdpD01ZEo+0= =ZTN7 -----END PGP SIGNATURE----- --------------enigE5D0BCC0A2A1DD73A270E05B--