-
Notifications
You must be signed in to change notification settings - Fork 923
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lmdb: be sure to abort pending transactions in the correct order.
If the LMDBBackend destructor is invoked while there are still pending transactions, these need to be aborted, but in the reverse order of their creation (i.e. abort the innermost transaction first). The default destructor would abort them in a class field declaration-dependent order, which may not match the actual cinematic. We now remember which transaction is the innermost one, so that we can abort them in the expected order. This gets rid of "double free or corruption (top)" aborts with glibc, and Address Sanitizer errors.
- Loading branch information
1 parent
085f2db
commit 7b5e66a
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters