KSE headache: Spinlock called when not threaded
From: Kyryll A Mirnenko (mirya_at_innovativemarketing.com.ua)
Date: 11/08/04
- Previous message: Your Name: "Re: CVSup basics?"
- Next in thread: Dan Nelson: "Re: KSE headache: Spinlock called when not threaded"
- Reply: Dan Nelson: "Re: KSE headache: Spinlock called when not threaded"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: freebsd-questions@freebsd.org Date: Mon, 8 Nov 2004 20:39:56 +0000
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.");
if (!initialized)
PANIC("Spinlocks not initialized.");
/*
* Try to grab the lock and loop if another thread grabs
* it before we do.
*/
if (lck->fname == NULL)
init_spinlock(lck);
extra = (struct spinlock_extra *)lck->fname;
pthread_mutex_lock(&extra->lock);
}
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?
--------------
Regards, Mirya
ICQ #313898202
_______________________________________________
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: Your Name: "Re: CVSup basics?"
- Next in thread: Dan Nelson: "Re: KSE headache: Spinlock called when not threaded"
- Reply: Dan Nelson: "Re: KSE headache: Spinlock called when not threaded"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|