-
Notifications
You must be signed in to change notification settings - Fork 13k
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
SIGSEGV on stable-x86_64-unknown-linux-musl in a few cargo tools #93084
Comments
Cross-poosting my c-u comment:
|
Is this from here: https://github.com/sfackler/rust-openssl ? |
curl_global_init(3) is from libcurl, used by It seems to be called as assert_eq!(curl_sys::curl_global_init(curl_sys::CURL_GLOBAL_ALL), 0); so as a bisect if it's something wrong with the rustc bindings/memory model/whatever or if it's your libcurl, try building/running: int main() {
printf("%d\n", curl_global_init(3L));
} linked to the libcurl used by the curl crate – in the default configuration that's your global |
I've tried this sfackler/rust-openssl#1462 (comment) The variant with But according to rust-lang/compiler-team#422 |
No, |
Today these cargo tools build fine in a They will fail initially until the needed dependencies have been installed (eg: It seems that the problem originally was resolved Oct 2023 with Rust 1.72: #82912
Static builds had a bug where unspecified link kind would default to dynamic linking: #111698
|
I have installed stable-x86_64-unknown-linux-musl with rustup on Alpine Linux 3.15.
After successful installing a bunch of cargo tools, many of them do SIGSEGV:
But cargo cache, cargo license and cargo install, rustc and other stuff runs.
Not sure where the origin of the problem is.
The text was updated successfully, but these errors were encountered: