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-6006] Compiler abort trap #48563

Closed
swift-ci opened this issue Sep 27, 2017 · 3 comments
Closed

[SR-6006] Compiler abort trap #48563

swift-ci opened this issue Sep 27, 2017 · 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

Comments

@swift-ci
Copy link
Collaborator

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

swift toolchain september 26, 2017

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

md5: 201beb2c98f85b0569d6ea5dc5e4f24b

duplicates:

  • SR-6000 Let protocols inherit from class types

Issue Description:

As mentioned in https://bugs.swift.org/browse/SR-6002 Swift trunk development toolchain for September 26, 2017 fails to compile a working project.

The project is https://github.com/guidomb/Portal. To lock down a discussion on a working version of Portal I would suggest using this https://github.com/guidomb/Portal/tree/10af72b428b8122b93435ea08750a6de2f365c84 commit which is known to compile with Xcode 9 stable Swift toolchain.

While I was trying to compile Portal using Swift trunk development toolchain for September 26, 2017 I got a compiler abort trap while trying to compile file

https://github.com/guidomb/Portal/blob/10af72b428b8122b93435ea08750a6de2f365c84/Portal/View/UIKit/Renderers/MessageProducer.swift

The reported error

Assertion failed: (witnessSelfProtocol == getProtocol() && "Default witnesses must have an abstract Self parameter " "constrained to their protocol."), function verify, file /Users/buildnode/jenkins/workspace/oss-swift-package-osx/swift/lib/SIL/SILVerifier.cpp, line 4484.
0  swift                    0x00000001114d3d18 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  swift                    0x00000001114d2c66 llvm::sys::RunSignalHandlers() + 86
2  swift                    0x00000001114d42de SignalHandler(int) + 366
3  libsystem_platform.dylib 0x00007fffdca56b3a _sigtramp + 26
4  libsystem_platform.dylib 000000000000000000 _sigtramp + 593138912
5  libsystem_c.dylib        0x00007fffdc8db420 abort + 129
6  libsystem_c.dylib        0x00007fffdc8a2893 basename_r + 0
7  swift                    0x000000010ecdcc19 swift::SILDefaultWitnessTable::verify(swift::SILModule const&) const + 201
8  swift                    0x000000010ecdd45d swift::SILModule::verify() const + 1613
9  swift                    0x000000010e7630e1 swift::Lowering::SILGenModule::~SILGenModule() + 33
10 swift                    0x000000010e76d8a8 swift::SILModule::constructSIL(swift::ModuleDecl*, swift::SILOptions&, swift::FileUnit*, llvm::Optional<unsigned int>, bool) + 2104
11 swift                    0x000000010e76da14 swift::performSILGeneration(swift::FileUnit&, swift::SILOptions&, llvm::Optional<unsigned int>) + 100
12 swift                    0x000000010e0e2fa6 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 9862
13 swift                    0x000000010e0dfa18 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3560
14 swift                    0x000000010e0a0910 main + 3360
15 libdyld.dylib            0x00007fffdc847235 start + 1
16 libdyld.dylib            0x0000000000000093 start + 595299935

//cc @slavapestov paiv (JIRA User)

@slavapestov
Copy link
Member

This isn't supported yet: "protocol MessageProducer where Self : UIControl"

I should fix it soon...

@belkadan
Copy link
Contributor

What is it doing in Xcode 9 that we're going to be forced to emulate? :-(

@slavapestov
Copy link
Member

It respects the superclass constraint in some cases and doesn't in others I imagine. I'm not going to emulate it since it's not a useful behavior.

@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