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
[SR-14988] Regression: Swift 5.5 compiler crashes during SILGEN (5.4 ok) #57330
Comments
Could you please format the crash message correctly? It's very difficult to read/understand in its current state. (If you use the plain text editor, you should be able to put surrounding code blocks and paste directly, that should preserve newlines properly.) |
Also, if you are able to share the project privately, you could attach it to a feedback filed through feedbackassistant.apple.com |
I have adjusted the traceback. Moreover, it happens when compiling a FOSS project, which I have linked in the description. |
@swift-ci create |
Same with Xcode 13 RC. |
Further investigation points to https://github.com/Cornucopia-Swift/CornucopiaUDS/blob/c426c866f771587e2b1bc45332a1ff56ce6c2d94/Sources/CornucopiaUDS/SerialAdapter/GenericSerialAdapter.swift#L117: let sid = self.canAutoFormat ? message.bytes[0] : message.bytes[1] Apparantly referring to `message` from within the closure makes the SIL generator crash. Moving this line outside the closure makes it work. |
Same crash with 5.5.1 |
Same with 5.5.2-dev as per Xcode 13.2 beta 2. |
Likewise with 5.5.2-dev as per Xcode 13.2 RC. |
Seems to have been fixed in the meantime. Tested with 5.8.1:
|
Environment
Xcode 13, 13.1, 13.2b2, macOS 12, all kinds of Mac hardware.
Additional Detail from JIRA
md5: 099d6c28511f05bdd280681cd08f3d29
Issue Description:
While compiling (`swift build`) https://github.com/Cornucopia-Swift/CornucopiaUDS/tree/ios15-weak-dance, I get the following swift compiler crash:
The text was updated successfully, but these errors were encountered: