Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Oct 2004 22:22:52 -0700
From:      Andrew Moran <amoran@forsythia.net>
To:        Jason Porter <leporter@xmission.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Spinlock problem in 5.3-Beta
Message-ID:  <C5A82F2A-1757-11D9-836E-000D93B1D960@forsythia.net>
In-Reply-To: <4147AC40.80507@xmission.com>
References:  <4147AC40.80507@xmission.com>

next in thread | previous in thread | raw e-mail | index | archive | help

I got this same problem when I upgraded to 5.3-Beta, but for me it was 
with gnucash, not xmms.  (I don't use XMMS, so I don't know if that 
port would break for me as well).


I searched the archives and it seems the problem comes from a program 
using one threading system (pthreads) but having a dependancy compiled 
against the other system ((libc_r).    The solution is either to 1) 
recompile all your ports to use the same threading system, or 2) map 
all calls to one system to another using /etc/libmap.conf.

However, I tried *both* of these and neither work.     I've used ldd on 
everything under /usr/local and nothing is linked to libc_r (although 
many are linked to pthread).      I've tried recompiling all the 
requirements of gnucash using portupgrade -fR.      I've also tried 
mapping the libc_r calls to pthread calls using an /etc/libmap.conf 
file:
[root@celebrian] /# cat /etc/libmap.conf
libc_r.so.5             libpthread.so.1 # Everything that uses 'libc_r'
libc_r.so               libpthread.so   # now uses 'libpthread'

Yet I'm still getting the error.  I can only assume that something is 
broken in 5.3-BETA regarding pthreads  unless someone has any other 
insight.    I'm hitting my head against a wall.  beh.

--Andy


On Sep 14, 2004, at 7:43 PM, Jason Porter wrote:

> I cvsuped last week, on 9 Sept and since then I've installed XMMS and 
> mplayer from the ports and neither one of them work, here are the 
> errors I receive when I try to start them:
>
> XMMS:
> Fatal error 'Spinlock called when not threaded.' at line 83 in file 
> /usr/src/lib/libpthread/thread/thr_spinlock.c (errno = 0)
> Segmentation fault (core dumped)
>
> mplayer:
> 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)
>
> I'm not sure if this is a new feature in 5 or a debugging problem or 
> what.  Does anyone have any help they can offer?
>
> -Jason Porter
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C5A82F2A-1757-11D9-836E-000D93B1D960>