Red Hat Bugzilla – Bug 888800
MEmory leak in new memcache initgr cleanup function
Last modified: 2013-02-21 04:42:48 EST
This bug is created as a clone of upstream ticket: https://fedorahosted.org/sssd/ticket/1730 a user in the #sssd channel reported a valgrind output that led me to find out a glaring memory leak in the new feature we introduced to clean up the mem cache on initgroups calls.
To reproduce, set up a large group. Start the sssd and note the sssd_nss memory consumption. Then run: for i in `getent group $largegroup | tr ',' ' '`; do id $i; done And watch the memory consumption grow gradually.
Verified in version 1.9.2-74 Memory consumption on id lookup of every 1000 users in KB is: After first 1000: 17124 Next 1000 : 23320 Next 1000 : 18860 Next 1000 : 17640 Next 1000 : 20996 Overall 3MB increase in memory consumption.
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-2013-0508.html