Issue 3666 - back-bdb ignores cachesize limit
Summary: back-bdb ignores cachesize limit
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.2
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-16 18:53 UTC by Howard Chu
Modified: 2014-08-01 21:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Howard Chu 2005-04-16 18:53:28 UTC
Full_Name: Howard Chu
Version: 2.2
OS: 
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (24.126.120.178)
Submitted by: hyc


Followup to http://www.openldap.org/lists/openldap-software/200504/msg00288.html

The ctxcsn commit function can cause the LRU cache to be corrupted when adding
the first entry of a database. This happens because the commit function does a
dn2entry to look itself up, while the context entry is still being committed to
the database; later the actual add of the context entry completes and its
entryinfo is added into the cache twice. (Once due to the dn2entry call, once
during completion of the entry add.) The bug only occurs when freshly creating a
database via ldapAdd, and a server restart clears the condition after the
context entry and syncProviderSubentry are written. But running one long ldapAdd
to populate the database will exhaust system memory if the server is not stopped
and restarted first.

A fix will be committed momentarily.

This bug does not affect HEAD/2.3 as the offending functions were deleted
already.

Comment 1 Howard Chu 2005-04-16 19:00:28 UTC
changed notes
changed state Open to Test
moved from Incoming to Software Bugs
Comment 2 Kurt Zeilenga 2005-04-22 21:39:48 UTC
changed state Test to Closed
Comment 3 Kurt Zeilenga 2005-05-11 20:01:59 UTC
changed state Closed to Release
Comment 4 Howard Chu 2005-05-11 20:16:49 UTC
changed notes
changed state Release to Closed
Comment 5 Howard Chu 2009-02-17 05:10:56 UTC
moved from Software Bugs to Archive.Software Bugs
Comment 6 OpenLDAP project 2014-08-01 21:06:36 UTC
fixed in 2.2.25