-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Compiler crash when building swift-testing at commit 6a49142b223f214eff5da6c1224935a80e62e512 #79304
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
Comments
The same crash seems happening on macos as well: https://ci.swift.org/job/oss-swift-incremental-RA-macos-apple-silicon/8156/consoleText |
I'm planning to temporarily revert the swift-testing change in swiftlang/swift-testing#950 |
The revert has been merged. |
Reduced test case -- requires
We're mixing up |
…ilient index type emitKeyPathSubscriptOperands() uses the ArgEmitter to collect index arguments, which uses ResilienceExpansion::Minimal when lowering parameter types. For this reason, lowerKeyPathSubscriptIndexTypes() should also use ResilienceExpansion::Minimal when lowering parameter types. Otherwise, we crash in the SIL verifier due to a loadable vs address-only mismatch, if the index type is resilient. Fixes rdar://problem/144654366. Fixes swiftlang#79304.
…evert #931) (#952) This un-reverts #950, effectively reintroducing the changes recently landed in #931. The revert was needed because it revealed a latent bug in the Swift compiler, tracked by swiftlang/swift#79304. I reproduced that failure and included a workaround in the second commit on this PR. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
@slavapestov Thank you for the fix! |
Uh oh!
There was an error while loading. Please reload this page.
Description
https://ci.swift.org/job/oss-swift-incremental-RA-macos-apple-silicon/8156/consoleText
https://ci-external.swift.org/job/swift-main-windows-toolchain/1055/consoleText
The swift compiler at head (commit
a86743e77edd1f1a51e5f25d1b10b7cf0c8d24f7
) crashes due to a SIL verification failure when buildingswift-testing
at commit6a49142b223f214eff5da6c1224935a80e62e512
. It didn't crash withswift-testing
at commit63eb1d97e305befeea9cee3482a9ce38507a2cf6
.Full crash log:
compiler-crash-swift-testing.txt
Reproduction
Build swift-testing with the swift compiler built at head
Stack dump
Expected behavior
No crash
Environment
The swift-main-windows-toolchain CI.
The swift compiler at head (commit
a86743e77edd1f1a51e5f25d1b10b7cf0c8d24f7
) crashes due to a SIL verification failure when buildingswift-testing
at commit6a49142b223f214eff5da6c1224935a80e62e512
on windows.Additional information
No response
The text was updated successfully, but these errors were encountered: