Re: KSE headache: Spinlock called when not threaded
From: Dan Nelson (dnelson_at_allantgroup.com)
Date: 11/08/04
- Previous message: Louis LeBlanc: "Re: FBSD 2.5.1-p11 | Promise SATA150 TX2plus | Seagate B 200GB - BAD SUPERBLK / Machine freezes up etc"
- In reply to: Kyryll A Mirnenko: "KSE headache: Spinlock called when not threaded"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 8 Nov 2004 12:44:33 -0600 To: Kyryll A Mirnenko <mirya@innovativemarketing.com.ua>
In the last episode (Nov 08), Kyryll A Mirnenko said:
> I found out some apps recompiled with KSE libpthread (not from ports,
> just by myself from original sources) are terminated with this
> message while worked fine for libc_r; here's the source
> (lib/libpthread/thr_spinlock.c):
>
> void
> _spinlock(spinlock_t *lck)
> {
> struct spinlock_extra *extra;
>
> if (!__isthreaded)
> PANIC("Spinlock called when not threaded.");
[..]
> Removing the 1st check works for most apps, but some of 'em (xmms is
> the one) hang up there; can anyone tell me what can be wrong there?
You probably updated from an older 5.x to 5.3? This is libpthread's
obscure way of saying "there are two threads libraries linked to this
app and I can't handle it". Run "ldd -a" on your binary and see if
libc_r got pulled in via a shared library. If so, rebuild that library
so it pulls in libpthread instead of libc_r. A workaround until you
get everything rebuilt is to redirect libc_r to libpthread via
/etc/libmap.conf:
libc_r.so.5 libpthread.so.1
libc_r.so libpthread.so
-- Dan Nelson dnelson@allantgroup.com _______________________________________________ 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"
- Previous message: Louis LeBlanc: "Re: FBSD 2.5.1-p11 | Promise SATA150 TX2plus | Seagate B 200GB - BAD SUPERBLK / Machine freezes up etc"
- In reply to: Kyryll A Mirnenko: "KSE headache: Spinlock called when not threaded"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|