Skip to content
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

[SR-13972] Crash in emitDirectTypeMetadataRef -- trivial repro case #56367

Closed
swift-ci opened this issue Dec 16, 2020 · 1 comment · Fixed by #60044
Closed

[SR-13972] Crash in emitDirectTypeMetadataRef -- trivial repro case #56367

swift-ci opened this issue Dec 16, 2020 · 1 comment · Fixed by #60044
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software IRGen LLVM IR generation opaque result types Feature → types → opaque types: opaque result types opaque types Feature → types: opaque types Self in class Feature → types: The 'Self' type in classes swift 5.3

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-13972
Radar rdar://problem/72407668
Original Reporter davidhun (JIRA User)
Type Bug

Attachment: Download

Environment

MacOS: 11.1 (20C69)

Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)

Target: x86_64-apple-darwin20.2.0

Additional Detail from JIRA
Votes 1
Component/s Compiler
Labels Bug, Crash
Assignee None
Priority Medium

md5: 2693568d8a0ddefb32d72affc752b757

Issue Description:

The attached project with 2 source files consistently crashes the swift compiler.

To repeat:

  1. cd SILCrash

  2. swift build

@typesanitizer
Copy link

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
slavapestov added a commit to slavapestov/swift that referenced this issue Jul 13, 2022
This cannot be represented in the ABI because we expect that the
opaque return type can be instantiated from the generic arguments
of its declaring context. Reconstructing type metadata for the
DynamicSelfType would require opaque return type instantiation
to also take the self *value*.

Fixes rdar://72407668 / apple#56367
slavapestov added a commit to slavapestov/swift that referenced this issue Jul 13, 2022
This cannot be represented in the ABI because we expect that the
opaque return type can be instantiated from the generic arguments
of its declaring context. Reconstructing type metadata for the
DynamicSelfType would require opaque return type instantiation
to also take the self *value*.

Fixes rdar://72407668 / apple#56367
slavapestov added a commit to slavapestov/swift that referenced this issue Jul 13, 2022
This cannot be represented in the ABI because we expect that the
opaque return type can be instantiated from the generic arguments
of its declaring context. Reconstructing type metadata for the
DynamicSelfType would require opaque return type instantiation
to also take the self *value*.

Fixes rdar://72407668 / apple#56367
slavapestov added a commit to slavapestov/swift that referenced this issue Jul 14, 2022
This cannot be represented in the ABI because we expect that the
opaque return type can be instantiated from the generic arguments
of its declaring context. Reconstructing type metadata for the
DynamicSelfType would require opaque return type instantiation
to also take the self *value*.

Fixes rdar://72407668 / apple#56367
slavapestov added a commit to slavapestov/swift that referenced this issue Jul 20, 2022
This cannot be represented in the ABI because we expect that the
opaque return type can be instantiated from the generic arguments
of its declaring context. Reconstructing type metadata for the
DynamicSelfType would require opaque return type instantiation
to also take the self *value*.

Fixes rdar://72407668 / apple#56367
Catfish-Man pushed a commit to Catfish-Man/swift that referenced this issue Jul 28, 2022
This cannot be represented in the ABI because we expect that the
opaque return type can be instantiated from the generic arguments
of its declaring context. Reconstructing type metadata for the
DynamicSelfType would require opaque return type instantiation
to also take the self *value*.

Fixes rdar://72407668 / apple#56367
@AnthonyLatsis AnthonyLatsis added CompilerCrash IRGen LLVM IR generation labels Sep 17, 2022
@AnthonyLatsis AnthonyLatsis added swift 5.3 Self in class Feature → types: The 'Self' type in classes opaque result types Feature → types → opaque types: opaque result types opaque types Feature → types: opaque types labels Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software IRGen LLVM IR generation opaque result types Feature → types → opaque types: opaque result types opaque types Feature → types: opaque types Self in class Feature → types: The 'Self' type in classes swift 5.3
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants