From owner-freebsd-current@FreeBSD.ORG Sat Nov 13 21:49:30 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E33B16A4CE; Sat, 13 Nov 2004 21:49:30 +0000 (GMT) Received: from celebrian.forsythia.net (galadriel.forsythia.net [64.81.65.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC52543D41; Sat, 13 Nov 2004 21:49:29 +0000 (GMT) (envelope-from amoran@forsythia.net) Received: from [10.200.1.101] (cerberus.forsythia.net [64.81.65.55]) iADLnJeW048566; Sat, 13 Nov 2004 13:49:20 -0800 (PST) (envelope-from amoran@forsythia.net) Mime-Version: 1.0 (Apple Message framework v619) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: freebsd-current@freebsd.org, freebsd-ports@freebsd.org From: Andrew Moran Date: Sat, 13 Nov 2004 13:49:21 -0800 X-Mailer: Apple Mail (2.619) Subject: seemingly unfixable Spinlock error under 5.3? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Nov 2004 21:49:30 -0000 I made the jump from 5.21 to 5.3 earlier and started getting the infamous "Fatal error 'Spinlock called when not threaded.' at line 83 in file /usr/src/lib/libpthread/thread/thr_spinlock.c (errno = 2)" everytime I ran gnucash. According to the release notes and previous posts, the problem comes from the port being linked against two threading libraries (libkse, libc_r, libpthread, or whatnot). The solution is to recompile the port and everything it depends on, or to be safe, recompile all your ports. I've done an ldd -a on everything in /usr/local and /usr/X11R6 and I can't see to find anyhing other than libpthread and libqthreads (installed by guile). I've recompiled gnucash with portupgrade -R gnucash to no avail. I then tried reinstalling ALL my ports using 'portupgrade -fa'. This is after I upgraded to 5.3 by syncing the world, rebuilding and reinstalling the kernel, installing a new world, and resyncing the ports tree. I still seem to get that error with gnucash. Also, running 'strace -f gnucash' just hangs indefinitely with no output. I don't know if that's a clue. Since gnucash is a guile program, I'm not sure how to debug where the spinlock issue is coming from. I asked the freebsd-questions list but have gotten no response. So in desperation, I'm broadening my quest. I don't want to reinstall the server from scratch if there is another way to fix this error. Could there be something in my kernel configuration causing this? I can't find a reference to libc_r or libkse *anywhere*. :/ Does anyone have any ideas for me to try? Thank you for your time. --And