Bug 1170708
Summary: | COS memory leak when rebuilding the cache | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | mreynolds | ||||
Component: | 389-ds-base | Assignee: | Noriko Hosoi <nhosoi> | ||||
Status: | CLOSED ERRATA | QA Contact: | Viktor Ashirov <vashirov> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 7.0 | CC: | amsharma, nkinder, rmeggins | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | 389-ds-base-1.3.3.1-10.el7 | Doc Type: | Bug Fix | ||||
Doc Text: |
Cause: An internal schema list was not completed freed when the COS cache is released
Consequence: A memory leak.
Fix: Free the entire schema list from the COS cache.
Result: No memory leak
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-03-05 09:39: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: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
mreynolds
2014-12-04 16:23:34 UTC
Fixed upstream. Verification steps: [1] setup DS using valgrind [2] Add 2 COS templates and definitions [3] Modify the template in any way [4] stop theserver and check the valgrind output file for "cos_cache_add_attrval" [5] If it's not found the leak is fixed. adding new entry "cn=cosPointer,ou=People,dc=example,dc=com"
adding new entry "cn=cosPointer1,ou=People,dc=example,dc=com"
adding new entry "cn=cosTemplateExample,ou=People,dc=example,dc=com"
adding new entry "cn=cosTemplateExample1,ou=People,dc=example,dc=com"
[root@dhcp201-126 export]# cat /export/COS_poinet.ldif
#cos pointer defination 1
dn: cn=cosPointer,ou=People,dc=example,dc=com
objectClass: top
objectClass: ldapsubentry
objectClass: cossuperdefinition
objectClass: cosPointerDefinition
description: cosPointer example
costemplatedn: cn=cosTemplateExample,ou=people,dc=example,dc=com
cosAttribute: st
cn: cosPointer
#cos pointer defination 2
dn: cn=cosPointer1,ou=People,dc=example,dc=com
objectClass: top
objectClass: ldapsubentry
objectClass: cossuperdefinition
objectClass: cosPointerDefinition
description: cosPointer example
costemplatedn: cn=cosTemplateExample1,ou=people,dc=example,dc=com
cosAttribute: postalCode
cn: cosPointer1
#cos template defination 1
dn: cn=cosTemplateExample,ou=People,dc=example,dc=com
objectClass: top
objectClass: costemplate
objectClass: extensibleobject
st: OR
cn: cosTemplateExample
#cos template defination 2
dn: cn=cosTemplateExample1,ou=People,dc=example,dc=com
objectClass: top
objectClass: costemplate
objectClass: extensibleobject
postalCode: 1234
cn: cosTemplateExample1
[root@dhcp201-126 export]# ldapmodify -D "cn=directory manager" -w Secret123 -p 389 -h localhost << EOF
> dn: cn=cosTemplateExample1,ou=People,dc=example,dc=com
> changetype: modify
> replace: postalCode
> postalCode: 5678
> EOF
modifying entry "cn=cosTemplateExample1,ou=People,dc=example,dc=com"
[root@dhcp201-126 export]# /usr/lib64/dirsrv/slapd-dhcp201-126/stop-slapd
[root@dhcp201-126 export]#
#grep cos_cache_add_attrval /tmp/valgrind.out
#
PFA for valgrind.out. Hence VERIFIED.
Created attachment 972703 [details]
valgrind output
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. https://rhn.redhat.com/errata/RHSA-2015-0416.html |