[SR-6003] EXC_BAD_ACCESS (code=EXC_I386_GPFLT) when accessing dictionary keys #48560
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Environment
Had this on the latest Xcode 8, now catching this on Xcode 9.0 (9A235). Both swift 3 and swift 4.
Additional Detail from JIRA
md5: e30e1458ce0718cb97075850ff042262
is duplicated by:
Issue Description:
Having some concurrent code in my project and noticed that sometimes printing a dictionary keys may lead to crash. Tried to reproduce this bug and came to this code snippet:
When running this on iPhone 6s+ simulator, this code will crash in 100 cases out of 100.
If I change the code to
then no crash is occured.
The text was updated successfully, but these errors were encountered: