[SR-10587] Release mode optimization causes crash #52987
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
optimized only
Flag: An issue whose reproduction requires optimized compilation
run-time crash
Bug → crash: Swift code crashed during execution
Attachment: Download
Environment
Xcode 10.2.1
swift 5
Additional Detail from JIRA
md5: a13145c72556b1a498a55d23d6badc74
Issue Description:
Recently when running a TestFlight build of an app I found that it was crashing in one place. When I went to debug I was unable to replicate. I flipped the configuration to a release configuration and then was able to replicate. Oddly, the code broke on one function but the call stack suggested a much deeper stack which eventually ended in a swift release call. After DAYS of trial and error I finally nailed the code down to one specific area. Then I tried a few different ways of phrasing the code and found a way where it would crash and a way where it would not.
Steps to Reproduce:
Expected Results:
That the optimization levels changing does not cause a crash.
Actual Results:
The optimization levels (not sure which) causes a crash
Version/Build:
Xcode 10.2.1
FILED as radar 50339329
The text was updated successfully, but these errors were encountered: