Thread error
Doug Rabson
dfr at nlsystems.com
Sat Aug 28 09:04:15 PDT 2004
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 at 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: */
More information about the freebsd-current
mailing list