[PATCH] libdl: rudimentary locking for dlopen/dlsym/dlclose

Hein Tibosch hein_tibosch at yahoo.es
Sun May 6 10:09:51 UTC 2012


On 5/5/2012 5:02 PM, Timo Teras wrote:
> On Fri, 4 May 2012 12:52:12 -0400 Mike Frysinger <vapier at gentoo.org>
> wrote:
>
>> the locking code is pthread-implementation independent.  there's no
>> reason i can see that this would require NPTL.
>> -mike
> Sounds like linking order issue, or the fact that the dlopen() loads a
> library requring libpthreads (but the main binary does not). Try
> linking explicitly the main app against libpthreads. This is still an
> issue with PTHREADS_OLD, but I fixed it earlier for NPTL.

I will try link it directly to libpthreads and see where it crashes
(segfault) when defining PTHREADS_OLD.
Btw, the platform I'm using is omap4460.

Hein


More information about the uClibc mailing list