[SR-9404] KeyPath.appending
crashes when appending to an objc variable
#51870
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
crash
Bug: A crash, i.e., an abnormal termination of software
run-time crash
Bug → crash: Swift code crashed during execution
runtime
The Swift Runtime
standard library
Area: Standard library umbrella
Attachment: Download
Environment
Swift 4.2 or 4.0 in Xcode 10.0.0.10A255
Additional Detail from JIRA
md5: 8bd28f6fa907ba484f6bdae411fe2915
Issue Description:
The code snippet below crashes if you run it a few times on the iPhone XS simulator. I've also attached a sample project demonstrating the issue.
Changing the name of the var with the ``s in it can cause the crash to occur more or less often. I'm not actually sure if the `` is directly responsible, but since it seems to have a special significance in name mangling, I assume that the objc selector is name-mangled, and the code for `appending` seems to be doing some kind of manipulation of the selector name I'm guessing it's related.
The crash is usually similar to what's reproduced below:
The text was updated successfully, but these errors were encountered: