Bug 1169975
Summary: | COS memory leak when rebuilding the cache | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | mreynolds | ||||
Component: | 389-ds-base | Assignee: | Noriko Hosoi <nhosoi> | ||||
Status: | CLOSED ERRATA | QA Contact: | Viktor Ashirov <vashirov> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 6.6 | CC: | amsharma, jgalipea, mreynolds, nkinder, rmeggins | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | 389-ds-base-1.2.11.15-51.el6 | 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-07-22 06:36: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: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
mreynolds
2014-12-02 21:39:57 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. [root@qe-blade-09 export]# ldapmodify -x -a -D "cn=Directory Manager" -w Secret123 -p 389 -h localhost -f /export/1169975COS.ldif adding new entry "cn=cosTemplateExample,ou=People,dc=example,dc=com" adding new entry "cn=cosTemplateExample1,ou=People,dc=example,dc=com" adding new entry "cn=cosPointer,ou=People,dc=example,dc=com" adding new entry "cn=cosPointer1,ou=People,dc=example,dc=com" [root@qe-blade-09 export]# ldapmodify -x -D "cn=Directory Manager" -w Secret123 -p 389 -h localhost << EOF dn: cn=cosTemplateExample,ou=People,dc=example,dc=com changetype: modify replace: st st: AND EOF modifying entry "cn=cosTemplateExample,ou=People,dc=example,dc=com" [root@qe-blade-09 export]# service dirsrv stop Shutting down dirsrv: qe-blade-09...[ OK there is no memory leak for COS, but there are other leaks. PFA for the valgrind output and suggest, if they required to be fixed. I am marking this bug as VERIFIED as no leaks for COS found. Created attachment 998213 [details]
valgrind output
Hi Amita, You can mark this as verified. There are other virtual attribute search leaks, but there is already a ticket open for those. The rest of the leaks can be ignored and are harmless (startup) leaks. Thanks, Mark 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/RHBA-2015-1326.html |