-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x86_64-unknown-linux-musl binaries SIGSEGV during early initialization #74757
Comments
It works for me on all of those same versions. Maybe it's a system toolchain issue? I'm using Fedora 32, and I don't have any system musl packages installed, so it will be purely using rust's version of the musl CRT objects. |
Marking as O-NixOS then where this was reproduced. |
Disabling
|
It looks like the issue is coming from the fact that on NixOS
If the wrapper is not utilized, or these arguments are removed, the binary runs correctly. Conversely if its run with the interpreter directly it also faults even if the
Possibly not a rustc bug either way. |
@nagisa what do you think would be the next steps to resolve this? |
It likely deserves an issue report to both nixos and musl upstreams. I’m going to do it as time permits. Then this can be closed. |
Minimized reproducer
Stack trace:
The faulting instruction is this:
The register value is not obviously wrong (i.e. its not 0 or something like that), so could be a buffer overrun of some sort.
rustc 1.45.0 (5c1f21c 2020-07-13) works.
rustc 1.46.0-beta.2 (6f95990 2020-07-23) fails.
rustc 1.47.0-nightly (5ef299e 2020-07-24) fails.
The text was updated successfully, but these errors were encountered: