Skip to content
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

aarch64 musl binary can't run #1332

Open
YamatoSecurity opened this issue Apr 20, 2024 · 1 comment
Open

aarch64 musl binary can't run #1332

YamatoSecurity opened this issue Apr 20, 2024 · 1 comment
Labels
bug Something isn't working pending

Comments

@YamatoSecurity
Copy link
Collaborator

I can compile an aarch64 musl binary in a arm based Kali VM on a M1 Mac but it gets killed by the shell when I try to run it:
zsh: killed ./target/aarch64-unknown-linux-musl/release/hayabusa

Here is how I am compiling

rustup install stable-aarch64-unknown-linux-musl
rustup target add aarch64-unknown-linux-musl
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-gnu-gcc
export CC=aarch64-linux-gnu-cc
cargo build --release --target=aarch64-unknown-linux-musl
./target/aarch64-unknown-linux-musl/release/hayabusa
@YamatoSecurity YamatoSecurity added the bug Something isn't working label Apr 20, 2024
@YamatoSecurity YamatoSecurity changed the title aarch64 musl binary won't run aarch64 musl binary can't run Apr 20, 2024
@YamatoSecurity
Copy link
Collaborator Author

I don't think there is anything we can do about this until it gets fixed at the compiler level. Checking things with strace, Haybusa just tries to allocate infinite memory on launch and gets killed trying to use 100% of free memory. Even when doing something as simple as displaying the help menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending
Projects
None yet
Development

No branches or pull requests

1 participant