-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash related to unwind protect short circuiting
It seems relying on non-local static objects can cause memory issues, that are resolved by moving to use a local static objects instead. Fixes #244
- Loading branch information
Showing
2 changed files
with
7 additions
and
6 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
@DavisVaughan did you try changing this to
static auto& should_unwind_protect
? It is possible that the type deduction is not using a reference, so the subsequent assignment is assigning to a copy rather than a reference as intended.If this fixes the issue it would be a simpler change than that proposed in #298