https://bugs.openldap.org/show_bug.cgi?id=9378
--- Comment #13 from Howard Chu hyc@openldap.org --- Created attachment 989 --> https://bugs.openldap.org/attachment.cgi?id=989&action=edit Replay log output
If you can build LMDB with debug logging enabled, and send the log output from a crashed session, we may be able to learn more. The attached program can replay all of the operations from a debug log, so it can exactly recreate the steps that occurred originally. (Note that it requires the log to start from the very beginning, i.e., when the DB is created.)
Since LMDB is single-writer all of its write operations are completely deterministic, and replaying the same sequence will always produce the exact same DB. The only way for this to fail is if multiple threads used the same write txn at the same time.