Skip to content

[swiftc (48 vs. 5396)] Add crasher: UNREACHABLE executed at swift/lib/AST/Type.cpp:1337 #6647

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

Merged
merged 1 commit into from
Jan 7, 2017
Merged

[swiftc (48 vs. 5396)] Add crasher: UNREACHABLE executed at swift/lib/AST/Type.cpp:1337 #6647

merged 1 commit into from
Jan 7, 2017

Conversation

practicalswift
Copy link
Contributor

Add test case for crash triggered in ?.

Current number of unresolved compiler crashers: 48 (5396 resolved)

Stack trace:

0 0x000000000351c4f8 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/path/to/swift/bin/swift+0x351c4f8)
1 0x000000000351cc36 SignalHandler(int) (/path/to/swift/bin/swift+0x351cc36)
2 0x00007f0e38fec3e0 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x113e0)
3 0x00007f0e37952428 gsignal /build/glibc-Qz8a69/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54:0
4 0x00007f0e3795402a abort /build/glibc-Qz8a69/glibc-2.23/stdlib/abort.c:91:0
5 0x00000000034b82cd llvm::llvm_unreachable_internal(char const*, char const*, unsigned int) (/path/to/swift/bin/swift+0x34b82cd)
6 0x0000000000e931ed (/path/to/swift/bin/swift+0xe931ed)
7 0x0000000000cf6552 std::_Function_handler<void (swift::Type), (anonymous namespace)::FindCapturedVars::checkType(swift::Type, swift::SourceLoc)::{lambda(swift::Type)#1}>::_M_invoke(std::_Any_data const&, swift::Type&&) (/path/to/swift/bin/swift+0xcf6552)
8 0x0000000000cf65f4 (anonymous namespace)::FindCapturedVars::checkType(swift::Type, swift::SourceLoc)::TypeCaptureWalker::walkToTypePre(swift::Type) (/path/to/swift/bin/swift+0xcf65f4)
9 0x0000000000ea18e5 swift::Type::walk(swift::TypeWalker&) const (/path/to/swift/bin/swift+0xea18e5)
10 0x0000000000cf3090 (anonymous namespace)::FindCapturedVars::checkType(swift::Type, swift::SourceLoc) (/path/to/swift/bin/swift+0xcf3090)
11 0x0000000000cf343a (anonymous namespace)::FindCapturedVars::walkToExprPre(swift::Expr*) (/path/to/swift/bin/swift+0xcf343a)
12 0x0000000000e1533f swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) (/path/to/swift/bin/swift+0xe1533f)
13 0x0000000000e13952 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) (/path/to/swift/bin/swift+0xe13952)
14 0x0000000000e1596e (anonymous namespace)::Traversal::visitApplyExpr(swift::ApplyExpr*) (/path/to/swift/bin/swift+0xe1596e)
15 0x0000000000e13952 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) (/path/to/swift/bin/swift+0xe13952)
16 0x0000000000e1596e (anonymous namespace)::Traversal::visitApplyExpr(swift::ApplyExpr*) (/path/to/swift/bin/swift+0xe1596e)
17 0x0000000000e1596e (anonymous namespace)::Traversal::visitApplyExpr(swift::ApplyExpr*) (/path/to/swift/bin/swift+0xe1596e)
18 0x0000000000e15c84 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) (/path/to/swift/bin/swift+0xe15c84)
19 0x0000000000e126fe swift::Stmt::walk(swift::ASTWalker&) (/path/to/swift/bin/swift+0xe126fe)
20 0x0000000000cf21b0 swift::TypeChecker::computeCaptures(swift::AnyFunctionRef) (/path/to/swift/bin/swift+0xcf21b0)
21 0x0000000000c242eb typeCheckFunctionsAndExternalDecls(swift::TypeChecker&) (/path/to/swift/bin/swift+0xc242eb)
22 0x0000000000c24a6b swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, swift::OptionSet<swift::TypeCheckingFlags, unsigned int>, unsigned int, unsigned int) (/path/to/swift/bin/swift+0xc24a6b)
23 0x0000000000999116 swift::CompilerInstance::performSema() (/path/to/swift/bin/swift+0x999116)
24 0x000000000047ca6a swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) (/path/to/swift/bin/swift+0x47ca6a)
25 0x000000000043b2a7 main (/path/to/swift/bin/swift+0x43b2a7)
26 0x00007f0e3793d830 __libc_start_main /build/glibc-Qz8a69/glibc-2.23/csu/../csu/libc-start.c:325:0
27 0x00000000004386e9 _start (/path/to/swift/bin/swift+0x4386e9)

