Open swift-ci opened 5 years ago
Thank you for the thorough report!
Comment by Johannes Plunien (JIRA)
@belkadan do you maybe have some tip for us how to work around this issue until the next Xcode/Swift version is released?
Comment by Johannes Plunien (JIRA)
It seems that switching to SWIFT_COMPILATION_MODE=wholemodule
works around the issue. I have not verified this in the given example project, but in our "real" project.
Sorry, I don't know what's going on yet either.
Environment
- Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5), Target: x86_64-apple-darwin18.5.0 - MacBook Pro (15-inch, 2017) - Xcode 10.2.1, Build version 10E1001 - iPhone X Simulator, 11.4 - macOS Mojave, 10.14.4 (18E226)Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, RunTimeCrash | |Assignee | None | |Priority | Medium | md5: 1e61a629e5650d8fc01ee777878a07d5Issue Description:
Description
The example project demonstrates some crash. Reason for the crash is unknown, could be a project misconfiguration, or a bug in the compiler.
The full example project can be found here: https://github.com/plu/SR-10622
Notes
What are these UnrelatedClass....swift?
They are the result of trying to reduce to a minimal amount of code. At first it was possible to delete whole files from the project while still being able to reproduce the crash. Only later on a simple removal of some unrelated file resulted in the crash to disappear suddenly.
Why does removing some of these UnrelatedClass....swift fix the crash?
No idea. But it's simple to "reproduce", just remove a few and execute
./test.sh
.There's other unrelated changes that magically fixes the issue, for example:
How to reproduce
Crash