Skip to content

[SIL] Add test case for crash triggered in swift::ValueDecl::getInterfaceType() #705

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

[SIL] Add test case for crash triggered in swift::ValueDecl::getInterfaceType() #705

merged 1 commit into from
Dec 21, 2015

Conversation

practicalswift
Copy link
Contributor

Stack trace:

<stdin>:3:25: error: expected '(' in argument list of function declaration
@objc protocol P{func t throw
                        ^
<stdin>:3:25: error: expected throwing specifier; did you mean 'throws'?
@objc protocol P{func t throw
                        ^~~~~
                        throws
<stdin>:3:30: error: consecutive declarations on a line must be separated by ';'
@objc protocol P{func t throw
                             ^
                             ;
<stdin>:3:30: error: expected declaration
@objc protocol P{func t throw
                             ^
4  sil-opt         0x0000000000d2488c swift::ValueDecl::getInterfaceType() const + 12
5  sil-opt         0x0000000000d25486 swift::TypeDecl::getDeclaredInterfaceType() const + 6
6  sil-opt         0x0000000000aea9bf swift::TypeChecker::isRepresentableInObjC(swift::AbstractFunctionDecl const*, swift::ObjCReason, llvm::Optional<swift::ForeignErrorConvention>&) + 1631
11 sil-opt         0x0000000000a9adb7 swift::TypeChecker::typeCheckDecl(swift::Decl*, bool) + 151
12 sil-opt         0x0000000000a665e2 swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, swift::OptionSet<swift::TypeCheckingFlags, unsigned int>, unsigned int) + 1474
13 sil-opt         0x0000000000739222 swift::CompilerInstance::performSema() + 2946
14 sil-opt         0x0000000000723e5c main + 1916
Stack dump:
0.  Program arguments: sil-opt -enable-sil-verify-all
1.  While type-checking 'P' at <stdin>:3:7

…faceType() const

Stack trace:

```
<stdin>:3:25: error: expected '(' in argument list of function declaration
@objc protocol P{func t throw
                        ^
<stdin>:3:25: error: expected throwing specifier; did you mean 'throws'?
@objc protocol P{func t throw
                        ^~~~~
                        throws
<stdin>:3:30: error: consecutive declarations on a line must be separated by ';'
@objc protocol P{func t throw
                             ^
                             ;
<stdin>:3:30: error: expected declaration
@objc protocol P{func t throw
                             ^
4  sil-opt         0x0000000000d2488c swift::ValueDecl::getInterfaceType() const + 12
5  sil-opt         0x0000000000d25486 swift::TypeDecl::getDeclaredInterfaceType() const + 6
6  sil-opt         0x0000000000aea9bf swift::TypeChecker::isRepresentableInObjC(swift::AbstractFunctionDecl const*, swift::ObjCReason, llvm::Optional<swift::ForeignErrorConvention>&) + 1631
11 sil-opt         0x0000000000a9adb7 swift::TypeChecker::typeCheckDecl(swift::Decl*, bool) + 151
12 sil-opt         0x0000000000a665e2 swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, swift::OptionSet<swift::TypeCheckingFlags, unsigned int>, unsigned int) + 1474
13 sil-opt         0x0000000000739222 swift::CompilerInstance::performSema() + 2946
14 sil-opt         0x0000000000723e5c main + 1916
Stack dump:
0.	Program arguments: sil-opt -enable-sil-verify-all
1.	While type-checking 'P' at <stdin>:3:7
```
gribozavr added a commit that referenced this pull request Dec 21, 2015
…etinterfacetype

[SIL] Add test case for crash triggered in swift::ValueDecl::getInterfaceType()
@gribozavr gribozavr merged commit 706e038 into swiftlang:master Dec 21, 2015
freak4pc pushed a commit to freak4pc/swift that referenced this pull request Sep 28, 2022
* add JUNIT str function

* Results should store the name of the associated logfile

* append build logs to junit reports when projects failed to build

* cleanup string parsing

* manually build the juint report

* use junit arg appropriately

* Add a link to the build URL rather than the raw text to save space

* clean up wording

* use regex properly

* small cleanup
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