Skip to content

[Backport 2.31-maintenance] libutil: Try to call std::terminate for panic, use C++20 std::source_location#14192

Merged
internal-nix-ci[bot] merged 2 commits into2.31-maintenancefrom
backport-13861-to-2.31-maintenance
Oct 8, 2025
Merged

[Backport 2.31-maintenance] libutil: Try to call std::terminate for panic, use C++20 std::source_location#14192
internal-nix-ci[bot] merged 2 commits into2.31-maintenancefrom
backport-13861-to-2.31-maintenance

Conversation

@internal-nix-ci
Copy link

Automatic backport to 2.31-maintenance, triggered by a label in #13861.

We now have a terminate handler that prints a
stack trace, which is useful to have when encountering
an unreachable.

(cherry picked from commit 1f607b5)
Make unreachable a function instead of a macro, since
C++20 provides a convenience class as a replacement for
older __FILE__, __LINE__ macros.

(cherry picked from commit d59b959)
@internal-nix-ci internal-nix-ci bot merged commit 3019db2 into 2.31-maintenance Oct 8, 2025
17 checks passed
@internal-nix-ci internal-nix-ci bot deleted the backport-13861-to-2.31-maintenance branch October 8, 2025 20:46
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.

2 participants