…/AST/Type.cpp:1337

Add test case for crash triggered in `?`.

Current number of unresolved compiler crashers: 48 (5396 resolved)

Stack trace:

```
0 0x000000000351c4f8 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/path/to/swift/bin/swift+0x351c4f8)
1 0x000000000351cc36 SignalHandler(int) (/path/to/swift/bin/swift+0x351cc36)
2 0x00007f0e38fec3e0 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x113e0)
3 0x00007f0e37952428 gsignal /build/glibc-Qz8a69/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54:0
4 0x00007f0e3795402a abort /build/glibc-Qz8a69/glibc-2.23/stdlib/abort.c:91:0
5 0x00000000034b82cd llvm::llvm_unreachable_internal(char const*, char const*, unsigned int) (/path/to/swift/bin/swift+0x34b82cd)
6 0x0000000000e931ed (/path/to/swift/bin/swift+0xe931ed)
7 0x0000000000cf6552 std::_Function_handler<void (swift::Type), (anonymous namespace)::FindCapturedVars::checkType(swift::Type, swift::SourceLoc)::{lambda(swift::Type)#1}>::_M_invoke(std::_Any_data const&, swift::Type&&) (/path/to/swift/bin/swift+0xcf6552)
8 0x0000000000cf65f4 (anonymous namespace)::FindCapturedVars::checkType(swift::Type, swift::SourceLoc)::TypeCaptureWalker::walkToTypePre(swift::Type) (/path/to/swift/bin/swift+0xcf65f4)
9 0x0000000000ea18e5 swift::Type::walk(swift::TypeWalker&) const (/path/to/swift/bin/swift+0xea18e5)
10 0x0000000000cf3090 (anonymous namespace)::FindCapturedVars::checkType(swift::Type, swift::SourceLoc) (/path/to/swift/bin/swift+0xcf3090)
11 0x0000000000cf343a (anonymous namespace)::FindCapturedVars::walkToExprPre(swift::Expr*) (/path/to/swift/bin/swift+0xcf343a)
12 0x0000000000e1533f swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) (/path/to/swift/bin/swift+0xe1533f)
13 0x0000000000e13952 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) (/path/to/swift/bin/swift+0xe13952)
14 0x0000000000e1596e (anonymous namespace)::Traversal::visitApplyExpr(swift::ApplyExpr*) (/path/to/swift/bin/swift+0xe1596e)
15 0x0000000000e13952 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Expr*) (/path/to/swift/bin/swift+0xe13952)
16 0x0000000000e1596e (anonymous namespace)::Traversal::visitApplyExpr(swift::ApplyExpr*) (/path/to/swift/bin/swift+0xe1596e)
17 0x0000000000e1596e (anonymous namespace)::Traversal::visitApplyExpr(swift::ApplyExpr*) (/path/to/swift/bin/swift+0xe1596e)
18 0x0000000000e15c84 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) (/path/to/swift/bin/swift+0xe15c84)
19 0x0000000000e126fe swift::Stmt::walk(swift::ASTWalker&) (/path/to/swift/bin/swift+0xe126fe)
20 0x0000000000cf21b0 swift::TypeChecker::computeCaptures(swift::AnyFunctionRef) (/path/to/swift/bin/swift+0xcf21b0)
21 0x0000000000c242eb typeCheckFunctionsAndExternalDecls(swift::TypeChecker&) (/path/to/swift/bin/swift+0xc242eb)
22 0x0000000000c24a6b swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, swift::OptionSet<swift::TypeCheckingFlags, unsigned int>, unsigned int, unsigned int) (/path/to/swift/bin/swift+0xc24a6b)
23 0x0000000000999116 swift::CompilerInstance::performSema() (/path/to/swift/bin/swift+0x999116)
24 0x000000000047ca6a swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) (/path/to/swift/bin/swift+0x47ca6a)
25 0x000000000043b2a7 main (/path/to/swift/bin/swift+0x43b2a7)
26 0x00007f0e3793d830 __libc_start_main /build/glibc-Qz8a69/glibc-2.23/csu/../csu/libc-start.c:325:0
27 0x00000000004386e9 _start (/path/to/swift/bin/swift+0x4386e9)
```
@practicalswift
Copy link
Contributor Author

@swift-ci please smoke test and merge

@practicalswift
Copy link
Contributor Author

@swift-ci please test and merge

@practicalswift practicalswift merged commit 3e8b9ff into swiftlang:master Jan 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant