Repository navigation
Add boost.context patch for std::uncaught_exceptions() misreporting 0 while abandoning the coroutine - #16197
Merged
Conversation
This surfaces the bug fixed by boostorg/context#337 in our test suite.
… while abandoning the coroutine Applies a patch to our boost.context dependency to fix #16174. An alternative would be to apply basically the same workaround to our suspension points, but that would be more fragile. Other packagers might want to apply the boost patch too (maybe once that's merged upstream), since the issue is likely to affect more stuff than just nix. The bug is subtle enough that it went unnoticed for quite some time.
edolstra
approved these changes
Jul 22, 2026
xokdvium
enabled auto-merge
July 22, 2026 21:09
3 of 13 tasks
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin 2.34-maintenance
git worktree add -d .worktree/backport-16197-to-2.34-maintenance origin/2.34-maintenance
cd .worktree/backport-16197-to-2.34-maintenance
git switch --create backport-16197-to-2.34-maintenance
git cherry-pick -x 88579a87f43a88b8ea5c0a0bbaa737620ad1241e f8b102f902ee98bf051232a001e1e55b13ff70a4 54aa8880be35e7d169e8d84d3dc135893cc4ff12 |
1 similar comment
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin 2.34-maintenance
git worktree add -d .worktree/backport-16197-to-2.34-maintenance origin/2.34-maintenance
cd .worktree/backport-16197-to-2.34-maintenance
git switch --create backport-16197-to-2.34-maintenance
git cherry-pick -x 88579a87f43a88b8ea5c0a0bbaa737620ad1241e f8b102f902ee98bf051232a001e1e55b13ff70a4 54aa8880be35e7d169e8d84d3dc135893cc4ff12 |
|
Successfully created backport PR for |
1 task
Merged
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Applies a patch to our boost.context dependency to fix
#16174. An alternative would be to
apply basically the same workaround to our suspension points, but that
would be more fragile. Other packagers might want to apply the boost
patch too (maybe once that's merged upstream), since the issue is likely
to affect more stuff than just nix.
The bug is subtle enough that it went unnoticed for quite some time.
Also adds a test that surfaces this bug so that (rather few) people running out unit tests don't silently build with a busted boost.
The patch isn't merged upstream yet, but we've discussed this during today's meeting and it seems best to apply these fixes to nixpkgs packaging instead of rolling a gazillion point releases adding workarounds for this stuff everywhere.
Context
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.