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-4211] Extension That Refers Extended Class Within Itself Causes a Segmentation Fault: 11 #46794
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
serialization
Area → compiler: Serialization & deserialization
Comments
With asserts, during the merge-module phase of building:
Obviously this is way more work than Swift should be doing—a known issue—but sometimes it comes back to bite us. Trying to load Every Dealloc Ever is at least one of the problem points here. I have a Radar for this issue, which I'll find later. |
This has since been fixed. |
I'm adding a regression test. |
AnthonyLatsis
added
the
crash
Bug: A crash, i.e., an abnormal termination of software
label
Dec 12, 2022
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
serialization
Area → compiler: Serialization & deserialization
Environment
Version 8.2.1 (8C1002)
Additional Detail from JIRA
md5: ccaa656ef63b4551aabc5b9959952074
Issue Description:
Summary: When you create an extension for a class, and inside your extension you refer to the class you just extended, the compiler will crash with a segfault 11 error.
Description: I was thinking of possible ways to group a set of notifications that a module of my code can post, and I came up with something like this:
To recreate, put this code at the top level of any Swift file and the compiler will segfault: 11 when you attempt to compile it.
For some reason, it doesn't seem to crash playgrounds.
The text was updated successfully, but these errors were encountered: