Subject: Re: ldd dumps core
To: Tobias Nygren <tnn@netbsd.org>
From: Kurt Schreiner <ks@ub.uni-mainz.de>
List: current-users
Date: 10/07/2007 12:56:29
On Sun, Oct 07, 2007 at 11:34:05AM +0200, Tobias Nygren wrote:
> On Sat, 6 Oct 2007 21:35:41 +0200
> Kurt Schreiner <ks@ub.uni-mainz.de> wrote:
> 
> > On Sat, Oct 06, 2007 at 09:12:25PM +0200, I wrote:
> > > 
> > > I'll compile libc with USE_JEMALLOC=no and see what gives...
> > > 
> > Hm, replacing jemalloc with malloc changes - nothing!
> > ldd <whatever> is still dumping core in imalloc...
> > 
> > 1033: ident /libexec/ld.elf_so | grep mall
> >      $NetBSD: xmalloc.c,v 1.7 2007/10/05 22:21:07 ad Exp $
> >      $NetBSD: malloc.c,v 1.48 2006/11/24 19:37:02 christos Exp $
> >  
> > 1034: ldd /bin/ls
> > Floating exception(core dumped)
> 
> Here's a patch you can try. I'll let someone else judge it's
> correctness ...
> [...]
Applied your patch and ldd is healthy again ;-)

1061: /u/NetBSD/arch/i386/obj/usr.bin/ldd/ldd_elf/ldd /bin/ls
/bin/ls:
        -lutil.7 => /lib/libutil.so.7
        -lc.12 => /lib/libc.so.12

Thanks,
Kurt