From owner-freebsd-stable@FreeBSD.ORG Thu Sep 9 04:46:21 2004 Return-Path: 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 97E6C16A4CE for ; Thu, 9 Sep 2004 04:46:21 +0000 (GMT) Received: from ylpvm29.prodigy.net (ylpvm29-ext.prodigy.net [207.115.57.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B41E43D49 for ; Thu, 9 Sep 2004 04:46:21 +0000 (GMT) (envelope-from mbsd@pacbell.net) Received: from sotec.home (adsl-64-165-199-114.dsl.snfc21.pacbell.net [64.165.199.114])i894k8vV002424; Thu, 9 Sep 2004 00:46:09 -0400 Date: Wed, 8 Sep 2004 21:46:19 -0700 (PDT) From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= X-X-Sender: mikko@sotec.home To: =?iso-8859-1?Q?=D8yvin?= Halfdan Thuv In-Reply-To: <20040908201219.GA24898@orakel.ntnu.no> Message-ID: <20040908214003.L29260@sotec.home> References: <20040908201219.GA24898@orakel.ntnu.no> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1989399321-1094705179=:29260" cc: freebsd-stable@freebsd.org Subject: Re: libpthread in 5.3-BETA3 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2004 04:46:21 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1989399321-1094705179=:29260 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8BIT On Wed, 8 Sep 2004, Øyvin Halfdan Thuv wrote: > Hi, > I get: > vequess:% mred > Fatal error 'Spinlock called when not threaded.' at line 83 in file /usr/src/lib/libpthread/thread/thr_spinlock.c (errno = 0) > Abort This usually means that the program for some reason has dependencies on more than one thread library (libpthread, libthr, libc_r). If everything is built from scratch after installation there should not be any such inconsistencies. Google for the phrase in the error message and you'll find plenty more information. > I get the same error with some other programs using the lib as well > (gaim & sim). Run "ldd" on the program and see which threads libraries show up... > I commented out the check for '!__threaded' and everything seems to work fine. > I using FreeBSD 5.3-BETA3 (cvsup'ed yesterday). That is most likely not a safe solution. The quick workaround is to use libmap.conf(5) to map all threads libs to one (libpthread). $.02, /Mikko --0-1989399321-1094705179=:29260--