You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tothambrus11 opened this issue
May 25, 2025
· 1 comment
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.crashBug: A crash, i.e., an abnormal termination of softwareSIL
The 6.1 and 6.1.1 release Swift compiler is failing on MacOS in release build during the SILMem2Reg optimization. On Ubuntu and Windows, everything works fine, and 6.0 also works fine.
The text was updated successfully, but these errors were encountered:
tothambrus11
added
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
crash
Bug: A crash, i.e., an abnormal termination of software
triage needed
This issue needs more specific labels
labels
May 25, 2025
On macOS, I see this assertion failure when running swift test with the 5.10 toolchain, the 6.0.3 toolchain, and the 6.1 toolchain. I do not see it with the latest 6.2 toolchain. You mentioned
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.crashBug: A crash, i.e., an abnormal termination of softwareSIL
Description
The 6.1 and 6.1.1 release Swift compiler is failing on MacOS in release build during the SILMem2Reg optimization. On Ubuntu and Windows, everything works fine, and 6.0 also works fine.
The assertion error originates from
swift/lib/SILOptimizer/Transforms/SILMem2Reg.cpp
Line 2050 in 7567f75
I suspect there was a small change in SILMem2Reg.cpp between the 6.1 and 6.0 release that caused (or revealed) this error.
Reproduction
For reproducing the problem, you can use this repository: https://github.com/tothambrus11/Archivist/tree/swift-compiler-crash
Run on macos using swift 6.1.
Stack dump
Expected behavior
No crash
Environment
MacOS, Swift 6.1, Swift 6.1.1
Additional information
No response
The text was updated successfully, but these errors were encountered: