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-13203] "Abort trap 6" with nested Coordinators #55643

Closed
swift-ci opened this issue Jul 11, 2020 · 3 comments
Closed

[SR-13203] "Abort trap 6" with nested Coordinators #55643

swift-ci opened this issue Jul 11, 2020 · 3 comments
Assignees
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 opaque types Feature → types: opaque types

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-13203
Radar None
Original Reporter Jessy (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

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

md5: 4b2f58b46255589020d15c0f36ce3411

Issue Description:

I'm getting an "Abort trap 6". I don't know how much of it is related specifically to the nested Coordinator aspect.

@theblixguy
Copy link
Collaborator

Here's a much smaller reproducer:

protocol MyProtocol {}

func crash() -> some MyProtocol {
  class MyClass: MyProtocol {}
  return MyClass()
}

One workaround is to move your Coordinator class outside and rename it to something else. This will prevent the crash for now.

@theblixguy
Copy link
Collaborator

I have a potential fix here: #33035

@theblixguy
Copy link
Collaborator

Jessy (JIRA User) This is now fixed on master. Please verify using the next available trunk snapshot from swift.org and close the ticket. Thank you!

@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 opaque types Feature → types: opaque types
Projects
None yet
Development

No branches or pull requests

3 participants