Last active
April 4, 2019 13:14
-
-
Save calebkleveter/e6a7f3943b50e022ecd2beefbed44a6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stack dump: | |
0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -interpret run.swift -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -color-diagnostics -module-name run | |
1. While type-checking 'init(_:)' (at run.swift:2:12) | |
2. While type-checking statement at [run.swift:2:36 - line:5:5] RangeText="{ | |
let components: [Substring] = string.split(separator: ".") | |
guard let major: Int = components.first.flatMap(Int.init) else { return nil } | |
" | |
3. While type-checking statement at [run.swift:4:9 - line:4:85] RangeText="guard let major: Int = components.first.flatMap(Int.init) else { return nil " | |
4. While type-checking expression at [run.swift:4:32 - line:4:65] RangeText="components.first.flatMap(Int.init" | |
0 swift 0x00000001131c2ee3 PrintStackTraceSignalHandler(void*) + 51 | |
1 swift 0x00000001131c26bc SignalHandler(int) + 348 | |
2 libsystem_platform.dylib 0x00007fff59a08b5d _sigtramp + 29 | |
3 libsystem_platform.dylib 0x00007ffee0c6b2d0 _sigtramp + 2267424656 | |
4 swift 0x00000001101b9f36 swift::constraints::RequirementFailure::getRequirementDC() const + 22 | |
5 swift 0x00000001101b94c5 swift::constraints::RequirementFailure::diagnoseAsError() + 69 | |
6 swift 0x00000001101b5804 swift::constraints::MissingConformance::diagnose(swift::Expr*, bool) const + 500 | |
7 swift 0x00000001100e7344 swift::Expr* llvm::function_ref<swift::Expr* (swift::Expr*)>::callback_fn<swift::constraints::ConstraintSystem::applySolutionFixes(swift::Expr*, swift::constraints::Solution const&)::$_11>(long, swift::Expr*) + 228 | |
8 swift 0x000000011061c77e swift::Expr::forEachChildExpr(llvm::function_ref<swift::Expr* (swift::Expr*)>)::ChildWalker::walkToExprPre(swift::Expr*) + 14 | |
9 swift 0x00000001105c8bed swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) + 205 | |
10 swift 0x00000001105cca23 (anonymous namespace)::Traversal::visitApplyExpr(swift::ApplyExpr*) + 211 | |
11 swift 0x000000011027eaec swift::TypeChecker::typeCheckExpressionImpl(swift::Expr*&, swift::DeclContext*, swift::TypeLoc, swift::ContextualTypePurpose, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>, swift::ExprTypeCheckListener&, swift::constraints::ConstraintSystem*) + 2716 | |
12 swift 0x00000001102821de swift::TypeChecker::typeCheckBinding(swift::Pattern*&, swift::Expr*&, swift::DeclContext*, bool) + 350 | |
13 swift 0x0000000110284533 swift::TypeChecker::typeCheckStmtCondition(llvm::MutableArrayRef<swift::StmtConditionElement>&, swift::DeclContext*, swift::Diag<>) + 339 | |
14 swift 0x000000011031b826 swift::ASTVisitor<(anonymous namespace)::StmtChecker, void, swift::Stmt*, void, void, void, void>::visit(swift::Stmt*) + 710 | |
15 swift 0x0000000110321621 bool (anonymous namespace)::StmtChecker::typeCheckStmt<swift::Stmt>(swift::Stmt*&) + 129 | |
16 swift 0x0000000110320ddc swift::ASTVisitor<(anonymous namespace)::StmtChecker, void, swift::Stmt*, void, void, void, void>::visit(swift::Stmt*) + 22652 | |
17 swift 0x000000011031b501 bool (anonymous namespace)::StmtChecker::typeCheckStmt<swift::BraceStmt>(swift::BraceStmt*&) + 129 | |
18 swift 0x000000011031a8ff swift::TypeChecker::typeCheckAbstractFunctionBodyUntil(swift::AbstractFunctionDecl*, swift::SourceLoc) + 1727 | |
19 swift 0x000000011032276e swift::TypeChecker::typeCheckAbstractFunctionBody(swift::AbstractFunctionDecl*) + 558 | |
20 swift 0x000000011033ec5e swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, swift::OptionSet<swift::TypeCheckingFlags, unsigned int>, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) + 1678 | |
21 swift 0x000000010fb1d036 swift::CompilerInstance::performSemaUpTo(swift::SourceFile::ASTStage_t) + 4614 | |
22 swift 0x000000010f01b2f6 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 838 | |
23 swift 0x000000010f0176de swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 6862 | |
24 swift 0x000000010efb57be main + 1246 | |
25 libdyld.dylib 0x00007fff598233d5 start + 1 | |
[1] 14713 segmentation fault swift run.swift |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment