https://bugs.openldap.org/show_bug.cgi?id=9866
Issue ID: 9866 Summary: delta-sync memleak on Adds Product: OpenLDAP Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: hyc@openldap.org Target Milestone: ---
Due to the entry->e_name massaging in back-mdb/add.c (ITS#5326) syncrepl wasn't freeing the non-normalized DN as expected after add finished.
https://bugs.openldap.org/show_bug.cgi?id=9866
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs_review | Target Milestone|--- |2.5.13
https://bugs.openldap.org/show_bug.cgi?id=9866
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #1 from Howard Chu hyc@openldap.org --- Fixed in master 14972a7ae1142cccdad6db3ac50ecc47d0ecfa91
https://bugs.openldap.org/show_bug.cgi?id=9866
--- Comment #2 from Michael Ströder michael@stroeder.com --- Does this affect any add operation to a back-mdb database or does this mem leak only happen if delta-syncrepl is used. (The latter seems implied by the bug's subject.)
Why I'm asking: You might remember that I'm trying to find the cause for ever-growing memory usage on Æ-DIR providers (see also ITS#9365). Æ-DIR does not use delta-syncrepl but the Æ-DIR providers have slapo-accesslog enabled for storing an audit trail. And the accesslog DB is of course using back-mdb.
https://bugs.openldap.org/show_bug.cgi?id=9866
--- Comment #3 from Howard Chu hyc@openldap.org --- The bug title is accurate. It only affects Adds performed by the delta-sync consumer.
https://bugs.openldap.org/show_bug.cgi?id=9866
--- Comment #4 from Quanah Gibson-Mount quanah@openldap.org --- head:
• 14972a7a by Howard Chu at 2022-06-16T21:32:07+01:00 ITS#9866 delta-sync: fix DN leak on Adds
RE26:
• 5a292046 by Howard Chu at 2022-06-17T14:42:33+01:00 ITS#9866 delta-sync: fix DN leak on Adds
RE25:
• 50a65a73 by Howard Chu at 2022-06-23T18:47:25+00:00 ITS#9866 delta-sync: fix DN leak on Adds
https://bugs.openldap.org/show_bug.cgi?id=9866
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED