From owner-freebsd-current@FreeBSD.ORG Sat Aug 28 16:04:15 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 88ECB16A4CE for ; Sat, 28 Aug 2004 16:04:15 +0000 (GMT) Received: from itchy.rabson.org (mailgate.nlsystems.com [80.177.232.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9412B43D54 for ; Sat, 28 Aug 2004 16:04:14 +0000 (GMT) (envelope-from dfr@nlsystems.com) Received: from ns0.nlsystems.com (ns0.nlsystems.com [80.177.232.243]) by itchy.rabson.org (8.12.11/8.12.11) with ESMTP id i7SG484F005114; Sat, 28 Aug 2004 17:04:08 +0100 (BST) (envelope-from dfr@nlsystems.com) From: Doug Rabson To: freebsd-current@freebsd.org Date: Sat, 28 Aug 2004 17:04:41 +0100 User-Agent: KMail/1.6.2 References: <41309789.9090107@drexel.edu> In-Reply-To: <41309789.9090107@drexel.edu> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408281704.41345.dfr@nlsystems.com> X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on itchy.rabson.org X-Virus-Scanned: clamd / ClamAV version 0.75.1, clamav-milter version 0.75c on itchy.rabson.org X-Virus-Status: Clean cc: Justin Smith Subject: Re: Thread error 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, 28 Aug 2004 16:04:15 -0000 On Saturday 28 August 2004 15:32, Justin Smith wrote: > FreeBSD jsmith.org 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Fri Aug 27 > 10:56:28 EDT 2004 jsmith@jsmith.org:/usr/obj/usr/src/sys/MYKERNEL > i386 > > > > When I try to run LyX compiled with the QT front end, I get > > Fatal error 'Spinlock called when not threaded.' at line 83 in file > /usr/src/lib/libpthread/thread/thr_spinlock.c (errno = 0) > Abort trap (core dumped) > > > (Both LyX and QT were recompiled with the upgraded system). Are you using the latest nvidia driver by any chance? If so, you might try the patch below. I believe that this problem will be fixed in the next nvidia driver release - if not, I'll commit the patch. Index: thr_open.c =================================================================== RCS file: /home/ncvs/src/lib/libpthread/thread/thr_open.c,v retrieving revision 1.16 diff -u -r1.16 thr_open.c --- thr_open.c 9 Dec 2003 02:20:56 -0000 1.16 +++ thr_open.c 15 Aug 2004 09:19:42 -0000 @@ -45,11 +45,15 @@ int __open(const char *path, int flags,...) { - struct pthread *curthread = _get_curthread(); + struct pthread *curthread; int ret; int mode = 0; va_list ap; + if (_thr_initial == NULL) + _libpthread_init(NULL); + + curthread = _get_curthread(); _thr_cancel_enter(curthread); /* Check if the file is being created: */