https://bugs.openldap.org/show_bug.cgi?id=10114
--- Comment #1 from Howard Chu hyc@openldap.org --- Crashes in Baloo have been reported before. Unfortunately we also need a debug build of Baloo to really know what's going on. My previous attempts to build one all failed, giving me a baloo binary that just SEGV'd on startup.
Fyi, there is no evidence that LMDB has any relevant bugs causing self corruption. My suspicion is that Baloo has tried to use a single write transaction from more than one thread but we need to be able to debug that to know for sure.
If you're willing to send me your DB file privately I can try to dig at it and see what's wrong inside. You'd actually be the first person who's reported this Baloo issue to provide one.