Skip to content
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

PR - Ticket 50659 AddressSanitizer: SEGV ... in bdb_pre_close #3726

Closed
389-ds-bot opened this issue Sep 13, 2020 · 7 comments
Closed

PR - Ticket 50659 AddressSanitizer: SEGV ... in bdb_pre_close #3726

389-ds-bot opened this issue Sep 13, 2020 · 7 comments
Labels
merged Migration flag - PR pr Migration flag - PR

Comments

@389-ds-bot
Copy link

Cloned from Pagure Pull-Request: https://pagure.io/389-ds-base/pull-request/50671

  • Created at 2019-10-23 17:29:09 by lkrispen (@elkris)
  • Merged at 2019-11-14 16:15:27

Bug: The crash reported is caused by calling dblayer_close twice in some
offline exec modes. Investigating the crash revealed another crash
in dbverify and memory leaks, one introduced by the backend
patch, two existing previously

Fix: - call dblayer_close only once
- initialize db env properly in dbverify execmode
- don't set sdn by reference when adding to entrydncache
- free collected instances from commandline in dbupgrade mode
- free bdb env in index mode

Reviewed by: ?

@389-ds-bot 389-ds-bot added merged Migration flag - PR pr Migration flag - PR labels Sep 13, 2020
@389-ds-bot
Copy link
Author

Comment from lkrispen (@elkris) at 2019-11-05 10:09:19

rebased onto 4adca4e7d4ac24611b1a209f9fb49b302c5f3176

@389-ds-bot
Copy link
Author

Comment from firstyear (@Firstyear) at 2019-11-12 23:56:14

Looks reasonable to me, my only question is about the removal of dblayer_close()? Is this closed elsewhere?

@389-ds-bot
Copy link
Author

Comment from lkrispen (@elkris) at 2019-11-13 09:13:11

Looks reasonable to me, my only question is about the removal of dblayer_close()? Is this closed elsewhere?

yes. and that has caused the crash, trying to free it twice. In the reported scenario it is also called in bdb_upgradedb() and in general it is called above import_main_offline()

@389-ds-bot
Copy link
Author

Comment from firstyear (@Firstyear) at 2019-11-14 02:46:32

Ack from me then, this all makes sense.

@389-ds-bot
Copy link
Author

Comment from lkrispen (@elkris) at 2019-11-14 16:14:43

rebased onto b77f04a

@389-ds-bot
Copy link
Author

Comment from lkrispen (@elkris) at 2019-11-14 16:15:27

Pull-Request has been merged by elkris

@389-ds-bot
Copy link
Author

Patch
50671.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged Migration flag - PR pr Migration flag - PR
Projects
None yet
Development

No branches or pull requests

1 participant