Skip to content

[SR-10524] Crash during build (Abort trap: 6) #52924

@swift-ci

Description

@swift-ci
Contributor
Previous ID SR-10524
Radar None
Original Reporter hhas01 (JIRA User)
Type Bug

Attachment: Download

Environment

macOS 10.14.4, Xcode 10.2.1

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash, Serialization
Assignee None
Priority Medium

md5: 55010c35ea8e7e93b7f0e809d4525801

Issue Description:

From the log:

<unknown>:0: error: fatal error encountered while reading from module 'sylvia_lang'; please file a bug report with your project and the crash log

      • DESERIALIZATION FAILURE (please include this section in any bug report) ***
        result not found
        Cross-reference to module 'sylvia_lang'
        ... Nothing
        ... toArray
        ... with type <τ_0_0, τ_0_1 where τ_0_0 : Value, τ_0_0 : BridgingProtocol, τ_0_0 : CoercionProtocol, τ_0_1 : AsArray<τ_0_0>> (Nothing) -> (Scope, τ_0_1) throws -> Array<τ_0_0.SwiftType>

Stack dump: [...]

1. While deserializing SIL vtable for 'Nothing' (in module 'sylvia_lang')
2. While deserializing decl #9 (XREF) in 'sylvia_lang'
3. Cross-reference to module 'sylvia_lang'
... Value
... toArray
... with type <τ_0_0, τ_0_1 where τ_0_0 : Value, τ_0_0 : BridgingProtocol, τ_0_0 : CoercionProtocol, τ_0_1 : AsArray<τ_0_0>> (Value) -> (Scope, τ_0_1) throws -> Array<τ_0_0.SwiftType>
4. While loading members for 'Value' (in module 'sylvia_lang')
5. While deserializing 'toArray' (FuncDecl #14) in 'sylvia_lang'
...

Activity

belkadan

belkadan commented on Apr 22, 2019

@belkadan
Contributor

The function in question looks like this

func toArray<E, T: AsArray<E>>(env: Scope, coercion: T) throws -> T.SwiftType

and I don't think Swift supports that AsArray<E> as a constraint yet. However, since you don't have any subclasses of AsArray, you can simplify this to

func toArray<E>(env: Scope, coercion: AsArray<E>) throws -> AsArray<E>.SwiftType
added
crashBug: A crash, i.e., an abnormal termination of software
on Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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 softwareserializationArea → compiler: Serialization & deserialization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @belkadan@swift-ci@AnthonyLatsis

        Issue actions

          [SR-10524] Crash during build (Abort trap: 6) · Issue #52924 · swiftlang/swift