Skip to content

Attempting to move a non-copyable static segfaults #10577

Closed
@sfackler

Description

@sfackler
fn main() {
    let x = std::unstable::atomics::INIT_ATOMIC_INT;
}

That will segfault inside of memset, preseumably because AtomicInt is non-copyable and it's trying to zero out part of .rodata.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions