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-6794] Segmentation fault invoking super.init() inside autoreleasepool{} after initializing property #49343
Comments
Still happens on master:
@swift-ci create |
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
Attachment: Download
Environment
I'm using the release version of Xcode 9.2 (9C40b) with accompanying Swift toolchain:
Apple Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2)
Target: x86_64-apple-macosx10.9
Additional Detail from JIRA
md5: d49805e9bb6222bc800c7286f2f55aab
Issue Description:
In the process of transliterating some ObjC into Swift, I misplaced the close curly brace of an
autoreleasepool
block inside aninit()
override, accidentally including the call tosuper.init()
. The autorelease pool also included the initialization of some properties of the object, an NSObject subclass.Rather than throw an appropriate error, the Swift compiler encountered a segmentation fault upon trying to compile this code. I've attached a small sample that reproduces the error, along with a log of the error message itself.
The text was updated successfully, but these errors were encountered: