Bug 697663

Summary: memory leak: entryusn value is leaked when an entry is deleted
Product: Red Hat Enterprise Linux 6 Reporter: Noriko Hosoi <nhosoi>
Component: 389-ds-baseAssignee: Rich Megginson <rmeggins>
Status: CLOSED ERRATA QA Contact: Chandrasekar Kannan <ckannan>
Severity: urgent Docs Contact:
Priority: high    
Version: 6.1CC: amsharma, benl, dpal, jgalipea, jwest, kevinu, shaines
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 697027 Environment:
Last Closed: 2011-12-06 17:48:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 697027, 717073    
Bug Blocks: 701560    

Description Noriko Hosoi 2011-04-18 21:14:20 UTC
+++ This bug was initially created as a clone of Bug #697027 +++

--- Additional comment from nhosoi on 2011-04-15 17:25:40 EDT ---

Created attachment 492513 [details]
git patch file (master): [Case 12]

entryusn>
==21704== 37 (32 direct, 5 indirect) bytes in 1 blocks are definitely lost in lo
ss record 597 of 1,877
==21704==    at 0x4A0515D: malloc (vg_replace_malloc.c:195)
==21704==    by 0x4C51D15: slapi_ch_malloc (ch_malloc.c:155)
==21704==    by 0x4CD6D0F: value_new (value.c:170)
==21704==    by 0x4CD6CCD: slapi_value_dup (value.c:160)
==21704==    by 0x4CD7A41: valuearray_add_valuearray_fast (valueset.c:171)
==21704==    by 0x4CD7B45: valuearray_add_valuearray (valueset.c:206)
==21704==    by 0x4CD8EC4: valueset_add_valuearray (valueset.c:988)
==21704==    by 0x4C4B002: slapi_attr_dup (attr.c:329)
==21704==    by 0x4C650B7: slapi_entry_dup (entry.c:2050)
==21704==    by 0x8AC70D6: backentry_dup (backentry.c:109)
==21704==    by 0x8B03E5B: ldbm_back_delete (ldbm_delete.c:385)
==21704==    by 0x4C56EF7: op_shared_delete (delete.c:367)
==21704==    by 0x4C567F4: do_delete (delete.c:143)
==21704==    by 0x413A6B: connection_dispatch_operation (connection.c:573)
==21704==    by 0x4152BF: connection_threadmain (connection.c:2328)
==21704==    by 0x3262429632: _pt_root (ptthread.c:187)
==21704==    by 0x3252807760: start_thread (pthread_create.c:301)
==21704==    by 0x32520E098C: clone (clone.S:115)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Bug 697027 - 12 - minor memory leaks found by Valgrind + TET
Description: The caller of valuearray_remove_value is responsible
for freeing the removed value.  Adding slapi_value_free to free it.

Comment 1 RHEL Program Management 2011-04-19 06:00:51 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 2 Noriko Hosoi 2011-04-20 00:29:37 UTC
Cherry-picked the commit e227048e66a3215431a6dc9902b540b342f99d44.

$ git cherry-pick e227048e66a3215431a6dc9902b540b342f99d44
[RHEL-6 65add85] Bug 697027 - 12 - minor memory leaks found by Valgrind + TET
 1 files changed, 6 insertions(+), 1 deletions(-)

Pushed to RHEL-6 branch.

$ git push redhat RHEL-6:RHEL-6
nhosoi.redhat.com's password: 
Counting objects: 11, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (6/6), 798 bytes, done.
Total 6 (delta 4), reused 1 (delta 1)
To ssh://git.engineering.redhat.com/srv/git/users/rmeggins/ds.git
   23fa9cc..5047940  RHEL-6 -> RHEL-6

Comment 11 Amita Sharma 2011-05-05 08:58:01 UTC
Hi Noriko, 

I have executed above steps successfully till the step number 6, but after that when I looked at the window where I have executed "/usr/sbin/start-dirsrv.val -d /etc/sysconfig M1". I could see the command stopped already itself with below errors:

