Skip to content

[SIL] Add test case for crash triggered in swift::SILFunction::verify() #656

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

[SIL] Add test case for crash triggered in swift::SILFunction::verify() #656

merged 1 commit into from
Dec 19, 2015

Conversation

practicalswift
Copy link
Contributor

Stack trace:

sil-opt: /path/to/swift/lib/SIL/Verifier.cpp:2995: void (anonymous namespace)::SILVerifier::visitSILFunction(swift::SILFunction *): Assertion `!hasSharedVisibility(F->getLinkage()) && "external declarations of SILFunctions with shared visibility is not " "allowed"' failed.
8  sil-opt         0x00000000009aad02 swift::SILFunction::verify() const + 402
9  sil-opt         0x0000000000a243f8 swift::Parser::parseDeclSIL() + 5384
10 sil-opt         0x00000000009f5b2a swift::Parser::parseTopLevel() + 378
11 sil-opt         0x00000000009f0fcf swift::parseIntoSourceFile(swift::SourceFile&, unsigned int, bool*, swift::SILParserState*, swift::PersistentParserState*, swift::DelayedParsingCallbacks*) + 207
12 sil-opt         0x00000000007392a6 swift::CompilerInstance::performSema() + 2918
13 sil-opt         0x0000000000723efc main + 1916
Stack dump:
0.  Program arguments: sil-opt -enable-sil-verify-all
1.  With parser at source location: <stdin>:4:1
2.  While verifying SIL function @a for <stdin>:3:21

…() const

Stack trace:

```
sil-opt: /path/to/swift/lib/SIL/Verifier.cpp:2995: void (anonymous namespace)::SILVerifier::visitSILFunction(swift::SILFunction *): Assertion `!hasSharedVisibility(F->getLinkage()) && "external declarations of SILFunctions with shared visibility is not " "allowed"' failed.
8  sil-opt         0x00000000009aad02 swift::SILFunction::verify() const + 402
9  sil-opt         0x0000000000a243f8 swift::Parser::parseDeclSIL() + 5384
10 sil-opt         0x00000000009f5b2a swift::Parser::parseTopLevel() + 378
11 sil-opt         0x00000000009f0fcf swift::parseIntoSourceFile(swift::SourceFile&, unsigned int, bool*, swift::SILParserState*, swift::PersistentParserState*, swift::DelayedParsingCallbacks*) + 207
12 sil-opt         0x00000000007392a6 swift::CompilerInstance::performSema() + 2918
13 sil-opt         0x0000000000723efc main + 1916
Stack dump:
0.	Program arguments: sil-opt -enable-sil-verify-all
1.	With parser at source location: <stdin>:4:1
2.	While verifying SIL function @A for <stdin>:3:21
```
gribozavr added a commit that referenced this pull request Dec 19, 2015
…-verify

[SIL] Add test case for crash triggered in swift::SILFunction::verify()
@gribozavr gribozavr merged commit 4684009 into swiftlang:master Dec 19, 2015
freak4pc pushed a commit to freak4pc/swift that referenced this pull request Sep 28, 2022
…plugin-test

Revert "Mark swift-protobuf-plugin-example as XFAIL until rdar://90955872 is fixed"
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