[Date Prev][Date Next] [Chronological] [Thread] [Top]

Index corruption and crash in back-ldbm (ITS#2348)



Full_Name: Villy Kruse
Version: 2.0.27
OS: RH6.2 linux
URL: ftp://ftp.openldap.org/incoming/Villy-Kruse-030305.patch
Submission from: (NULL) (62.58.72.98)


There seems still to be a problem wiht back-ldbm where the index is
corrupted after heavy insert and delete activity.  The bug is very
hard to reproduce, but when the index has been corrupted, running
slapindex repeatedly will also cause a index corruption every time.
This depends on the sequence the keys are added to the various index
dbm files.  The problem occurs when a inserting an item in the middle
of a full block and the last item is deleted from the current block to
make room and inserted into the next block.

I have made a patch which contains some more details of the bug and how I
tried to fix it.


Villy