Skip to content

[SourceKit] Add test case for crash triggered in swift::ValueDecl::getOverloadSignature() #712

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
Dec 22, 2015
Merged

[SourceKit] Add test case for crash triggered in swift::ValueDecl::getOverloadSignature() #712

merged 1 commit into from
Dec 22, 2015

Conversation

practicalswift
Copy link
Contributor

Stack trace:

found code completion token A at offset 160
swift-ide-test: /path/to/swift/lib/AST/Decl.cpp:1769: swift::Type swift::ValueDecl::getInterfaceType() const: Assertion `(type.isNull() || !type->is<PolymorphicFunctionType>()) && "decl has polymorphic function type but no interface type"' failed.
9  swift-ide-test  0x0000000000b381ae swift::ValueDecl::getOverloadSignature() const + 398
13 swift-ide-test  0x0000000000931af7 swift::TypeChecker::typeCheckDecl(swift::Decl*, bool) + 151
14 swift-ide-test  0x00000000008ff1f2 swift::typeCheckCompletionDecl(swift::Decl*) + 1122
19 swift-ide-test  0x0000000000ae1e34 swift::Decl::walk(swift::ASTWalker&) + 20
20 swift-ide-test  0x0000000000b6baee swift::SourceFile::walk(swift::ASTWalker&) + 174
21 swift-ide-test  0x0000000000b6ad1f swift::ModuleDecl::walk(swift::ASTWalker&) + 79
22 swift-ide-test  0x0000000000b44e82 swift::DeclContext::walkContext(swift::ASTWalker&) + 146
23 swift-ide-test  0x000000000085c9fa swift::performDelayedParsing(swift::DeclContext*, swift::PersistentParserState&, swift::CodeCompletionCallbacksFactory*) + 138
24 swift-ide-test  0x000000000076ba24 swift::CompilerInstance::performSema() + 3316
25 swift-ide-test  0x00000000007151b7 main + 33239
Stack dump:
0.  Program arguments: swift-ide-test -code-completion -code-completion-token=A -source-filename=<INPUT-FILE>
1.  While walking into decl getter for a at <INPUT-FILE>:2:6
2.  While type-checking 'B' at <INPUT-FILE>:5:1

…tOverloadSignature() const

Stack trace:

```
found code completion token A at offset 160
swift-ide-test: /path/to/swift/lib/AST/Decl.cpp:1769: swift::Type swift::ValueDecl::getInterfaceType() const: Assertion `(type.isNull() || !type->is<PolymorphicFunctionType>()) && "decl has polymorphic function type but no interface type"' failed.
9  swift-ide-test  0x0000000000b381ae swift::ValueDecl::getOverloadSignature() const + 398
13 swift-ide-test  0x0000000000931af7 swift::TypeChecker::typeCheckDecl(swift::Decl*, bool) + 151
14 swift-ide-test  0x00000000008ff1f2 swift::typeCheckCompletionDecl(swift::Decl*) + 1122
19 swift-ide-test  0x0000000000ae1e34 swift::Decl::walk(swift::ASTWalker&) + 20
20 swift-ide-test  0x0000000000b6baee swift::SourceFile::walk(swift::ASTWalker&) + 174
21 swift-ide-test  0x0000000000b6ad1f swift::ModuleDecl::walk(swift::ASTWalker&) + 79
22 swift-ide-test  0x0000000000b44e82 swift::DeclContext::walkContext(swift::ASTWalker&) + 146
23 swift-ide-test  0x000000000085c9fa swift::performDelayedParsing(swift::DeclContext*, swift::PersistentParserState&, swift::CodeCompletionCallbacksFactory*) + 138
24 swift-ide-test  0x000000000076ba24 swift::CompilerInstance::performSema() + 3316
25 swift-ide-test  0x00000000007151b7 main + 33239
Stack dump:
0.	Program arguments: swift-ide-test -code-completion -code-completion-token=A -source-filename=<INPUT-FILE>
1.	While walking into decl getter for a at <INPUT-FILE>:2:6
2.	While type-checking 'B' at <INPUT-FILE>:5:1
```
gribozavr added a commit that referenced this pull request Dec 22, 2015
…decl-getoverloadsignature

[SourceKit] Add test case for crash triggered in swift::ValueDecl::getOverloadSignature()
@gribozavr gribozavr merged commit 7eb30fc into swiftlang:master Dec 22, 2015
freak4pc pushed a commit to freak4pc/swift that referenced this pull request Sep 28, 2022
[Stress tester XFails] Update XFails
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.

2 participants