Skip to content

[SIL] Add test case for crash triggered in swift::Parser::parseSILCoverageMap() #5226

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
Oct 11, 2016
Merged

[SIL] Add test case for crash triggered in swift::Parser::parseSILCoverageMap() #5226

merged 1 commit into from
Oct 11, 2016

Conversation

practicalswift
Copy link
Contributor

Stack trace:

<stdin>:3:26: error: expected SIL value name
sil_default_witness_table
                         ^
sil-opt: /path/to/swift/include/swift/Parse/Parser.h:388: swift::SourceLoc swift::Parser::consumeToken(swift::tok): Assertion `Tok.is(K) && "Consuming wrong token kind"' failed.
7  sil-opt         0x0000000000ae77a0 swift::Parser::parseSILCoverageMap() + 0
8  sil-opt         0x0000000000b257cb swift::Parser::parseTopLevel() + 811
9  sil-opt         0x0000000000ad8550 swift::parseIntoSourceFile(swift::SourceFile&, unsigned int, bool*, swift::SILParserState*, swift::PersistentParserState*, swift::DelayedParsingCallbacks*) + 208
10 sil-opt         0x0000000000801cd3 swift::CompilerInstance::performSema() + 3315
11 sil-opt         0x00000000007e883c main + 1852
Stack dump:
0.  Program arguments: sil-opt -enable-sil-verify-all
1.  With parser at source location: <stdin>:3:26

…erageMap()

Stack trace:

```
<stdin>:3:26: error: expected SIL value name
sil_default_witness_table
                         ^
sil-opt: /path/to/swift/include/swift/Parse/Parser.h:388: swift::SourceLoc swift::Parser::consumeToken(swift::tok): Assertion `Tok.is(K) && "Consuming wrong token kind"' failed.
7  sil-opt         0x0000000000ae77a0 swift::Parser::parseSILCoverageMap() + 0
8  sil-opt         0x0000000000b257cb swift::Parser::parseTopLevel() + 811
9  sil-opt         0x0000000000ad8550 swift::parseIntoSourceFile(swift::SourceFile&, unsigned int, bool*, swift::SILParserState*, swift::PersistentParserState*, swift::DelayedParsingCallbacks*) + 208
10 sil-opt         0x0000000000801cd3 swift::CompilerInstance::performSema() + 3315
11 sil-opt         0x00000000007e883c main + 1852
Stack dump:
0.	Program arguments: sil-opt -enable-sil-verify-all
1.	With parser at source location: <stdin>:3:26
```
@practicalswift
Copy link
Contributor Author

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit 8d6b8df into swiftlang:master Oct 11, 2016
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