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-6541] Swift Compiler Fills Memory Until Computer Crashes #49091
Comments
Most probably related to SR-6540 |
|
Anything that crashes will almost certainly crash the same way when unrelated code is added before it. No need to file a second bug for that. |
@belkadan Yes of course. The behaviour I got was very different though (one segfaulted; the other did not crash but was leaking many GB of memory per seconds), so I thought it might have been interesting to get both. |
Yeah, that makes sense. I think we can still track them together in this case. |
Environment
Xcode 9.2 (9C40b) on macOS Sierra (16G1036)
Additional Detail from JIRA
md5: 075ba9221f5127653f12eb99d046ec85
duplicates:
Issue Description:
Try and compile the following Swift source:
print("Hello, World!")
struct Container {let string = "yes"
}let optionalContainer: Container? = Container()
let optionalString: String? = "toto"
switch optionalString {
case optionalContainer?.string?: ()
default: ()
}
The compiler just fills your memory until the computer crashes.
The text was updated successfully, but these errors were encountered: