https://bugs.openldap.org/show_bug.cgi?id=9920
--- Comment #16 from kero renault.cle@gmail.com --- Hey Howard,
I was able to reproduce the issue. It took me maybe less than one hour. I modified the mtest_env.c to use larger keys and values. It seems that when you insert a lot (64k) entries with keys with a length >= 19, define an auth data size >= 8, and values of size [1;150] bytes, the database becomes corrupted.
Note that I am not very fluent in C and didn't take the time to deallocate some mallocs. I also kept the key_lengths area even though keys have a constant length of KEY_LENGTH = 24. I don't think it impacts the reproducer. You can search for ITS#9920 in the code to find the interesting parameters that are corrupting the database.
I hope you'll find a fix. Have a nice day. kero