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-1455] Xcode 7.3.1 Compiler Crash: While running SILModuleTransform "Function Signature Optimization". #44064
Comments
Speculatively assigning to Michael as performance team ambassador since BobW doesn't seem to have a Jira account yet. |
Comment by Xin Tong (JIRA) Stefan Arentz , can you please give me some instructions on how to reproduce this crash, i.e. where to get the firefox source code ? Thanks. |
trentxintong (JIRA User) The firefox-ios project is on github: https://github.com/mozilla/firefox-ios |
Comment by Xin Tong (JIRA) OK. they are using the 4.x branch. Thanks Joe. |
Comment by Stefan Arentz (JIRA) Build instructions for Firefox for iOS:
At this point you can open Client.xcodeproj and build the FennecAurora or Firefox schemes. Both are optimized production builds. The default Fennec scheme is for a development and non-optimized build. Please note that I can't explain how to get past code signing errors. But you probably can work around that rather easily, being Apple. |
Comment by Stefan Arentz (JIRA) Xin, if you were able to narrow this down to a specific function, would you please let us know? We currently have -whole-module-optimization removed for the target that is causing the crash, but I'd like to narrow it down to just a specific function. |
Comment by Xin Tong (JIRA) Stefan, this problem has been fixed on swift trunk https://github.com/apple/swift. But for now, you can add this option to Swift Compiler - Custom Flags -Xllvm -sil-disable-pass="Speculative Devirtualization" to avoid the problem. This might have some performance degradation, but very likely small. |
Comment by Stefan Arentz (JIRA) Thank you all for the quick response. We currently have optimizations turned off completely but I will follow your advice of just using |
Comment by Stefan Arentz (JIRA) Thank you Xin. The crash does not happen anymore with your suggested compiler flags added. |
Comment by Xin Tong (JIRA) No problem. With upcoming Swift 3 release, you should be able to turn off the flag. |
Attachment: Download
Environment
OS X 10.11.4 / Xcode 7.3.1
Additional Detail from JIRA
md5: 98ddeb9c3528d0024d737022162fc18c
Issue Description:
While compiling the v4.x branch of Firefox for iOS. No problems with Xcode 7.3. Only on optimized builds.
While running SILModuleTransform "Function Signature Optimization".
Full log attached
Please let me know what other info I can provide. Workaround welcome, or hints on how to change code to not trigger this crash.
The text was updated successfully, but these errors were encountered: