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-10191] Trap 6 during compilation instead of compile error #52591

Closed
g-Off opened this issue Mar 27, 2019 · 2 comments
Closed

[SR-10191] Trap 6 during compilation instead of compile error #52591

g-Off opened this issue Mar 27, 2019 · 2 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler itself crash Bug: A crash, i.e., an abnormal termination of software

Comments

@g-Off
Copy link

g-Off commented Mar 27, 2019

Previous ID SR-10191
Radar rdar://49446040
Original Reporter @g-Off
Type Bug
Status Resolved
Resolution Done
Environment

Xcode 10.2 (10E125)
Apple Swift version 5.0 (swiftlang-1001.0.69.5 clang-1001.0.46.3)
Target: x86_64-apple-darwin18.5.0
mac

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

md5: 437e4e3eaad3b8123e8123fcf24ddf5a

relates to:

  • SR-10648 Linker fails to link open method that was previously internal

Issue Description:

The following should produce a compiler error, but instead it produces an "Abort trap: 6" and the initial error starts off with

Global is external, but doesn't have external or weak linkage!
%swift.method_descriptor* @"$s7Shopify4BaseC8function33_72119E9B637C621F6419FCE57445EE94LLyyFTq"
<unknown>:0: error: fatal error encountered during compilation; please file a bug report with your project and the crash log
<unknown>:0: note: Broken module found, compilation aborted!

In File1.swift

class Base {
  fileprivate func function() { }
}

class Sub1: Base {
  override func function() { }
}

File2.swift

final class Sub2: Sub1 {
  override func function() { }
}
@belkadan
Copy link
Contributor

Ooh, fun. @slavapestov, another version of the access control override issue.

@slavapestov
Copy link
Contributor

#25190

@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 itself crash Bug: A crash, i.e., an abnormal termination of software
Projects
None yet
Development

No branches or pull requests

4 participants