Skip to content

[swiftc] Add crash triggered in swift::TypeChecker::checkGenericParamList(…). Bumps # of unresolved crash cases to 90. #3015

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
Jun 15, 2016
Merged

[swiftc] Add crash triggered in swift::TypeChecker::checkGenericParamList(…). Bumps # of unresolved crash cases to 90. #3015

merged 1 commit into from
Jun 15, 2016

Conversation

practicalswift
Copy link
Contributor

What's in this pull request?

Crash case with stack trace:

4  swift           0x0000000000ed889d swift::TypeChecker::checkGenericParamList(swift::ArchetypeBuilder*, swift::GenericParamList*, swift::GenericSignature*, bool, swift::GenericTypeResolver*) + 93
6  swift           0x0000000000ed8fbe swift::TypeChecker::validateGenericFuncSignature(swift::AbstractFunctionDecl*) + 94
9  swift           0x0000000000e9b621 swift::TypeChecker::validateDecl(swift::ValueDecl*, bool) + 1089
11 swift           0x0000000000e9b621 swift::TypeChecker::validateDecl(swift::ValueDecl*, bool) + 1089
15 swift           0x0000000000f0d0ee swift::TypeChecker::resolveIdentifierType(swift::DeclContext*, swift::IdentTypeRepr*, swift::OptionSet<swift::TypeResolutionFlags, unsigned int>, bool, swift::GenericTypeResolver*, llvm::function_ref<bool (swift::TypeCheckRequest)>*) + 158
17 swift           0x0000000000f0e1c4 swift::TypeChecker::resolveType(swift::TypeRepr*, swift::DeclContext*, swift::OptionSet<swift::TypeResolutionFlags, unsigned int>, swift::GenericTypeResolver*, llvm::function_ref<bool (swift::TypeCheckRequest)>*) + 164
18 swift           0x0000000000f0cfe0 swift::TypeChecker::validateType(swift::TypeLoc&, swift::DeclContext*, swift::OptionSet<swift::TypeResolutionFlags, unsigned int>, swift::GenericTypeResolver*, llvm::function_ref<bool (swift::TypeCheckRequest)>*) + 192
19 swift           0x0000000000e9941a swift::TypeChecker::checkInheritanceClause(swift::Decl*, swift::GenericTypeResolver*) + 5370
20 swift           0x0000000000e9b3ef swift::TypeChecker::validateDecl(swift::ValueDecl*, bool) + 527
23 swift           0x0000000000ea0b66 swift::TypeChecker::typeCheckDecl(swift::Decl*, bool) + 150
24 swift           0x0000000000ec3522 swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, swift::OptionSet<swift::TypeCheckingFlags, unsigned int>, unsigned int, unsigned int) + 1026
25 swift           0x0000000000c580c9 swift::CompilerInstance::performSema() + 3289
27 swift           0x00000000007d7559 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2857
28 swift           0x00000000007a3578 main + 2872
Stack dump:
0.  Program arguments: /path/to/swift/bin/swift -frontend -c -primary-file validation-test/compiler_crashers/28314-swift-typechecker-checkgenericparamlist.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -module-name main -o /tmp/28314-swift-typechecker-checkgenericparamlist-196feb.o
1.  While type-checking 'A' at validation-test/compiler_crashers/28314-swift-typechecker-checkgenericparamlist.swift:10:1
2.  While resolving type e at [validation-test/compiler_crashers/28314-swift-typechecker-checkgenericparamlist.swift:10:9 - line:10:9] RangeText="e"
3.  While type-checking 'e' at validation-test/compiler_crashers/28314-swift-typechecker-checkgenericparamlist.swift:13:1
4.  While type-checking 'e' at validation-test/compiler_crashers/28314-swift-typechecker-checkgenericparamlist.swift:11:1
<unknown>:0: error: unable to execute command: Segmentation fault
<unknown>:0: error: compile command failed due to signal (use -v to see invocation)

Resolved bug number: –


Before merging this pull request to apple/swift repository:

  • Test pull request on Swift continuous integration.

Triggering Swift CI

The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:

Smoke Testing

Platform Comment
All supported platforms @swift-ci Please smoke test
All supported platforms @swift-ci Please smoke test and merge
OS X platform @swift-ci Please smoke test OS X platform
Linux platform @swift-ci Please smoke test Linux platform

Validation Testing

Platform Comment
All supported platforms @swift-ci Please test
All supported platforms @swift-ci Please test and merge
OS X platform @swift-ci Please test OS X platform
OS X platform @swift-ci Please benchmark
Linux platform @swift-ci Please test Linux platform

