Subject: bin/18262: ld.elf_so failures
To: None <>
From: None <>
List: netbsd-bugs
Date: 09/11/2002 03:32:59
>Number:         18262
>Category:       bin
>Synopsis:       ld.elf_so failures
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 11 03:33:01 PDT 2002
>Originator:     Rob Quinn
>Release:        1.6H - current, i386 and sparc
NetBSD 1.6H NetBSD 1.6H (STRIKE) #186: Wed Sep 11 05:52:38 EDT 2002 i386
NetBSD 1.6H NetBSD 1.6H (STRUCK) #10: Mon Sep  9 10:02:05 EDT 2002 sparc

Many programs core dump after latest build.  Here's the latest build itself core dumping, right after it installed ld.elf_so:
strike:/usr/src #./ -u -o
/usr/obj/tooldir/bin/i386--netbsdelf-gcc   -fpic -DELFSIZE=32 -DLIBDIR=\"/usr/li
b\" -D_PATH_RTLD=\"/usr/libexec/ld.elf_so\" -I/usr/src/libexec/ld.elf_so -DRTLD_
LOADER -D_RTLD_SOURCE -nostdinc -isystem /usr/include  -c -traditional-cpp /usr/
/usr/obj/tooldir/bin/i386--netbsdelf-gcc -O3  -Wall -Wstrict-prototypes -Wmissin
g-prototypes -Wpointer-arith -Wno-uninitialized  -Werror  -fpic -DELFSIZE=32 -DL
IBDIR=\"/usr/lib\" -D_PATH_RTLD=\"/usr/libexec/ld.elf_so\" -I/usr/src/libexec/ld
.elf_so -DRTLD_LOADER -D_RTLD_SOURCE -nostdinc -isystem /usr/include  -c /usr/sr
/usr/obj/tooldir/bin/i386--netbsdelf-ld  -Bshareable -Bsymbolic -e .rtld_start -
-script /usr/src/libexec/ld.elf_so/arch/i386/ -o ld.elf_so rtld_star
t.o mdreloc.o rtld.o reloc.o symbol.o malloc.o xmalloc.o xprintf.o debug.o map_o
bject.o load.o search.o headers.o paths.o -L/usr/obj/usr/src/lib/libc -L/usr/lib
 -non_shared -lc_pic
PATH=/usr/obj/tooldir/lib/groff:${PATH} /usr/obj/tooldir/bin/nbgroff -Tascii -mt
ty-char -mandoc /usr/src/libexec/ld.elf_so/ld.elf_so.1  > ld.elf_so.cat1.tmp && 
mv ld.elf_so.cat1.tmp ld.elf_so.cat1
(cd /usr/src/libexec/ld.elf_so && /usr/obj/tooldir/bin/nbmake install)
STRIP=/usr/obj/tooldir/bin/i386--netbsdelf-strip /usr/obj/tooldir/bin/nbinstall 
 -c -p -r -o root -g wheel -m 555   ld.elf_so /usr/libexec/ld.elf_so
Segmentation fault - core dumped
STRIP=/usr/obj/tooldir/bin/i386--netbsdelf-strip /usr/obj/tooldir/bin/nbinstall 
 -c -p -r -o root -g wheel -m 444  /usr/src/libexec/ld.elf_so/ld.elf_so.1 /usr/s
Segmentation fault - core dumped
*** Error code 139

nbmake: stopped in /usr/src/libexec/ld.elf_so
*** Error code 1

nbmake: stopped in /usr/src
*** Error code 1

nbmake: stopped in /usr/src

Install latest -current sources.
Roll back to an old /usr/libexec/ld.elf_so.