Date: Sat, 28 Aug 2004 17:04:41 +0100 From: Doug Rabson <dfr@nlsystems.com> To: freebsd-current@freebsd.org Cc: Justin Smith <jsmith@drexel.edu> Subject: Re: Thread error Message-ID: <200408281704.41345.dfr@nlsystems.com> In-Reply-To: <41309789.9090107@drexel.edu> References: <41309789.9090107@drexel.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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: */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408281704.41345.dfr>