Bug 1034898

Summary: automember plugin task memory leaks
Product: Red Hat Enterprise Linux 7 Reporter: Nathan Kinder <nkinder>
Component: 389-ds-baseAssignee: Rich Megginson <rmeggins>
Status: CLOSED CURRENTRELEASE QA Contact: Sankar Ramalingam <sramling>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: amsharma, mreynolds, nhosoi
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-1.3.1.6-12.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 13:08:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
valgrind output none

Description Nathan Kinder 2013-11-26 16:45:40 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/389/ticket/47592

automember_rebuild_task_thread() & automember_export_task_thread() do not destroy the search_pb pblocks.

Comment 5 Amita Sharma 2014-02-12 11:10:28 UTC
Created attachment 862203 [details]
valgrind output

Hi Mark,

I have enabled valgrind and executed auto member acceptance ( autoMemTask01() ),
Test case failed due to some issue of not able to stop the instance but it could successfully added the automember rebuild task - 

add objectClass:
	top
	extensibleObject
add basedn:
	ou=TaskEmployees,dc=autoMembers,dc=com
add filter:
	(objectClass=posixAccount)
add scope:
	sub
adding new entry cn=Rebuild,cn=automember rebuild membership,cn=tasks,cn=config
modify complete

Successfully added a task for running automembers Rebuild task

And I could see "automember" in the valgrind output. PFA.
Please guide if this is the issue?

Comment 6 mreynolds 2014-02-12 14:59:32 UTC
(In reply to Amita Sharma from comment #5)
> Created attachment 862203 [details]
> valgrind output
> 
> Hi Mark,
> 
> I have enabled valgrind and executed auto member acceptance (
> autoMemTask01() ),
> Test case failed due to some issue of not able to stop the instance but it
> could successfully added the automember rebuild task - 
> 
> add objectClass:
> 	top
> 	extensibleObject
> add basedn:
> 	ou=TaskEmployees,dc=autoMembers,dc=com
> add filter:
> 	(objectClass=posixAccount)
> add scope:
> 	sub
> adding new entry cn=Rebuild,cn=automember rebuild
> membership,cn=tasks,cn=config
> modify complete
> 
> Successfully added a task for running automembers Rebuild task
> 
> And I could see "automember" in the valgrind output. PFA.
> Please guide if this is the issue?

This is fine, the leak is fixed.  You can mark this verified.

Comment 7 Amita Sharma 2014-02-13 07:28:54 UTC
Marking the bug as VERIFIED

Comment 8 Amita Sharma 2014-03-11 12:29:43 UTC
Automated in Automember tet suit in autoMemTask01()

Comment 9 Ludek Smid 2014-06-13 13:08:40 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.