tls glibc broken on ppc
Daniel Jacobowitz
drow@false.org
Tue Dec 14 21:24:00 GMT 2004
On Tue, Dec 14, 2004 at 10:17:05PM +0100, Jakub Jelinek wrote:
> On Tue, Dec 14, 2004 at 09:13:45PM +0100, Mariusz Mazur wrote:
> > I'm using cvs head (more or less) on (among others) ppc. Allmost all apps
> > segfault immediately when using /lib/tls/libc (though some don't; eg. rpm).
> > rm -rf /lib/tls and everything works fine. Fedora's glibc also works fine
> > (thanks to Jeff Johnson for suggesting I should check it), and I've managed
> > to pinpoint why. Here's Jakub Jelinek's patch:
> > http://cvs.pld-linux.org/cgi-bin/cvsweb/SOURCES/glibc-tls_fix.patch?rev=1.3
> > It's more than a year old (which btw makes me wonder why fedora's glibc
> > differs that much from cvs head).
>
> CVS HEAD glibc only handles running either linuxthreads ld.so with
> linuxthreads libraries, or running NPTL ld.so with NPTL libraries, but not
> mixing them. If NPTL struct pthread is bigger than linuxthreads' thread
> structure (it is on all arches I believe), then linuxthreads ld.so certainly
> can't load NPTL libraries.
OTOH NPTL's ld.so manages to load LinuxThreads libraries just fine.
If PLD is shipping the LinuxThreads ld.so, swapping that out for the
NPTL version works (in practice, at least, if not in theory).
--
Daniel Jacobowitz
More information about the Libc-alpha
mailing list