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

Re: leaks in slapd



OK, fixed in HEAD bconfig.c r1.117

Pierangelo Masarati wrote:
Howard Chu wrote:


I think this is taken care of now. I'm still seeing an odd one in back-bdb/db_open that I haven't tracked down yet.


(gdb) r -f testrun/slapd.1.conf -h ldap://:9011 -d 256
Starting program: /home/masarati/Lavoro/sysnet/Ldap/ldap/servers/slapd/slapd -f testrun/slapd.1.conf -h ldap://:9011 -d 256
[Thread debugging using libthread_db enabled]
[New Thread -1218557568 (LWP 29878)]
@(#) $OpenLDAP: slapd 2.X (Jul 22 2005 01:34:01) $
masarati@ando:/home/masarati/Lavoro/sysnet/Ldap/ldap/servers/slapd
daemon: IPv6 socket() failed errno=97 (Address family not supported by protocol)


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218557568 (LWP 29878)]
0x08067e91 in config_include (c=0x856c8a0) at bconfig.c:2303
2303 if ( cfn->c_kids ) {
(gdb) p cfn
$1 = (ConfigFile *) 0x0
(gdb) bt
#0 0x08067e91 in config_include (c=0x856c8a0) at bconfig.c:2303
#1 0x0806e03f in config_set_vals (Conf=0x8280540, c=0x856c8a0) at config.c:251
#2 0x0806e520 in config_add_vals (Conf=0x8280540, c=0x856c8a0) at config.c:319
#3 0x0806f56e in read_config_file (fname=0x8541008 "testrun/slapd.1.conf",
depth=0, cf=0x0, cft=0x8280220) at config.c:650
#4 0x08068eb0 in read_config (fname=0x8541008 "testrun/slapd.1.conf", dir=0x0)
at bconfig.c:2632
#5 0x08061450 in main (argc=7, argv=0xbfffb224) at main.c:636
(gdb) p c[0]
$2 = {argc = 2, argv = 0x856da18, argv_size = 513,
line = 0x856e388 "include ./schema/core.schema",
tline = 0x856c3c8 "include", fname = 0x8541008 "testrun/slapd.1.conf",
lineno = 16,
log = "testrun/slapd.1.conf: line 16", '\0' <repeats 4094 times>,
msg = '\0' <repeats 255 times>, depth = 0, valx = -1, values = {v_int = 0,
v_long = 0, v_ber_t = 0, v_string = 0x0, v_bv = {bv_len = 0,
bv_val = 0x0}, v_dn = {vdn_dn = {bv_len = 0, bv_val = 0x0}, vdn_ndn = {
bv_len = 0, bv_val = 0x0}}}, rvalue_vals = 0x0, rvalue_nvals = 0x0,
op = 16384, type = 0, be = 0x828bde0, bi = 0x0, ca_entry = 0x0,
private = 0x0, cleanup = 0}
(gdb) p c->argv[0]@3
$3 = {0x856c3c8 "include", 0x856c3d0 "./schema/core.schema", 0x0}





SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497





--
 -- Howard Chu
 Chief Architect, Symas Corp.  http://www.symas.com
 Director, Highland Sun        http://highlandsun.com/hyc
 OpenLDAP Core Team            http://www.openldap.org/project/