Subject: bin/34890: ldd(1) receives SIGSEGV when called for certain files
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <lkundrak@redhat.com>
List: netbsd-bugs
Date: 10/23/2006 20:35:00
>Number:         34890
>Category:       bin
>Synopsis:       ldd(1) receives SIGSEGV when called for certain files
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 23 20:35:00 +0000 2006
>Originator:     Lubomir Kundrak
>Release:        netbsd-4
>Organization:
>Environment:
NetBSD dzizs 4.0_BETA NetBSD 4.0_BETA (GENERIC) #1: Wed Oct  4 14:35:12 CEST 2006  lkundrak@dzizs:/usr/obj/sys/arch/i386/compile/GENERIC i386

>Description:
ldd(1) receives fatal signal SIGSEGV when called for /usr/obj/x11/Xserver/hw/dmx/bin/dmxreconfig/dmxreconfig.debug

$ ldd /usr/obj/x11/Xserver/hw/dmx/bin/dmxreconfig/dmxreconfig.debug
Segmentation fault (core dumped)
$ gdb `which ldd` ldd.core
...
Program terminated with signal 11, Segmentation fault.
#0  _rtld_digest_dynamic (obj=0x804f100) at /usr/src/libexec/ld.elf_so/headers.c:141
141                                     obj->nbuckets = hashtab[0];
(gdb) bt
#0  _rtld_digest_dynamic (obj=0x804f100) at /usr/src/libexec/ld.elf_so/headers.c:141
#1  0x08049678 in main (argc=-1077942020, argv=0x8048e64) at /usr/src/usr.bin/ldd/ldd_elf/ldd.c:188
(gdb)               
>How-To-Repeat:
$ ldd /usr/obj/x11/Xserver/hw/dmx/bin/dmxreconfig/dmxreconfig.debug
                                                                                                                                    
>Fix: