threads/126950: rtld malloc is thread-unsafe

Kostik Belousov kostikbel at gmail.com
Sat Aug 30 08:30:31 UTC 2008


On Fri, Aug 29, 2008 at 10:10:05PM +0000, Kip Macy wrote:
> The following reply was made to PR threads/126950; it has been noted by GNATS.
> 
> From: "Kip Macy" <kmacy at freebsd.org>
> To: "Oleg Dolgov" <agile at sunbay.com>
> Cc: freebsd-gnats-submit at freebsd.org
> Subject: Re: threads/126950: rtld malloc is thread-unsafe
> Date: Fri, 29 Aug 2008 14:41:59 -0700
> 
>  I think the real solution is to serialize calls to dlopen. Please
>  consider submitting a patch for that.

dlopen()/dlclose() need to call initializers/finalizers for dso and its
dependencies. These code may recurse into the rtld, either by symbol
resolution, or by calling dl*(). I tried to somewhat work around this
in the patch, referenced as a prerequisite.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-threads/attachments/20080830/10cd919c/attachment.pgp


More information about the freebsd-threads mailing list