This is the mail archive of the libc-hacker@sourceware.cygnus.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]

Re: egcs-19980921 on i586-linux miscompiles ld-linux.so.2 in glibc-2.0.96


Andreas Jaeger <aj@arthur.rhein-neckar.de> said:
> Horst von Brand's message of "Sat, 26 Sep 1998 23:07:39 -0400":

> >>>>> Horst von Brand writes:
> >> [...]
> >> Synopsis:	Crash of ld-linux.so.2 when compiled with egcs snapshot
> >> [...]
>  > Addons: crypt linuxthreads
>  > Build CFLAGS: -O2 -march=pentium
>  > Build CC: gcc
>  > Compiler version: egcs-2.92.11 19980921 (gcc2 ss-980609 experimental)
>  > Kernel headers: 2.1.123
>  > Symbol versioning: yes
>  > Build static: yes
>  > Build shared: yes
>  > Build pic-default: no
>  > Build profile: yes
>  > Build omitfp: yes
> With build-omitpf -O99 is used.  This might be a too high
> optimization.

Why? If it's "too high", you shouldn't be able to get it in the first
place. Extreme, maybe, I'll grant you that. Note OTOH that I'm doing this
to check out egcs and glibc, so peeking into the corners is warranted.

>  > [...]
>  > 	With egcs-2.91.57 (egcs-1.1) everything works fine, AFAIKS. There is
>  >         an error message when omitting LD_LIBRARY_PATH in this case, however
>  >         (long line folded):
>        
>  >         /bin/ls: error in loading shared libraries: /lib/libc.so.6: \
>  >         symbol _dl_default_scope, version GLIBC_2.0 not defined in file \
>  >         ld-linux.so.2 with link time reference

> That's to be expected.  You've to use ld-linux and libc from the same
> version and shouldn't mix them.

That's what I thought too.  But the fact that ld-linux.so.2 crashes the
same way in both cases (when it clearly shouldn't, as you state) might be
interesting in itself.

[...]

> >> Fix:
>  > 	Don't use that particular egcs snapshot.
> Or fix this egcs snapshot;-).

OK, glibcbug asked for a fix or workaround. No fix known to me, workaround
given. Don't take me too seriously...
-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile                               +56 32 672616


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