github@nicwatson.org wrote:
Full_Name: Nic Watson Version: LMDB 0.9.21 OS: Ubuntu 16.04.3 LTS URL: https://gist.github.com/jnwatson/86b43b0515fe552a087d741d4ab43922 Submission from: (NULL) (108.56.136.246)
See the URL for the minimal C program to reproduce the crash and the gdb backtrace.
LMDB will seg fault in mdb_dbi_open when creating a new database if the environment was opened read-only.
Thanks for the report, but this doesn't seem like a bug. Trying to create something when the environment was opened read-only is clearly a misuse of the API, and SEGVs are expected when the API is misused.