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-8531] Kickstarter-Prelude in the source compat suite doesn't build in Debug #51050

Closed
belkadan opened this issue Aug 13, 2018 · 2 comments
Closed
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 regression source compatibility swift 5.0

Comments

@belkadan
Copy link
Contributor

Previous ID SR-8531
Radar None
Original Reporter @belkadan
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, 5.0Regression, CompilerCrash, SourceCompatibility
Assignee None
Priority Medium

md5: b18dab84976def04eec09137564a4061

Issue Description:

./runner.py --swift-branch master --projects projects.json --include-actions 'action.startswith("Build")' --include-repos 'path == "Kickstarter-Prelude"' --verbose --build-config debug --swiftc path/to/swiftc

Assertion failed: (lazyResolver && "Cannot do conforms-to-protocol check without a type checker"), function walkToTypePre, file /Volumes/Data/swift-public/swift/lib/Sema/TypeCheckProtocol.cpp, line 3999.
Stack dump:
0.  Program arguments: [snip] 
1.  While generating protocol witness thunk SIL function "@$SSo8UIButtonC13Prelude_UIKit0A8ProtocolA2cDP18setBackgroundColor_8forStateySo7UIColorC_So09UIControlI0VtFTW".
 for 'setBackgroundColor(_:forState:)' at /Volumes/Data/swift-source-compat-suite/project_cache/Kickstarter-Prelude/Prelude-UIKit/UIButton.swift:10:10
2.  While evaluating request IsDynamicRequest(Prelude_UIKit.(file).UIButton extension.setBackgroundColor(_:forState:)@/Volumes/Data/swift-source-compat-suite/project_cache/Kickstarter-Prelude/Prelude-UIKit/UIButton.swift:10:15)
3.  While evaluating request IsObjCRequest(Prelude_UIKit.(file).UIButton extension.setBackgroundColor(_:forState:)@/Volumes/Data/swift-source-compat-suite/project_cache/Kickstarter-Prelude/Prelude-UIKit/UIButton.swift:10:15)
0  swift                    0x000000010ad627a8 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  swift                    0x000000010ad61a35 llvm::sys::RunSignalHandlers() + 85
2  swift                    0x000000010ad62db2 SignalHandler(int) + 258
3  libsystem_platform.dylib 0x00007fff67fbbc4d _sigtramp + 29
4  libsystem_platform.dylib 0x0000000000003c70 _sigtramp + 2550431808
5  libsystem_c.dylib        0x00007fff67e7a301 abort + 127
6  libsystem_c.dylib        0x00007fff67e42946 __assert_rtn + 320
7  swift                    0x000000010824c417 swift::useObjectiveCBridgeableConformances(swift::DeclContext*, swift::Type)::Walker::walkToTypePre(swift::Type) + 375
8  swift                    0x00000001085f1369 (anonymous namespace)::Traversal::visitAnyFunctionType(swift::AnyFunctionType*) + 89
9  swift                    0x00000001085f13d4 (anonymous namespace)::Traversal::visitAnyFunctionType(swift::AnyFunctionType*) + 196
10 swift                    0x00000001085f08e8 swift::Type::walk(swift::TypeWalker&) const + 56
11 swift                    0x00000001082469d8 swift::useObjectiveCBridgeableConformances(swift::DeclContext*, swift::Type) + 88
12 swift                    0x000000010821591b swift::IsObjCRequest::evaluate(swift::Evaluator&, swift::ValueDecl*) const + 1755
13 swift                    0x000000010852a32e swift::IsObjCRequest::OutputType swift::Evaluator::getResultUncached<swift::IsObjCRequest>(swift::IsObjCRequest const&) + 526
14 swift                    0x0000000108515030 swift::IsObjCRequest::OutputType swift::Evaluator::operator()<swift::IsObjCRequest>(swift::IsObjCRequest const&) + 160
15 swift                    0x0000000108513a0f swift::ValueDecl::isObjC() const + 63
16 swift                    0x00000001081f9793 swift::IsDynamicRequest::evaluate(swift::Evaluator&, swift::ValueDecl*) const + 275
17 swift                    0x000000010852a8de swift::IsDynamicRequest::OutputType swift::Evaluator::getResultUncached<swift::IsDynamicRequest>(swift::IsDynamicRequest const&) + 526
18 swift                    0x0000000108515290 swift::IsDynamicRequest::OutputType swift::Evaluator::operator()<swift::IsDynamicRequest>(swift::IsDynamicRequest const&) + 160
19 swift                    0x00000001085151bf swift::ValueDecl::isDynamic() const + 63
20 swift                    0x0000000107b165b2 swift::Lowering::SILGenFunction::emitProtocolWitness(swift::Lowering::AbstractionPattern, swift::CanTypeWrapper<swift::AnyFunctionType>, swift::SILDeclRef, swift::SILDeclRef, swift::SubstitutionMap, swift::Lowering::IsFreeFunctionWitness_t) + 274
21 swift                    0x0000000107b2c10c swift::Lowering::SILGenModule::emitProtocolWitness(swift::ProtocolConformanceRef, swift::SILLinkage, swift::IsSerialized_t, swift::SILDeclRef, swift::SILDeclRef, swift::Lowering::IsFreeFunctionWitness_t, swift::Witness) + 2268
22 swift                    0x0000000107b2e116 (anonymous namespace)::SILGenWitnessTable<(anonymous namespace)::SILGenConformance>::addMethodImplementation(swift::SILDeclRef, swift::SILDeclRef, swift::Witness) + 278
23 swift                    0x0000000107b2df42 (anonymous namespace)::SILGenWitnessTable<(anonymous namespace)::SILGenConformance>::addMethod(swift::SILDeclRef) + 386
24 swift                    0x0000000107b2d8c9 swift::SILWitnessVisitor<(anonymous namespace)::SILGenConformance>::visitProtocolDecl(swift::ProtocolDecl*) + 1161
25 swift                    0x0000000107b2b34b swift::Lowering::SILGenModule::getWitnessTable(swift::ProtocolConformance*) + 347
26 swift                    0x0000000107b2d3b5 SILGenExtension::emitExtension(swift::ExtensionDecl*) + 181
27 swift                    0x0000000107b2d2f5 swift::Lowering::SILGenModule::visitExtensionDecl(swift::ExtensionDecl*) + 21
28 swift                    0x0000000107a54c3b swift::Lowering::SILGenModule::emitSourceFile(swift::SourceFile*, unsigned int) + 779
29 swift                    0x0000000107a5584e swift::SILModule::constructSIL(swift::ModuleDecl*, swift::SILOptions&, swift::FileUnit*, llvm::Optional<unsigned int>, bool) + 350
30 swift                    0x0000000107a55e32 swift::performSILGeneration(swift::FileUnit&, swift::SILOptions&, llvm::Optional<unsigned int>) + 50
31 swift                    0x00000001072d91fd performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 8765
32 swift                    0x00000001072d5f74 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2932
33 swift                    0x000000010728ac3d main + 685
34 libdyld.dylib            0x00007fff67dbcc8d start + 1
@belkadan
Copy link
Contributor Author

cc @DougGregor

@DougGregor
Copy link
Member

#18817

@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 regression source compatibility swift 5.0
Projects
None yet
Development

No branches or pull requests

3 participants