Lint Testing

Language Comment
Python @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

…ckGenericParamList(swift::ArchetypeBuilder*, swift::GenericParamList*, swift::GenericSignature*, bool, swift::GenericTypeResolver*)

Stack trace:

```
4  swift           0x0000000000ed889d swift::TypeChecker::checkGenericParamList(swift::ArchetypeBuilder*, swift::GenericParamList*, swift::GenericSignature*, bool, swift::GenericTypeResolver*) + 93
6  swift           0x0000000000ed8fbe swift::TypeChecker::validateGenericFuncSignature(swift::AbstractFunctionDecl*) + 94
9  swift           0x0000000000e9b621 swift::TypeChecker::validateDecl(swift::ValueDecl*, bool) + 1089
11 swift           0x0000000000e9b621 swift::TypeChecker::validateDecl(swift::ValueDecl*, bool) + 1089
15 swift           0x0000000000f0d0ee swift::TypeChecker::resolveIdentifierType(swift::DeclContext*, swift::IdentTypeRepr*, swift::OptionSet<swift::TypeResolutionFlags, unsigned int>, bool, swift::GenericTypeResolver*, llvm::function_ref<bool (swift::TypeCheckRequest)>*) + 158
17 swift           0x0000000000f0e1c4 swift::TypeChecker::resolveType(swift::TypeRepr*, swift::DeclContext*, swift::OptionSet<swift::TypeResolutionFlags, unsigned int>, swift::GenericTypeResolver*, llvm::function_ref<bool (swift::TypeCheckRequest)>*) + 164
18 swift           0x0000000000f0cfe0 swift::TypeChecker::validateType(swift::TypeLoc&, swift::DeclContext*, swift::OptionSet<swift::TypeResolutionFlags, unsigned int>, swift::GenericTypeResolver*, llvm::function_ref<bool (swift::TypeCheckRequest)>*) + 192
19 swift           0x0000000000e9941a swift::TypeChecker::checkInheritanceClause(swift::Decl*, swift::GenericTypeResolver*) + 5370
20 swift           0x0000000000e9b3ef swift::TypeChecker::validateDecl(swift::ValueDecl*, bool) + 527
23 swift           0x0000000000ea0b66 swift::TypeChecker::typeCheckDecl(swift::Decl*, bool) + 150
24 swift           0x0000000000ec3522 swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, swift::OptionSet<swift::TypeCheckingFlags, unsigned int>, unsigned int, unsigned int) + 1026
25 swift           0x0000000000c580c9 swift::CompilerInstance::performSema() + 3289
27 swift           0x00000000007d7559 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2857
28 swift           0x00000000007a3578 main + 2872
Stack dump:
0.	Program arguments: /path/to/swift/bin/swift -frontend -c -primary-file validation-test/compiler_crashers/28314-swift-typechecker-checkgenericparamlist.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -module-name main -o /tmp/28314-swift-typechecker-checkgenericparamlist-196feb.o
1.	While type-checking 'A' at validation-test/compiler_crashers/28314-swift-typechecker-checkgenericparamlist.swift:10:1
2.	While resolving type e at [validation-test/compiler_crashers/28314-swift-typechecker-checkgenericparamlist.swift:10:9 - line:10:9] RangeText="e"
3.	While type-checking 'e' at validation-test/compiler_crashers/28314-swift-typechecker-checkgenericparamlist.swift:13:1
4.	While type-checking 'e' at validation-test/compiler_crashers/28314-swift-typechecker-checkgenericparamlist.swift:11:1
<unknown>:0: error: unable to execute command: Segmentation fault
<unknown>:0: error: compile command failed due to signal (use -v to see invocation)
```
@practicalswift practicalswift changed the title [swiftc] Bump open crash case count to 90. Add test case for crash triggered in swift::TypeChecker::checkGenericParamList(…) [swiftc] Bump open crash case count to 90 by adding crash case triggered in swift::TypeChecker::checkGenericParamList(…) Jun 14, 2016
@practicalswift practicalswift changed the title [swiftc] Bump open crash case count to 90 by adding crash case triggered in swift::TypeChecker::checkGenericParamList(…) [swiftc] Add crash triggered in swift::TypeChecker::checkGenericParamList(…). Bumps # of unresolved crash cases to 90. Jun 14, 2016
@gribozavr
Copy link
Contributor

@swift-ci Please test and merge

1 similar comment
@gribozavr
Copy link
Contributor

@swift-ci Please test and merge

@swift-ci swift-ci merged commit 2345616 into swiftlang:master Jun 15, 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.

3 participants