Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Sep 2008 07:41:14 -0400
From:      Barry Andrews <titanandrews@gmail.com>
To:        Daniel Eischen <deischen@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: loading multi threaded library into executable enabled for single thread
Message-ID:  <48CA555A.4050104@gmail.com>
In-Reply-To: <Pine.GSO.4.64.0809111620340.13959@sea.ntplx.net>
References:  <eda4c18b0809111206t6438f87dmb8fab0db939c9980@mail.gmail.com> <Pine.GSO.4.64.0809111620340.13959@sea.ntplx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Do you know if this is documented in Release Notes or Known Issues or 
somewhere?

thanks,

B


Daniel Eischen wrote:
> On Thu, 11 Sep 2008, Barry Andrews wrote:
>
>> Hi All,
>>
>> I have a multi-threaded library that is linked against libpthread. 
>> When I
>> load this lib into a tclsh process on FreeBSD, I get this error, 
>> "Recurse on
>> private mutex". and crash. I understand that I can have this issue 
>> when the
>> executable is not linked against libpthread but one of the loaded 
>> libs is.
>> Basically, it thinks it's in single threaded mode.
>
> This must be an older version of FreeBSD.  I think you must
> link your application (tclsh or whatever) against libpthread
> in order for this to work.  The libc functions won't get properly
> overloaded by their equivalents in libpthread unless you do
> this.
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48CA555A.4050104>