Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Windows hang in testing #417

Merged
merged 47 commits into from
Dec 15, 2023
Merged

Fix Windows hang in testing #417

merged 47 commits into from
Dec 15, 2023

Conversation

bifurcation
Copy link
Contributor

@bifurcation bifurcation commented Dec 14, 2023

Since a recent upgrade to the windows-latest image, Windows CI builds have been hanging when running certain tests. This turns out to be due to an error in the way MSVC implements "empty base optimization", which breaks the overloaded technique for ad-hoc polymorphic lambdas -- simply defining one results in stack corruption. While Microsoft claims to have fixed this bug, and GitHub claims to use a version that has the fix, the bug still manifests. This PR adds a work-around that ensures that an overloaded type always has at least one member.

@bifurcation
Copy link
Contributor Author

OK, I think the mystery is resolved here. I will work on getting the Catch2 change merged, then land this one.

@bifurcation bifurcation changed the title Attempt to diagnose Windows hang in CI Fix Windows hang in testing Dec 15, 2023
Copy link
Contributor

@glhewett glhewett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bifurcation bifurcation merged commit 56f23eb into main Dec 15, 2023
14 checks passed
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