Skip to content
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-9504] Segfault when referencing self in init() #51958

Closed
swift-ci opened this issue Dec 13, 2018 · 2 comments
Closed

[SR-9504] Segfault when referencing self in init() #51958

swift-ci opened this issue Dec 13, 2018 · 2 comments
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

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-9504
Radar None
Original Reporter sergiocampama (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Environment

Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash
Assignee None
Priority Medium

md5: 7e722d71160f2e3ad76573ad6218efce

duplicates:

  • SR-9451 Compiler crash SILFunctionTransform "DefiniteInitialization"

Issue Description:

class Crash {
{{ var pointer: Crash}}
{{ init() { }}pointer = self {{}}}
{{}}}

When running `swift crash.swift`, the swift compiler will segfault with the following error:

1. While running pass #53 SILFunctionTransform "DefiniteInitialization" on SILFunction "@$S5crash5CrashCACycfc".1. While running pass #53 SILFunctionTransform "DefiniteInitialization" on SILFunction "@$S5crash5CrashCACycfc". for 'init()' at [FILE]

@belkadan
Copy link
Contributor

Wow, crashes on master too. @slavapestov, @gottesmm, we just saw one of these, right?

@slavapestov
Copy link
Member

@belkadan your checkout might be out of date – I just fixed it

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis 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
Projects
None yet
Development

No branches or pull requests

4 participants