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
ns-slapd dbverify fails with segfault #3753
Comments
Comment from firstyear (@Firstyear) at 2019-11-12 01:19:26 I see nothing obviously wrong with the patch, what do you think @mreynolds389 |
Comment from firstyear (@Firstyear) at 2019-11-12 01:19:27 Metadata Update from @Firstyear:
|
Comment from lkrispen (@elkris) at 2019-11-12 09:21:54 It is correct that the init is missing, but dblayer_init is called in dblayer_setup, which then also decides if to call bdb_init or the init for another backend implementation. I have fixed the crash in dbverify along with others in PR50671 which is waiting for review quite a while |
Comment from firstyear (@Firstyear) at 2019-11-12 23:56:57 Reviewing now, I think maybe I missed a review email on 389-devel then as I try to stay on top of these :) |
Comment from mreynolds (@mreynolds389) at 2019-11-14 17:50:54 Duplicate of 50659 (which is now fixed) |
Comment from mreynolds (@mreynolds389) at 2019-11-14 17:50:55 Metadata Update from @mreynolds389:
|
Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/50698
Issue Description
ns-slapd dbverify fails with segfault.
The backtrace is as follows.
I suspect that ns-slapd forgets to initialize dblayer_private of ldbm database plugin before using it.
I'm not sure it is appropriate but the followings patch seems to work.
Package Version and Platform
21f2a06
Fedora 31
Steps to reproduce
ns-slapd dbverify -D configdir
Actual results
ns-slapd dbverify fails with segfault.
Expected results
ns-slapd dbverify exits normally.
The text was updated successfully, but these errors were encountered: