This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tls glibc broken on ppc


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]