==12765== 249 bytes in 10 blocks are definitely lost in loss record 1,425 of 1,923
==12765==    at 0x4A05FDE: malloc (vg_replace_malloc.c:236)
==12765==    by 0x33D704587A: slapi_ch_malloc (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7052DFF: slapi_entry_attr_get_charptr (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7089254: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x41D938: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x389721EC9C: (below main) (in /lib64/libc-2.12.so)
==12765== 
==12765== 264 (72 direct, 192 indirect) bytes in 3 blocks are definitely lost in loss record 1,438 of 1,923
==12765==    at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==12765==    by 0x33D704577B: slapi_ch_calloc (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7087A47: generate_componentid (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D708A7A2: plugin_setup (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D708B091: slapi_register_plugin_ext (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x5246E2B: syntax_register_matching_rule_plugins (in /usr/lib64/dirsrv/plugins/libsyntax-plugin.so)
==12765==    by 0x5243A60: int_init (in /usr/lib64/dirsrv/plugins/libsyntax-plugin.so)
==12765==    by 0x33D708A82B: plugin_setup (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x4102D4: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x41C5D5: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x389721EC9C: (below main) (in /lib64/libc-2.12.so)
==12765== 
==12765== 264 (72 direct, 192 indirect) bytes in 3 blocks are definitely lost in loss record 1,439 of 1,923
==12765==    at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==12765==    by 0x33D704577B: slapi_ch_calloc (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7087A47: generate_componentid (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D708A7A2: plugin_setup (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D708B091: slapi_register_plugin_ext (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x5246E2B: syntax_register_matching_rule_plugins (in /usr/lib64/dirsrv/plugins/libsyntax-plugin.so)
==12765==    by 0x5243FB0: numstr_init (in /usr/lib64/dirsrv/plugins/libsyntax-plugin.so)
==12765==    by 0x33D708A82B: plugin_setup (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x4102D4: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x41C5D5: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x389721EC9C: (below main) (in /lib64/libc-2.12.so)
==12765== 
==12765== 332 (24 direct, 308 indirect) bytes in 1 blocks are definitely lost in loss record 1,472 of 1,923
==12765==    at 0x4A05FDE: malloc (vg_replace_malloc.c:236)
==12765==    by 0x33D704587A: slapi_ch_malloc (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D70895CB: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x41D938: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x389721EC9C: (below main) (in /lib64/libc-2.12.so)
==12765== 
==12765== 440 (120 direct, 320 indirect) bytes in 5 blocks are definitely lost in loss record 1,521 of 1,923
==12765==    at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==12765==    by 0x33D704577B: slapi_ch_calloc (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7087A47: generate_componentid (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D708A7A2: plugin_setup (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D708B091: slapi_register_plugin_ext (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x5246E2B: syntax_register_matching_rule_plugins (in /usr/lib64/dirsrv/plugins/libsyntax-plugin.so)
==12765==    by 0x5241749: ces_init (in /usr/lib64/dirsrv/plugins/libsyntax-plugin.so)
==12765==    by 0x33D708A82B: plugin_setup (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x4102D4: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x41C5D5: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x389721EC9C: (below main) (in /lib64/libc-2.12.so)
==12765== 
==12765== 440 (120 direct, 320 indirect) bytes in 5 blocks are definitely lost in loss record 1,522 of 1,923
==12765==    at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==12765==    by 0x33D704577B: slapi_ch_calloc (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7087A47: generate_componentid (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D708A7A2: plugin_setup (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x410D6C: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x33D704EB57: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D705091E: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7050C0A: dse_read_file (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x418F4A: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x41C606: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x389721EC9C: (below main) (in /lib64/libc-2.12.so)
==12765== 
==12765== 504 bytes in 3 blocks are definitely lost in loss record 1,551 of 1,923
==12765==    at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==12765==    by 0x389BE2361C: PR_NewLock (in /lib64/libnspr4.so)
==12765==    by 0xB0844C9: agmt_new_from_entry (in /usr/lib64/dirsrv/plugins/libreplication-plugin.so)
==12765==    by 0xB08522A: add_new_agreement (in /usr/lib64/dirsrv/plugins/libreplication-plugin.so)
==12765==    by 0xB085333: ??? (in /usr/lib64/dirsrv/plugins/libreplication-plugin.so)
==12765==    by 0x33D709A243: send_ldap_search_entry_ext (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D709AF2B: send_ldap_search_entry (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7080784: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7080C16: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D70817EB: op_shared_search (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D708BB68: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0xB085060: agmtlist_config_init (in /usr/lib64/dirsrv/plugins/libreplication-plugin.so)
==12765==    by 0xB08BE57: multimaster_start (in /usr/lib64/dirsrv/plugins/libreplication-plugin.so)
==12765==    by 0x33D7088BDC: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7089555: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x41D938: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x389721EC9C: (below main) (in /lib64/libc-2.12.so)
==12765== 
==12765== 606 (96 direct, 510 indirect) bytes in 3 blocks are definitely lost in loss record 1,574 of 1,923
==12765==    at 0x4A05FDE: malloc (vg_replace_malloc.c:236)
==12765==    by 0x33D704587A: slapi_ch_malloc (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D704A45A: slapi_sdn_new (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D704A595: slapi_sdn_new_dn_byval (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D704A5D5: slapi_sdn_dup (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0xB084706: agmt_new_from_entry (in /usr/lib64/dirsrv/plugins/libreplication-plugin.so)
==12765==    by 0xB08522A: add_new_agreement (in /usr/lib64/dirsrv/plugins/libreplication-plugin.so)
==12765==    by 0xB085333: ??? (in /usr/lib64/dirsrv/plugins/libreplication-plugin.so)
==12765==    by 0x33D709A243: send_ldap_search_entry_ext (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D709AF2B: send_ldap_search_entry (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7080784: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7080C16: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D70817EB: op_shared_search (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D708BB68: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0xB085060: agmtlist_config_init (in /usr/lib64/dirsrv/plugins/libreplication-plugin.so)
==12765==    by 0xB08BE57: multimaster_start (in /usr/lib64/dirsrv/plugins/libreplication-plugin.so)
==12765==    by 0x33D7088BDC: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7089555: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x41D938: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x389721EC9C: (below main) (in /lib64/libc-2.12.so)
==12765== 
==12765== 648 bytes in 1 blocks are definitely lost in loss record 1,618 of 1,923
==12765==    at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==12765==    by 0x33D704577B: slapi_ch_calloc (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D704467C: be_new_internal (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D70A1AC7: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D70A1B6B: init_schema_dse (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x418E50: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x41C606: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x389721EC9C: (below main) (in /lib64/libc-2.12.so)
==12765== 
==12765== 648 bytes in 1 blocks are definitely lost in loss record 1,619 of 1,923
==12765==    at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==12765==    by 0x33D704577B: slapi_ch_calloc (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D704467C: be_new_internal (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x4193CC: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x41C606: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x389721EC9C: (below main) (in /lib64/libc-2.12.so)
==12765== 
==12765== 912 (336 direct, 576 indirect) bytes in 14 blocks are definitely lost in loss record 1,666 of 1,923
==12765==    at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==12765==    by 0x33D704577B: slapi_ch_calloc (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7087A47: generate_componentid (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D708A7A2: plugin_setup (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x40FEC0: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x41C5D5: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x389721EC9C: (below main) (in /lib64/libc-2.12.so)
==12765== 
==12765== 1,008 bytes in 6 blocks are definitely lost in loss record 1,677 of 1,923
==12765==    at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==12765==    by 0x389BE2361C: PR_NewLock (in /lib64/libnspr4.so)
==12765==    by 0xAE0CE4F: attrcrypt_init (in /usr/lib64/dirsrv/plugins/libback-ldbm.so)
==12765==    by 0xADEDF13: dblayer_instance_start (in /usr/lib64/dirsrv/plugins/libback-ldbm.so)
==12765==    by 0xAE06B6C: ldbm_instance_start (in /usr/lib64/dirsrv/plugins/libback-ldbm.so)
==12765==    by 0xAE06BE4: ldbm_instance_startall (in /usr/lib64/dirsrv/plugins/libback-ldbm.so)
==12765==    by 0xAE315D6: ldbm_back_start (in /usr/lib64/dirsrv/plugins/libback-ldbm.so)
==12765==    by 0x33D7088BDC: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7089555: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x41D938: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x389721EC9C: (below main) (in /lib64/libc-2.12.so)
==12765== 
==12765== 1,123 (168 direct, 955 indirect) bytes in 3 blocks are definitely lost in loss record 1,690 of 1,923
==12765==    at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==12765==    by 0x389BE1429B: PR_NewRWLock (in /lib64/libnspr4.so)
==12765==    by 0xAE352E8: vlv_init (in /usr/lib64/dirsrv/plugins/libback-ldbm.so)
==12765==    by 0xAE06BF0: ldbm_instance_startall (in /usr/lib64/dirsrv/plugins/libback-ldbm.so)
==12765==    by 0xAE315D6: ldbm_back_start (in /usr/lib64/dirsrv/plugins/libback-ldbm.so)
==12765==    by 0x33D7088BDC: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7089555: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x41D938: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x389721EC9C: (below main) (in /lib64/libc-2.12.so)
==12765== 
==12765== 1,149 (312 direct, 837 indirect) bytes in 13 blocks are definitely lost in loss record 1,693 of 1,923
==12765==    at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==12765==    by 0x33D704577B: slapi_ch_calloc (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7087A47: generate_componentid (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D708A7A2: plugin_setup (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D708B091: slapi_register_plugin_ext (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x5246E2B: syntax_register_matching_rule_plugins (in /usr/lib64/dirsrv/plugins/libsyntax-plugin.so)
==12765==    by 0x5242489: cis_init (in /usr/lib64/dirsrv/plugins/libsyntax-plugin.so)
==12765==    by 0x33D708A82B: plugin_setup (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x4102D4: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x41C5D5: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x389721EC9C: (below main) (in /lib64/libc-2.12.so)
==12765== 
==12765== 1,251 (504 direct, 747 indirect) bytes in 3 blocks are definitely lost in loss record 1,707 of 1,923
==12765==    at 0x4A05FDE: malloc (vg_replace_malloc.c:236)
==12765==    by 0x33D704587A: slapi_ch_malloc (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0xB088992: conn_new (in /usr/lib64/dirsrv/plugins/libreplication-plugin.so)
==12765==    by 0xB08EF90: ??? (in /usr/lib64/dirsrv/plugins/libreplication-plugin.so)
==12765==    by 0xB08F0D0: prot_new (in /usr/lib64/dirsrv/plugins/libreplication-plugin.so)
==12765==    by 0xB083F68: agmt_start (in /usr/lib64/dirsrv/plugins/libreplication-plugin.so)
==12765==    by 0xB090507: replica_start_agreement (in /usr/lib64/dirsrv/plugins/libreplication-plugin.so)
==12765==    by 0xB0852A6: add_new_agreement (in /usr/lib64/dirsrv/plugins/libreplication-plugin.so)
==12765==    by 0xB085333: ??? (in /usr/lib64/dirsrv/plugins/libreplication-plugin.so)
==12765==    by 0x33D709A243: send_ldap_search_entry_ext (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D709AF2B: send_ldap_search_entry (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7080784: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7080C16: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D70817EB: op_shared_search (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D708BB68: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0xB085060: agmtlist_config_init (in /usr/lib64/dirsrv/plugins/libreplication-plugin.so)
==12765==    by 0xB08BE57: multimaster_start (in /usr/lib64/dirsrv/plugins/libreplication-plugin.so)
==12765==    by 0x33D7088BDC: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7089555: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x41D938: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x389721EC9C: (below main) (in /lib64/libc-2.12.so)
==12765== 
==12765== 2,087 bytes in 1 blocks are possibly lost in loss record 1,780 of 1,923
==12765==    at 0x4A05FDE: malloc (vg_replace_malloc.c:236)
==12765==    by 0x389AE0124B: PL_ArenaAllocate (in /lib64/libplds4.so)
==12765==    by 0x389BA128A7: PORT_ArenaAlloc_Util (in /usr/lib64/libnssutil3.so)
==12765==    by 0x389BA128E2: PORT_ArenaStrdup_Util (in /usr/lib64/libnssutil3.so)
==12765==    by 0xD94928E: legacy_ReadSecmodDB (in /usr/lib64/libnssdbm3.so)
==12765==    by 0x3069626963: ??? (in /usr/lib64/libsoftokn3.so)
==12765==    by 0x306960DD69: NSC_ModuleDBFunc (in /usr/lib64/libsoftokn3.so)
==12765==    by 0x33D4C4B0B8: SECMOD_LoadModule (in /usr/lib64/libnss3.so)
==12765==    by 0x33D4C19619: ??? (in /usr/lib64/libnss3.so)
==12765==    by 0x33D4C19F92: NSS_Initialize (in /usr/lib64/libnss3.so)
==12765==    by 0x33D70A6AA0: slapd_nss_init (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x419C79: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x417B27: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x41D164: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x389721EC9C: (below main) (in /lib64/libc-2.12.so)
==12765== 
==12765== 2,467 (672 direct, 1,795 indirect) bytes in 28 blocks are definitely lost in loss record 1,791 of 1,923
==12765==    at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==12765==    by 0x33D704577B: slapi_ch_calloc (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7087A47: generate_componentid (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D708A7A2: plugin_setup (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x4102D4: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x41C5D5: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x389721EC9C: (below main) (in /lib64/libc-2.12.so)
==12765== 
==12765== 33,556 (4,000 direct, 29,556 indirect) bytes in 10 blocks are definitely lost in loss record 1,913 of 1,923
==12765==    at 0x4A05FDE: malloc (vg_replace_malloc.c:236)
==12765==    by 0x33D704587A: slapi_ch_malloc (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D707FD0B: operation_new (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D708C46A: internal_operation_new (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x33D7089158: ??? (in /usr/lib64/dirsrv/libslapd.so.0.0.0)
==12765==    by 0x41D938: ??? (in /usr/sbin/ns-slapd)
==12765==    by 0x389721EC9C: (below main) (in /lib64/libc-2.12.so)
==12765== 
==12765== LEAK SUMMARY:
==12765==    definitely lost: 11,536 bytes in 189 blocks
==12765==    indirectly lost: 39,464 bytes in 962 blocks
==12765==      possibly lost: 2,495 bytes in 4 blocks
==12765==    still reachable: 4,827,866 bytes in 22,308 blocks
==12765==         suppressed: 0 bytes in 0 blocks
==12765== Reachable blocks (those to which a pointer was found) are not shown.
==12765== To see them, rerun with: --leak-check=full --show-reachable=yes
==12765== 
==12765== For counts of detected and suppressed errors, rerun with: -v
==12765== Use --track-origins=yes to see where uninitialised values come from
==12765== ERROR SUMMARY: 112 errors from 82 contexts (suppressed: 41 from 9)

Please advice.

Comment 12 Rich Megginson 2011-05-05 14:32:33 UTC
All of the leaks in https://bugzilla.redhat.com/show_bug.cgi?id=697663#c11 are normal.  They aren't really leaks - it's just memory we expect to be reclaimed when the server exits.  And I don't see any entryusn related leaks.  I would say this bug is verified.

Comment 13 Noriko Hosoi 2011-05-05 16:26:25 UTC
(In reply to comment #12)
> All of the leaks in https://bugzilla.redhat.com/show_bug.cgi?id=697663#c11 are
> normal.  They aren't really leaks - it's just memory we expect to be reclaimed
> when the server exits.  And I don't see any entryusn related leaks.  I would
> say this bug is verified.

I agree with Rich.

Comment 14 Amita Sharma 2011-05-06 08:01:42 UTC
All Right, If this is the case then I am agree with both of you.
Hence marking the bug as VERIFIED.

Comment 15 errata-xmlrpc 2011-12-06 17:48:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2011-1711.html