Question about rtld-elf. Anyone?.. Anyone?
Daniel Eischen
eischen at pcnet1.pcnet.com
Wed Apr 30 19:16:59 PDT 2003
On Wed, 30 Apr 2003, Peter Wemm wrote:
> Daniel Eischen wrote:
> > As an experiment, I made the dlfoo calls in rtld-elf weak
> > (__dlfoo -> dlfoo) and then overrode them in libpthread
> > and protected them with mutexes.
> >
> > I can get mozilla to work about 1/2 of the time now, but
> > it still gets stuck in the same state the other 1/2 of
> > the time. This is a bit of an improvement, and seems to
> > indicate (at least to me) that rtld-elf is the culprit.
>
> As John said, the problem is twofold. One is the symbol resolution itself,
> eg: when you access a function for the first time, a lazy binding call
> happens. He had ideas about how to make that fully reentrant. The second
> problem was preventing dlopen() and friends being called in parallel. It
> sounds like you've dealt with only the second problem...
Yep, I know. I just want to provide more evidence that
it is rtld, and not something we're doing in libpthread.
--
Dan Eischen
More information about the freebsd-threads
mailing list