New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SR-8939] "this should not happen" panic when putting unicode in a Map #51444
Comments
CC @milseman |
@swift-ci create |
CC Lance (JIRA User) |
Comment by Daniel Alm (JIRA) I am seeing the same behavior with another string occurring in real life (it was part of an email subject). I would paste that string here, but I am afraid it actually causes Jira to throw an exception. My app's users are affected by this crash. Lance (JIRA User), do you happen to know when a fix could become available? |
This was fixed on master and 5.0 a couple weeks back. Lance (JIRA User) can you link the PR? |
Comment by Kirk Beitz (JIRA) any chance the bug is something that could be fixed in a point release to go into an upcoming Xcode? or is that not a possibility? |
Comment by Lance Parker (JIRA) Here's the PR against master: #20585 This will be fixed in 5.0 which releases in the spring. I'm not sure if there's a way to get the fix into an earlier release but I can look into it. |
Comment by Daniel Alm (JIRA) Lance (JIRA User) thanks for the info. It would be appreciated if you could check if this could go into a possible Swift 4.2.2 in a possible Xcode 10.2 or 10.1.1. Alternatively, would it at least be possible to backport this to the Swift 4.2 branch, so that we can use the nightly Swift 4.2 branch builds to create a fixed binary for the affected users? |
Comment by Lance Parker (JIRA) Unfortunately we aren't putting any fixes into the 4.2 branch anymore (and it wouldn't help for App Store apps anyway since you can't ship to there from a toolchain). The fix is in the latest 5.0 toolchain and you can try that out if you'd like. |
Environment
Behaviour seen in:
Version 10.1 beta (10O23u)
IOS simulator test runner
swift playgrounds
Version 10.0 (10A255)
Swift 4
Additional Detail from JIRA
md5: 7876f9cdec20fa38565934d4afecb1fd
is blocked by:
String
can crash Swift application byfatalError
relates to:
String
can crash Swift application byfatalError
Issue Description:
The following code:
Typically fails after ~3000 - 10000 iterations, with the error:
While it may be possible that some invalid strings are being generated, it's surprising that the quoted error is raised, and raised on the indicated line.
The text was updated successfully, but these errors were encountered: