Date: Wed, 30 Apr 2003 22:16:54 -0400 (EDT) From: Daniel Eischen <eischen@pcnet1.pcnet.com> To: Peter Wemm <peter@wemm.org> Cc: threads@freebsd.org Subject: Re: Question about rtld-elf. Anyone?.. Anyone? Message-ID: <Pine.GSO.4.10.10304302213470.18924-100000@pcnet1.pcnet.com> In-Reply-To: <20030501011103.6E20D2A7EA@canning.wemm.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10304302213470.18924-100000>