Date: Wed, 3 Mar 2004 12:32:40 -0500 From: Craig Rodrigues <rodrigc@crodrigues.org> To: David Xu <davidxu@freebsd.org> Cc: current@freebsd.org Subject: Re: fix for libpthread Message-ID: <20040303173240.GA86457@crodrigues.org> In-Reply-To: <404592F5.1060206@freebsd.org> References: <20040303061144.GE56622@elvis.mu.org> <404592F5.1060206@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 03, 2004 at 04:10:29PM +0800, David Xu wrote:
> >- if (!__isthreaded)
> >- PANIC("Spinlock called when not threaded.");
> > if (!initialized)
> > PANIC("Spinlocks not initialized.");
> > /*
> >
> >
> As I saw some reports in the -CURRENT list, the panic is always
> triggered by mix up
> of libc_r and libpthread in same program. So to avoid other mysterious
> crashes,
> I'd like keep the code there, it is now used to check the problem.
Would it be a good idea to change the wording of this error message to give
the user a better idea of how to fix the problem?
PANIC("Spinlock called when not threaded.\nPossible problem: program might be linked to both -lpthread and -lc_r, instead of linking only one of them.\n");
Or, something to that effect.
--
Craig Rodrigues
http://crodrigues.org
rodrigc@crodrigues.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040303173240.GA86457>
