From owner-freebsd-questions@FreeBSD.ORG Mon Nov 8 18:38:54 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EEDC16A4CE for ; Mon, 8 Nov 2004 18:38:54 +0000 (GMT) Received: from router.innovativemarketing.com.ua (innovativemarketing.com.ua [213.186.210.18]) by mx1.FreeBSD.org (Postfix) with SMTP id B75FD43D2D for ; Mon, 8 Nov 2004 18:38:52 +0000 (GMT) (envelope-from mirya@innovativemarketing.com.ua) Received: (qmail 67382 invoked from network); 8 Nov 2004 18:38:51 -0000 Received: from t-mirya.innovativemarketing.com.ua (10.9.4.7) by router.innovativemarketing.com.ua with SMTP; 8 Nov 2004 18:38:51 -0000 From: Kyryll A Mirnenko To: freebsd-questions@freebsd.org Date: Mon, 8 Nov 2004 20:39:56 +0000 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200411082039.57036.mirya@innovativemarketing.com.ua> Subject: KSE headache: Spinlock called when not threaded X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 18:38:54 -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