mold icon indicating copy to clipboard operation
mold copied to clipboard

Even the "hello world" Rust program segfaults on ARMV7 when built with mold.

Open turkerali opened this issue 2 years ago • 1 comments

Hi again. I reopened this issue as requested. Steps to reproduce segfault:

  • Install rust on armv7 via "curl https://sh.rustup.rs -sSf | sh"
  • cargo new mold_test
  • Edit .cargo/config.toml and add: [target.armv7-unknown-linux-gnueabihf] linker = "clang" rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/mold"]
  • Cargo run
  • And the result is: Compiling mold_test v0.1.0 (/root/aet_rust/mold_test) Finished dev [unoptimized + debuginfo] target(s) in 22.73s Running target/debug/mold_test Segmentation fault

Hope this helps to debug this issue.

turkerali avatar Jun 19 '22 18:06 turkerali

Can confirm issue happens for me as well both on armv6 and armv7. Segfaulting binary: mold_test.zip. Works fine on aarch64 though.

jpalus avatar Jun 20 '22 08:06 jpalus