hyc(a)symas.com wrote:
> Working now with patched libldap_r/tpool.c
But now it leaks a lot at shutdown...
<producer>
==5246== 24,118,976 (1,728 direct, 24,117,248 indirect) bytes in 54
blocks are definitely lost in loss record 5 of 8
==5246== at 0x4004405: malloc (vg_replace_malloc.c:149)
==5246== by 0x8217EC7: ber_memalloc_x (memory.c:226)
==5246== by 0x809ECCC: ch_malloc (ch_malloc.c:54)
==5246== by 0x80DD5A1: slap_sl_mem_create (sl_malloc.c:122)
==5246== by 0x8081145: connection_fake_init (connection.c:1997)
==5246== by 0x8070E03: config_back_db_open (bconfig.c:5272)
==5246== by 0x808D1F0: backend_startup_one (backend.c:212)
==5246== by 0x808D67D: backend_startup (backend.c:303)
==5246== by 0x80B47B5: slap_startup (init.c:248)
==5246== by 0x8062D75: main (main.c:923)
</producer>
<consumer>
==5265== 5,243,255 (375 direct, 5,242,880 indirect) bytes in 12 blocks
are definitely lost in loss record 3 of 7
==5265== at 0x4004405: malloc (vg_replace_malloc.c:149)
==5265== by 0x8217EC7: ber_memalloc_x (memory.c:226)
==5265== by 0x81FAA5E: ldap_dn2bv_x (getdn.c:3027)
==5265== by 0x8096621: dnNormalize (dn.c:485)
==5265== by 0x80EBB59: parse_syncrepl_line (syncrepl.c:3039)
==5265== by 0x80EDB0E: add_syncrepl (syncrepl.c:3408)
==5265== by 0x80EED08: syncrepl_config (syncrepl.c:3670)
==5265== by 0x8073163: config_set_vals (config.c:305)
==5265== by 0x807364E: config_add_vals (config.c:374)
==5265== by 0x80745EE: read_config_file (config.c:731)
==5265== by 0x806C3A2: read_config (bconfig.c:3440)
==5265== by 0x8062668: main (main.c:745)
...
==5301== 23,068,672 bytes in 8 blocks are possibly lost in loss record 7
of 7
==5301== at 0x4004405: malloc (vg_replace_malloc.c:149)
==5301== by 0x8217EC7: ber_memalloc_x (memory.c:226)
==5301== by 0x809ECCC: ch_malloc (ch_malloc.c:54)
==5301== by 0x80DD5AF: slap_sl_mem_create (sl_malloc.c:123)
==5301== by 0x8081145: connection_fake_init (connection.c:1997)
==5301== by 0x8070E03: config_back_db_open (bconfig.c:5272)
==5301== by 0x808D1F0: backend_startup_one (backend.c:212)
==5301== by 0x808D67D: backend_startup (backend.c:303)
==5301== by 0x80B47B5: slap_startup (init.c:248)
==5301== by 0x8062D75: main (main.c:923)
</consumer>
p.