Skip to content

[windows] XFAIL crash-in-user-code test in MSVC 2017 #34143

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

Merged
merged 1 commit into from
Oct 2, 2020

Conversation

drodriguez
Copy link
Contributor

See also #33383 where this problem is better explained.

MSVC doesn't seem to trigger the exception code when no frame pointers are generated. The only thing missing would be for interpreted code to have a more informative crash message.

Add a new LLVM Lit feature with the value of the VisualStudioVersion environment variable (it seems to not change even for minor versions, so it is an easy way to figure out the 2017/2019 difference, even if updates are applied).

Use the new feature in a XFAIL check in the test.

See also swiftlang#33383 where this problem is better explained.

MSVC doesn't seem to trigger the exception code when no frame pointers are generated. The only thing missing would be for interpreted code to have a more informative crash message.

Add a new LLVM Lit feature with the value of the VisualStudioVersion environment variable (it seems to not change even for minor versions, so it is an easy way to figure out the 2017/2019 difference, even if updates are applied).

Use the new feature in a XFAIL check in the test.
@drodriguez
Copy link
Contributor Author

@swift-ci please test

@drodriguez
Copy link
Contributor Author

Windows is failing because the LLDB problem (swiftlang/llvm-project#1887 haven't made it yet to swift/master), so it will fail for that platform anyway.

@swift-ci
Copy link
Contributor

swift-ci commented Oct 1, 2020

Build failed
Swift Test Linux Platform
Git Sha - fcb51dc

@swift-ci
Copy link
Contributor

swift-ci commented Oct 1, 2020

Build failed
Swift Test OS X Platform
Git Sha - fcb51dc

Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

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

This is great, thank you!

@compnerd
Copy link
Member

compnerd commented Oct 1, 2020

@swift-ci please smoke test

1 similar comment
@compnerd
Copy link
Member

compnerd commented Oct 2, 2020

@swift-ci please smoke test

@drodriguez drodriguez merged commit ded29c5 into swiftlang:main Oct 2, 2020
@drodriguez drodriguez deleted the windows-xfail-msvc-2017-test branch October 2, 2020 06:03
drodriguez added a commit to drodriguez/swift that referenced this pull request Nov 7, 2020
The test started working in the last week, for unknown reasons.

Remove the XFAIL line, but keep the infra for detecting the MSVC version
for the tests. It might be useful later.

If the test starts failing again, and nobody has any idea why, the best
path forward might be marking it as UNSUPPORTED.
drodriguez added a commit that referenced this pull request Nov 8, 2020
…test

[windows] Partial revert #34143. Remove XFAIL.
ainu-bot added a commit to google/swift that referenced this pull request Nov 8, 2020
* 'main' of github.com:apple/swift:
  [windows] Partial revert swiftlang#34143. Remove XFAIL.
drodriguez added a commit to drodriguez/swift that referenced this pull request Nov 10, 2020
The test is very flaky. It works and stops working randomly for no
apparent reason. To avoid future problems, and since VS2019 keeps
working without these problems, mark the tests as unsupported to avoid
the noise.

See also swiftlang#34143 and swiftlang#34625.
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.

3 participants