https://bugs.openldap.org/show_bug.cgi?id=9037
--- Comment #31 from mdufour@audiokinetic.com --- I am able to reproduce the crash in a scenario with two processes accessing the same LMDB file, where:
- process1 opens a named database. - process2 drops this named database. - process1 writes to the initial named database (using the dbi it was holding on to) -> this is where we crash.
It seems that mdb_page_search returns MDB_NOTFOUND because the named database is gone, leaving mc->mc_pg[0] NULL.