Subject: Re: ldd dumps core
To: Blair Sadewitz <blair.sadewitz@gmail.com>
From: Kurt Schreiner <ks@ub.uni-mainz.de>
List: current-users
Date: 10/06/2007 21:35:41
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)

1035: gdb `which ldd` ldd.core 
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386--netbsdelf"...(no debugging symbols found)

Reading symbols from /usr/lib/libc.so.12...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libc.so.12
Reading symbols from /usr/libexec/ld.elf_so...(no debugging symbols found)...done.
Loaded symbols for /usr/libexec/ld.elf_so
Core was generated by `ldd'.
Program terminated with signal 8, Arithmetic exception.
#0  0x08049c91 in imalloc ()
(gdb) 

Kurt