segfault running debug static musl hello world app on Linux #85543
Labels
A-linkage
Area: linking into static, shared libraries and binaries
C-bug
Category: This is a bug.
O-linux
Operating system: Linux
O-musl
Target: The musl libc
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I'm trying to build a static binary of a Rust application on Linux and it segfaults, so I created a smaller test case.
Here is my
main.rs
file:I ran the following:
I had previously installed musl-gcc on my system using the Arch package manager:
If I make a release build, it doesn't segfault:
Meta
Details of my system:
I expected to see this happen: No segfault and app prints "Hello World!".
Instead, this happened: segfault in debug mode.
Let me know if there is any other information I can share, or other tests I can run!
The text was updated successfully, but these errors were encountered: