Skip to content

Conversation

@NaN-git
Copy link
Contributor

@NaN-git NaN-git commented May 10, 2025

In the destructor of fiber its context can be loaded. The exception state saved in resume()/resume_with() can be restored during stack unwinding after a forced_unwind exception is thrown, which is caught afterwards, i.e. the exception state becomes corrupted.

This patch ensures that the correct exception state is restored before the destructor of the fiber returns.

Fixes #302.

@NomAnor
Copy link

NomAnor commented May 10, 2025

This fixes the problem with nix in Arch Linux as referenced in the issue.

@olk olk merged commit 3af0091 into boostorg:develop May 25, 2025
19 of 22 checks passed
@olk
Copy link
Member

olk commented May 25, 2025

ty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exception state corruption in 1.88

3 participants