Skip to content

[SR-6226] source-compat-suite failure: AsyncNinja Assertion failed: (t->is<ArchetypeType>() || t->isExistentialType() && "expected a class, archetype or existential") #48778

Closed
@aschwaighofer

Description

@aschwaighofer
Previous ID SR-6226
Radar rdar://problem/35197938
Original Reporter @aschwaighofer
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash
Assignee None
Priority Medium

md5: 1b5a7d34baa8cfaba09cbd0b63086610

is duplicated by:

  • SR-6333 AsyncNinja source breakage: Assertion failed: (t->is() || t->isExistentialType() && "expected a class, archetype or existential"), function getSuperclassForDecl, file swift/lib/AST/Type.cpp, line 3341.

Issue Description:

$ swift-LOCAL-2017-10-25-a.xctoolchain.base2/usr/bin/swiftc -v
Apple Swift version 4.1-dev (LLVM a2bdb45198, Clang bb20a94e86, Swift ec19cad)
Target: x86_64-apple-darwin17.2.0

(swift/utils/build-toolchain swift build)

source-compat-suite: 112421c (HEAD -> master, origin/master, origin/HEAD) Merge pull request #96 from graydon/misc-run_cperf-fixes

./runner.py --swift-branch master --projects projects.json --swift-version 3 --include-actions 'action.startswith("Build")' --swiftc .../usr
/bin/swiftc

I think we don't see the failure on the bot because the bot builds without assertions.

Assertion failed: (t->is<ArchetypeType>() || t->isExistentialType() && "expected a class, archetype or existential"), function getSuperclassForDecl, file /Volumes/Transcend/CompilerGithub9/swift/lib/AST/Type.cpp, line 3245.
0 swift 0x0000000109ab49d8 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1 swift 0x0000000109ab3926 llvm::sys::RunSignalHandlers() + 86
2 swift 0x0000000109ab4f9e SignalHandler(int) + 366
3 libsystem_platform.dylib 0x00007fff79dd5f5a _sigtramp + 26
4 libsystem_platform.dylib 0x00007ffcf5c74800 _sigtramp + 2078927040
5 libsystem_c.dylib 0x00007fff79c0130a abort + 127
6 libsystem_c.dylib 0x00007fff79bc9360 basename_r + 0
7 swift 0x00000001077962e4 swift::TypeBase::getSuperclassForDecl(swift::ClassDecl const*) + 308
8 swift 0x000000010779640f swift::TypeBase::getContextSubstitutions(swift::DeclContext const*, swift::GenericEnvironment*) + 255
9 swift 0x0000000107791c13 swift::TypeBase::getContextSubstitutionMap(swift::ModuleDecl*, swift::DeclContext const*, swift::GenericEnvironment*) + 67
10 swift 0x0000000106e9d554 swift::devirtualizeClassMethod(swift::FullApplySite, swift::SILValue) + 580
11 swift 0x0000000106e9f886 swift::tryDevirtualizeApply(swift::ApplySite, swift::ClassHierarchyAnalysis*) + 758
12 swift 0x0000000106f9b5f4 runOnFunctionRecursively(swift::SILFunction*, swift::FullApplySite, swift::SILOptions::LinkingMode, llvm::DenseSet<swift::SILFunction*, llvm::DenseMapInfo<swift::SILFunction*> >&, llvm::ImmutableSet<swift::SILFunction*, llvm::ImutContainerInfo<swift::SILFunction*> >::Factory&, llvm::ImmutableSet<swift::SILFunction*, llvm::ImutContainerInfo<swift::SILFunction*> >, swift::ClassHierarchyAnalysis*) + 756
13 swift 0x0000000106f9b047 (anonymous namespace)::MandatoryInlining::run() + 423
14 swift 0x0000000106f1ea1b swift::SILPassManager::runModulePass(swift::SILModuleTransform*) + 1355
15 swift 0x0000000106f1f5a3 swift::SILPassManager::runOneIteration() + 1043
16 swift 0x00000001067de40b swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) + 187
17 swift 0x0000000106f27a36 swift::runSILDiagnosticPasses(swift::SILModule&) + 166
18 swift 0x000000010669b841 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 10193
19 swift 0x0000000106698143 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3315
20 swift 0x0000000106658e30 main + 3360
21 libdyld.dylib 0x00007fff79b55145 start + 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of software

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions