[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: slapcat segfaults loading BDB (ITS#2974)



Does this help?  I'm not sure on the usage of Electric Fence... I think I got it to do something useful.

(gdb) run -f /home/armbrust/foo/schemaicd9.conf -l /home/ldap/source/icd9/icd9.out.ldif
Starting program: /home/armbrust/foo2/openldap-2.2.5/servers/slapd/tools/slapadd -f /home/armbrust/foo/schemaicd9.conf -l /home/ldap/source/icd9/icd9.out.ldif
[New Thread 1074052160 (LWP 18956)]
 
  Electric Fence 2.2.0 Copyright (C) 1987-1999 Bruce Perens <bruce@perens.com>
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1074052160 (LWP 18956)]
0x4207bf0d in memmove () from /lib/tls/libc.so.6
(gdb) bt
#0  0x4207bf0d in memmove () from /lib/tls/libc.so.6
#1  0x41d0cfd8 in ?? ()
#2  0x0807e1e1 in bdb_tool_next_id (op=0xbfffd950, tid=0x8170fbc, e=0x57808ffc, text=0xbfffdb38, hole=0) at tools.c:220
#3  0x0807e369 in bdb_tool_entry_put (be=0x416bbf08, e=0x41d0cfd8, text=0xbfffdb38) at tools.c:332
#4  0x0804a9f9 in main (argc=5, argv=0xbfffdd24) at slapadd.c:405
#5  0x420156a4 in __libc_start_main () from /lib/tls/libc.so.6
(gdb)



-----Original Message-----
From: Howard Chu [mailto:openldap-its@OpenLDAP.org] 
Sent: Tuesday, February 24, 2004 9:58 AM
To: Armbrust, Daniel C.
Subject: Re: slapcat segfaults loading BDB (ITS#2974)

Since the crash is in malloc, there is likely a memory corruption bug somewhere.
If you can link the slapadd binary with a debugging malloc library (like
ElectricFence) and run the program under gdb, that will probably pinpoint the
error.