From owner-freebsd-current@FreeBSD.ORG Sun Feb 15 14:04:15 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E3AB16A4CE for ; Sun, 15 Feb 2004 14:04:15 -0800 (PST) Received: from opiate.soulwax.net (unknown [216.58.85.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0708743D2D for ; Sun, 15 Feb 2004 14:04:15 -0800 (PST) (envelope-from chopra@opiate.soulwax.net) Received: by opiate.soulwax.net (Postfix, from userid 1001) id 52810C0F9; Sun, 15 Feb 2004 17:04:14 -0500 (EST) Date: Sun, 15 Feb 2004 17:04:14 -0500 From: Munish Chopra To: freebsd-current@freebsd.org Message-ID: <20040215220414.GC59471@opiate.soulwax.net> Mail-Followup-To: freebsd-current@freebsd.org References: <16430.41516.536852.960246@canoe.dclg.ca> <402EC51C.7000509@ec.rr.com> <16431.57045.45767.260237@canoe.dclg.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16431.57045.45767.260237@canoe.dclg.ca> Subject: Re: spinlock coredump. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Feb 2004 22:04:15 -0000 On 2004-02-15 16:04 +0000, David Gilbert wrote: > >>>>> "jason" == jason writes: > > jason> David Gilbert wrote: > >> Does anyone know what has to be recompiled when this message > >> occurs? > >> > >> [2:6:263]dgilbert@canoe:~> xmms Fatal error 'Spinlock called when > >> not threaded.' at line 83 in file > >> /usr/src/lib/libpthread/thread/thr_spinlock.c (errno = 0) > > jason> try portupgrade -Rr xmms to get all that depend on xmms and all > jason> that xmms depends on. > > This worked for xmms, however, now some other library causes the kde > build to fail. It seems like a mark and sweep of all ports using > threads might be necessary. > This worked for me: 1. Remap pthread to c_r in libmap.conf for everything. 2. portupgrade -afR 3. Remove mapping. The spinlock build errors didn't happen as long as the mapping was in place, and now that everything is rebuilt things work as usual again. -- Munish Chopra