Open swift-ci opened 4 years ago
@swift-ci create
jacob.weightman (JIRA User) I cannot reproduce this crash.
Maybe something is wrong with your Xcode installation?
Which macOS version are you running?
Comment by Jacob Weightman (JIRA)
I'm using MacOS Catalina 10.15.2
Edit: for what it's worth, my copy of Xcode is installed through the App store and up to date. I've also confirmed that this is the selected version of Xcode.
Comment by Jacob Weightman (JIRA)
Also, I was not able to reproduce the issue on a Macbook Pro 2019. I encountered this on a Mid 2015 Macbook Pro. @eeckstein do you have ideas about what could be wrong with my Xcode installation?
Can you do one experiment: does the crash reproduce if you compile the test statically?
swift test.swift -o a.out && a.out
Is the new MacBook also on 10.15.2?
Maybe you can try to upgrade the os to 10.15.4
Comment by Jacob Weightman (JIRA)
Unfortunately I cannot update to 10.15.4 just yet—I encountered this bug on my work computer and IT has not allowed updating to 10.15.4 for whatever reason yet. I've also just confirmed that the 2019 MacBook Pro has been updated to 10.15.4.
I've tried the proposed experiment on the 2015 Macbook Pro, with an interesting result. Running with swift
produces the same crash (and no a.out
, of course):
swift crash.swift -o a.out
But running with swiftc
behaves correctly:
swiftc crash.swift -o a.out && a.out
At the time of reporting I knew that this code would successfully compile in an Xcode project and playground, which was why I reported it as a script-only bug.
ok, thanks for the info
We fixed a few bugs in the JIT, which will be included in the upcoming swift 5.3 release.
Most likely this crash will be fixed in 5.3
Comment by Jacob Weightman (JIRA)
I realize this is still running Swift 5.2, but I just wanted to note that the crash still occurs on Xcode 11.5. I will no longer have suitable hardware to reproduce this bug after today.
Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)
Target: x86_64-apple-darwin19.2.0
Environment
Apple Swift version 5.2.2 (swiftlang-1103.0.32.6 clang-1103.0.32.51) Target: x86_64-apple-darwin19.2.0Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 6d752f9950ffd826ebc284733688c3a3Issue Description:
I have the following Swift script:
And when I run this from the command line using
I get the following stack trace: