[SR-4569] Crash due to memory issue while using whole optimization #47146
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
optimized only
Flag: An issue whose reproduction requires optimized compilation
Attachment: Download
Environment
macOS Sierra 10.12.4 (16E195)
Xcode 8.3.1 (8E1000a)
Apple Swift version 3.1 (swiftlang-802.0.51 clang-802.0.41)
Target: x86_64-apple-macosx10.9
Additional Detail from JIRA
md5: 5202cc4dbccde864c68b51815f79a77e
duplicates:
Issue Description:
Problem:
Application crashed in randomly placed due to using flatMap with structs and using whole optimization:
Address Sanitizer shows double free problem on second iteration at this line:
Test project to repeat issue is attached
Workaround:
Turn off whole optimization.
The text was updated successfully, but these errors were encountered: