-
Notifications
You must be signed in to change notification settings - Fork 347
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
MUSL build: 'difft --version' terminated by signal SIGSEGV #563
Comments
Hmm, I can reproduce on my system too. gdb doesn't show anything useful:
although that 0x0 in |
Possibly related: rust-lang/rust#95926 Maybe musl builds should use rust 1.61 to avoid that issue. |
rust-lang/rust#74757 also shows a very similar backtrace. |
What's really bizarre here is that the musl builds are dynamically linked. This is wrong, and differs from the rust default (musl targets are statically linked).
This is slightly different from the normal linux-gnu target, which also has libpthread and libdl, but the musl build is definitely dynamically linked for some reason. |
For what it's worth: I built Clyde, which is Rust-based and provides a musl static binary for Linux. To make it statically linked I had to add this to the build script:
|
Thanks, I'll try that. I don't understand why I'm not getting static linking, rust should statically link musl builds by default I believe:
|
That's odd indeed. Maybe the behavior is different in your example because the demo project does not have any dependency? |
I can't replicate this with |
I'm wondering if something is picking up an old version of cross. cross-rs/cross#902 looks relevant. |
Probably worth filing an issue on upload-rust-binary-action to see if I've missed anything. |
that's actually not correct anymore. glibc 2.34 removed dynamic libdl.so and libpthread.so, so for new binaries you don't see them anymore- there is only a stub empty what that means is, that |
ah, yeah that |
Reproduces on CI now, fortunately: https://github.com/Wilfred/difftastic/actions/runs/6986277695/job/19011557098 (after 6051f05). |
I just tried the latest version (
0.51.1
), the MUSL build but unfortunately, it does not work for me. Let me know how can I provide more details, thanksMy OS is Oracle Linux 8.8.
The text was updated successfully, but these errors were encountered: