Re: Thread error

From: Doug Rabson <dfr_at_nlsystems.com>
Date: Sat, 28 Aug 2004 17:04:41 +0100
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
_at__at_ -45,11 +45,15 _at__at_
 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: */
Received on Sat Aug 28 2004 - 14:04:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:09 UTC