Skip to content

[SR-10600] Runtime fails to demangle superclass when superclass's generic constraints are satisified in a conditional conformance #53000

Open
@swift-ci

Description

@swift-ci
Previous ID SR-10600
Radar rdar://problem/50057445
Original Reporter benpious (JIRA User)
Type Bug

Attachment: Download

Environment

Xcode Version 10.2.1 (10E1001), running on the iOS simulator.

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

md5: e58a0fb9941799cfe7a5f7a11b213366

relates to:

  • SR-10721 Runtime fails to demangle superclass when a type used to satisfy the superclass's generic bound is used in a superficial way

Issue Description:

Firstly, to address the elephant in the room, I know that this is the exact same error message as a crash that's already a known issue according to the Xcode 10.2 release notes. But based on my conversation with @jckarter on Twitter it's not clear if it's the same crash, hence this ticket.

TL:DR is that if you have a class C<T: P>, class D<T2> conforms to P if T2 conforms to P2, and class C2: C<D>, then C2's superclass metadata will be corrupted somehow.

See the sample project's SwiftTest2.swift file for an implementation of this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwarerun-time crashBug → crash: Swift code crashed during execution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions