HELP! Broke stuff installing glibc!

Adam C. Powell, IV (adam.powell@nist.gov)
Tue, 14 Jul 1998 13:01:49 -0400


Hello,

I was installing glibc-2.0.7 pre 3 (after successfully making), and the
install died on a Segmentation fault while doing a redirected echo!

Now bash and "ls -l" both seg fault, though plain ls is fine. "strace
ls" segfaults. reboot and shutdown both segfault. Any idea on what
library might be broken to cause these problems?

History:

I'm using egcs-1.03a and kernel 2.1.108. Just before building 2.1.108,
I noticed that Documentation/Changes recommended a new libc, and I had
read somewhere that glibc 2.0.5 and 2.0.6 have some kind of problem with
something on alpha, so I got the newest thing I could find, which was
2.0.7 pre3. It built and installed just fine.

The changes file also recommended ld.so 1.9.9, so I got it and installed
it, with a TON of pointer->integer cast warnings. Since then, I have
been advised that glibc comes with ldd and ld.so, so that was a
mistake. So now I am trying to rebuild and it dies this spectacular
death!

Note: I ctrl-alt-delete shut the machine down, and hardware-reset, and
came up under 2.0.30, and now "ls -l" gives me:

ls: memory violation at pc=155557056c4 rp=1555555f174 (bad
address = 000000)
Segmentation fault (core dumped)

(under 2..108, it just gave me a seg fault.) bash gives the exact same
error.

The core file contains the string "libnss_files.so.1.1", and then
nonsense, then a block with a lot of readable text starting with "You
have invoked the program `ld.so'", followed closely by the strings
"cannot allocate memory for link map", "LD_PRELOAD",
"/etc/ld.so.preload", "statically linked", "=> not found",
"argument\0\0\0\0\0\0\0\0 found at 0x\0\0\0\0 in object at
\0\0\0\0\0\0\0\0", "failed to map segment from shared object", "cannot
map file data", "invalid ELF header", "ELF file class not
__ELF_wordsize-bit", "ELF file encoding data not little-endian", "ELF
file version ident not EV_CURRENT", "ELF file version not EV_CURRENT",
"ELF file machine architecture not alpha" and a bunch of others
culminating in "DYNAMIC LINKER BUG!!!"

So this means ld.so is bad, right? And I should re-install glibc,
right? Um, how?

Oh- and can't find ldd or ld.so on the redhat distribution. Can I get
them somewhere else?

Thanks,

-Adam `Cold Fusion' Powell, IV _/\_ http://www.ctcms.nist.gov/~powell/
Call with Netscape Conference! \/ http://dls.netscape.com/ ____
USDoC, National Institute of Standards & Technology (NIST) |\ ||< |
Center for Theoretical and Computational Materials Science | \||_> |