Skip to content

Panic aborts under rust-lld + musl #73451

Closed
@alecmocatta

Description

@alecmocatta

This aborts when built with rust-lld + musl on stable and nightly:

fn main() {
    panic!();
}
$ rustc --target x86_64-unknown-linux-musl main.rs && ./main
thread 'main' panicked at 'explicit panic', main.rs:2:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
$ rustc --target x86_64-unknown-linux-musl -C linker=rust-lld main.rs && ./main
thread 'main' panicked at 'explicit panic', main.rs:2:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
Aborted (core dumped)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsC-bugCategory: This is a bug.O-muslTarget: The musl libc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions