Skip to content

Logging glue dumps core on classes w/ destructors and boxes #3207

Description

@msullivan
struct thing {
    x: {a: @int};
    new (x: {a: @int}) { self.x = x; }
    drop { }
}

fn main() {
    let x = thing({a: @10});
    log(error, x);
}

will dump core.

Activity

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

    A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions