-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASAN mdbx_env_open crash #95
Comments
The same result is for v0.7.0 version |
Confirmed: null-pointer dereference in an ASAN-enabled build while opening DB in the read-only mode, i.e. ASAN + readonly-opening.
@oleg-kiriyenko, thank you for reporting. I'll try to fix it as soon as possible. |
Fix for read only openning using that call:
But still crashes for:
Maybe it is invalid use?
|
@oleg-kiriyenko, please use quotation marks for logs. Instead each |
…rror. More for #95 Change-Id: I6250fe7b0fbbcae497c2b5c1da9b4e9f78ecf0f0
TODO: add corresponding test-cases. |
Crash was fixed. Now it is OK. But I get strange error
Which corresponds EINVAL. In previous version I had warning something like "error=22, try-exclusive". So I guess error is in obtaining lock. Maybe I need root privilages or other flags? rc = mdbx_env_open(db->env, dir_path, 0, 0666);
if (rc != MDBX_SUCCESS) {
log_error(get_thread_data()->ctx, "mdbx_env_open() error: %s", mdbx_strerror(rc)); But database files were created:
|
Therefore I will close this issue.
Please open new issue for this case and be ready to run your application with
Yes.
No, just the EUID that enough to open/write files. |
@oleg-kiriyenko, for source of the "error=22, try-exclusive" message take look to the |
@oleg-kiriyenko, in general Doest the |
Yes, it is WSL. Windows Kernel emulating Linux kernel. |
Copy & Paste from #97:
|
Application using lmdbx crashes while started with ASAN.
Ubuntu 18.04/clang-9/
The text was updated successfully, but these errors were encountered: