[SR-7561] Release Scheme : Swift dealloc Bug : EXC_BAD_ACCESS : EXC_I386_INVOP #50103
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
swift 4.1 / Xcode 9.3 / iOS 11.3 / any iDevice
Compiled a nMP
Additional Detail from JIRA
md5: fe8e820e91dd27418a99c6ac1f6ac393
Issue Description:
+++) The following code Crashes with a RELEASE scheme, but is OK on a DEBUG scheme.
+) To reproduce : Run in Xcode Simulator -> Click three times on the RED Box and it crashes.
+) Any of the following three changes to RELEASE scheme seem to fix this crash (and also fix much larger projects that crash with the same fault)
1) Change 'Enable Testability' -> Yes
2) Change 'Compilation Mode' -> Single File
3) Change 'Swift Compiler - Code Generation : Optimization Level' -> Either No optimization or Optimize for Size.
The text was updated successfully, but these errors were encountered: