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

Re: memory leaks in syncrepl consumer (ITS#3316)



I've added avl_free() at the end of do_syncrep2() which can eliminate a
couple of messages.
I'll check further along .....

----- Original Message ----- 
From: <hyc@OpenLDAP.org>
To: <openldap-its@OpenLDAP.org>
Sent: Thursday, September 02, 2004 5:54 AM
Subject: memory leaks in syncrepl consumer (ITS#3316)


> Full_Name: Howard Chu
> Version: 2.2.15, RE22
> OS:
> URL:
> Submission from: (NULL) (24.126.120.178)
> Submitted by: hyc
>
>
> There are a number of leaks in the syncrepl consumer code. Still trying to
track
> them all down.
>
>    Leak, size: 0x8144660,17        ber_memalloc_x (memory.c:232)
>      stack:     liblber-2.2.so.7 : ber_dupbv_x (memory.c:518)
>                 liblber-2.2.so.7 : ber_dupbv_x (memory.c:518)
>                 liblber-2.2.so.7 : ber_dupbv (memory.c:536)
>                         lt-slapd : syncrepl_entry (syncrepl.c:1141)
>                         lt-slapd : do_syncrep2 (syncrepl.c:540)
>                         lt-slapd : do_syncrepl (syncrepl.c:869)
>               libldap_r-2.2.so.7 : ldap_int_thread_pool_wrapper
(tpool.c:467)
>                  libpthread.so.0 : start_thread (??:0)
>    Leak, size: 0x8144678,8         ber_memalloc_x (memory.c:232)
>      stack:     liblber-2.2.so.7 : ber_dupbv_x (memory.c:518)
>                 liblber-2.2.so.7 : ber_dupbv_x (memory.c:506)
>                 liblber-2.2.so.7 : ber_dupbv (memory.c:536)
>                         lt-slapd : syncrepl_entry (syncrepl.c:1141)
>                         lt-slapd : do_syncrep2 (syncrepl.c:540)
>                         lt-slapd : do_syncrepl (syncrepl.c:869)
>               libldap_r-2.2.so.7 : ldap_int_thread_pool_wrapper
(tpool.c:467)
>                  libpthread.so.0 : start_thread (??:0)
>    Leak, size: 0x81446a8,17        ber_memalloc_x (memory.c:232)
>      stack:     liblber-2.2.so.7 : ber_dupbv_x (memory.c:518)
>                 liblber-2.2.so.7 : ber_dupbv_x (memory.c:518)
>                 liblber-2.2.so.7 : ber_dupbv (memory.c:536)
>                         lt-slapd : syncrepl_entry (syncrepl.c:1141)
>                         lt-slapd : do_syncrep2 (syncrepl.c:540)
>                         lt-slapd : do_syncrepl (syncrepl.c:869)
>               libldap_r-2.2.so.7 : ldap_int_thread_pool_wrapper
(tpool.c:467)
>                  libpthread.so.0 : start_thread (??:0)
>    Leak, size: 0x81446c0,16        ber_memalloc_x (memory.c:232)
>      stack:     liblber-2.2.so.7 : ber_skip_tag (decode.c:134)
>                 liblber-2.2.so.7 : ber_memalloc (memory.c:248)
>                         lt-slapd : ravl_insert (avl.c:90)
>                         lt-slapd : ravl_insert (avl.c:112)
>                         lt-slapd : avl_insert (avl.c:236)
>                         lt-slapd : syncrepl_entry (syncrepl.c:1142)
>                         lt-slapd : do_syncrep2 (syncrepl.c:540)
>                         lt-slapd : do_syncrepl (syncrepl.c:869)
>    Leak, size: 0x81446d8,17        ber_memalloc_x (memory.c:232)
>      stack:     liblber-2.2.so.7 : ber_dupbv_x (memory.c:518)
>                 liblber-2.2.so.7 : ber_dupbv_x (memory.c:518)
>                 liblber-2.2.so.7 : ber_dupbv (memory.c:536)
>                         lt-slapd : syncrepl_entry (syncrepl.c:1141)
>                         lt-slapd : do_syncrep2 (syncrepl.c:540)
>                         lt-slapd : do_syncrepl (syncrepl.c:869)
>               libldap_r-2.2.so.7 : ldap_int_thread_pool_wrapper
(tpool.c:467)
>                  libpthread.so.0 : start_thread (??:0)
>    Leak, size: 0x81446f8,37        ber_memalloc_x (memory.c:232)
>      stack:             lt-slapd : sl_context (sl_malloc.c:236)
>                 liblber-2.2.so.7 : ber_dupbv_x (memory.c:518)
>                 liblber-2.2.so.7 : ber_dupbv (memory.c:536)
>                         lt-slapd : slap_dup_sync_cookie (ldapsync.c:508)
>                         lt-slapd : syncrepl_updateCookie (syncrepl.c:1712)
>                         lt-slapd : do_syncrep2 (syncrepl.c:544)
>                         lt-slapd : do_syncrepl (syncrepl.c:869)
>               libldap_r-2.2.so.7 : ldap_int_thread_pool_wrapper
(tpool.c:467)
>    Leak, size: 0x81448f8,16        ber_memalloc_x (memory.c:232)
>      stack:             lt-slapd : avl_find (avl.c:652)
>                 liblber-2.2.so.7 : ber_memalloc (memory.c:248)
>                         lt-slapd : ravl_insert (avl.c:90)
>                         lt-slapd : avl_insert (avl.c:236)
>                         lt-slapd : syncrepl_entry (syncrepl.c:1142)
>                         lt-slapd : do_syncrep2 (syncrepl.c:540)
>                         lt-slapd : do_syncrepl (syncrepl.c:869)
>               libldap_r-2.2.so.7 : ldap_int_thread_pool_wrapper
(tpool.c:467)
>    Leak, size: 0x8144c28,16        ber_memalloc_x (memory.c:232)
>      stack:             lt-slapd : sl_context (sl_malloc.c:236)
>                 liblber-2.2.so.7 : ber_bvarray_add_x (memory.c:757)
>                 liblber-2.2.so.7 : ber_bvarray_add (memory.c:793)
>                         lt-slapd : slap_dup_sync_cookie (ldapsync.c:502)
>                         lt-slapd : syncrepl_updateCookie (syncrepl.c:1712)
>                         lt-slapd : do_syncrep2 (syncrepl.c:544)
>                         lt-slapd : do_syncrepl (syncrepl.c:869)
>               libldap_r-2.2.so.7 : ldap_int_thread_pool_wrapper
(tpool.c:467)
>
> etc....
>
>
>
>