Skip to content

[SourceKit] Add test case for crash triggered in swift::performDelayedParsing(…) #554

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 15, 2015
Merged

[SourceKit] Add test case for crash triggered in swift::performDelayedParsing(…) #554

merged 1 commit into from
Dec 15, 2015

Conversation

practicalswift
Copy link
Contributor

Stack trace:

found code completion token A at offset 127
swift-ide-test: /path/to/llvm/include/llvm/Support/Casting.h:237: typename cast_retty<X, Y *>::ret_type llvm::cast(Y *) [X = swift::ExtensionDecl, Y = const swift::DeclContext]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
12 swift-ide-test  0x0000000000865a46 swift::performDelayedParsing(swift::DeclContext*, swift::PersistentParserState&, swift::CodeCompletionCallbacksFactory*) + 230
13 swift-ide-test  0x0000000000774304 swift::CompilerInstance::performSema() + 3316
14 swift-ide-test  0x000000000071cc33 main + 35011
Stack dump:
0.  Program arguments: swift-ide-test -code-completion -code-completion-token=A -source-filename=<INPUT-FILE>

…dParsing(swift::DeclContext*, swift::PersistentParserState&, swift::CodeCompletionCallbacksFactory*)

Stack trace:

```
found code completion token A at offset 127
swift-ide-test: /path/to/llvm/include/llvm/Support/Casting.h:237: typename cast_retty<X, Y *>::ret_type llvm::cast(Y *) [X = swift::ExtensionDecl, Y = const swift::DeclContext]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
12 swift-ide-test  0x0000000000865a46 swift::performDelayedParsing(swift::DeclContext*, swift::PersistentParserState&, swift::CodeCompletionCallbacksFactory*) + 230
13 swift-ide-test  0x0000000000774304 swift::CompilerInstance::performSema() + 3316
14 swift-ide-test  0x000000000071cc33 main + 35011
Stack dump:
0.	Program arguments: swift-ide-test -code-completion -code-completion-token=A -source-filename=<INPUT-FILE>
```
gottesmm added a commit that referenced this pull request Dec 15, 2015
…rmdelayedparsing

[SourceKit] Add test case for crash triggered in swift::performDelaye…
@gottesmm gottesmm merged commit 56a62b7 into swiftlang:master Dec 15, 2015
@practicalswift practicalswift changed the title [SourceKit] Add test case for crash triggered in swift::performDelaye… [SourceKit] Add test case for crash triggered in swift::performDelayedParsing(…) Dec 16, 2015
kateinoigakukun added a commit to kateinoigakukun/swift that referenced this pull request Apr 16, 2020
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