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 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.
But CVS glibc doesn't install itself in /lib*/tls etc. subdirs either,
that's a distro hack as well.

	Jakub


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