Bug 800217

Summary: fix valgrind reported issues
Product: Red Hat Enterprise Linux 6 Reporter: Rich Megginson <rmeggins>
Component: 389-ds-baseAssignee: Rich Megginson <rmeggins>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3CC: amsharma, jgalipea, shaines
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-1.2.10.2-2.el6 Doc Type: Bug Fix
Doc Text:
Not a bug the customer could run into. These fixes improve the server robustness.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 07:14:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Rich Megginson 2012-03-06 02:16:35 UTC
memleak in normalize_mods2bvals

memleak in mep_parse_config_entry

handle null smods in dna_pre_op

How to verify:

run linked attributes, memberof, managed entry, auto member, DNA tests using valgrind - should see no errors reported in the above functions

Comment 2 Amita Sharma 2012-05-24 11:46:45 UTC
Following :: https://home.corp.redhat.com/wiki/dsbasics#valgrind_callgrind_and_more for valgring configuration but getting error :::

[root@dhcp201-174 valgrind]# cd /usr/sbin
[root@dhcp201-174 sbin]# mv ns-slapd ns-slapd.orig
[root@dhcp201-174 sbin]# cp /export/valgrind/ns-slapd.sh ns-slapd
[root@dhcp201-174 sbin]# cp /export/valgrind/valgrind.supp /tmp
[root@dhcp201-174 sbin]# export USE_VALGRIND=1
[root@dhcp201-174 sbin]# service dirsrv restart
Shutting down dirsrv: 
    dhcp201-174...                                         [  OK  ]
Starting dirsrv: 
    dhcp201-174.../etc/init.d/dirsrv: line 204: /usr/sbin/ns-slapd: Permission denied
                                                           [FAILED]
  *** Warning: 1 instance(s) failed to start
[root@dhcp201-174 sbin]# vim /usr/sbin/ns-slapd
[root@dhcp201-174 sbin]# vim /etc/init.d/dirsrv
[root@dhcp201-174 sbin]#

Comment 3 Rich Megginson 2012-05-24 12:46:46 UTC
after 
[root@dhcp201-174 sbin]# cp /export/valgrind/ns-slapd.sh ns-slapd
do
[root@dhcp201-174 sbin]# chmod +x ns-slapd

Comment 4 Rich Megginson 2012-05-24 23:45:41 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Not a bug the customer could run into.  These fixes improve the server robustness.

Comment 5 Amita Sharma 2012-05-30 08:09:14 UTC
Marking the bug verified as sanity only.

Comment 6 errata-xmlrpc 2012-06-20 07:14:55 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/RHSA-2012-0813.html