Rust segfaults with arm64 host emulating amd64 through docker
<!--This is the upstream QEMU issue tracker. If you are able to, it will greatly facilitate bug triage if you attempt to reproduce the problem with the latest qemu.git master built from source. See https://www.qemu.org/download/#source for instructions on how to do this. QEMU generally supports the last two releases advertised on https://www.qemu.org/. Problems with distro-packaged versions of QEMU older than this should be reported to the distribution instead. See https://www.qemu.org/contribute/report-a-bug/ for additional guidance. If this is a security issue, please consult https://www.qemu.org/contribute/security-process/--> ## Host environment - Operating system: `Ubuntu 25.04` - OS/kernel version: `Linux marcin-XPS-13-9345 6.17.0-8-qcom-x1e #8-Ubuntu SMP PREEMPT_DYNAMIC Sun Aug 31 21:03:54 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux` - Architecture: `aarch64` - QEMU flavor: `qemu-x86_64` - QEMU version: `binfmt/8bf932d qemu/v10.0.4 go/1.23.12` - QEMU command line: n/a ## Emulated/Virtualized environment - Operating system: `Ubuntu 25.04` - OS/kernel version: `Linux 9dda8e92169f 6.17.0-8-qcom-x1e #8-Ubuntu SMP PREEMPT_DYNAMIC Sun Aug 31 21:03:54 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux` - Architecture: `x86` ## Description of problem rustc segfaults when run under emulation from arm64 host to amd64 guest. ```bash docker run --privileged --rm tonistiigi/binfmt --install all docker run -it --rm --platform=linux/amd64 ubuntu:25.04 bash -c ' apt update && apt install -y curl; curl --proto \'=https\' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y; . "$HOME/.cargo/env"; rustc --help' ``` results in ``` qemu: uncaught target signal 11 (Segmentation fault) - core dumped ``` this issue has been reported to the rust team [here](https://github.com/rust-lang/rust/issues/147026) reminds me of [this](https://github.com/junegunn/fzf/issues/4464) issue in `fzf` which i've reported a while ago, which turned out to be an [issue in upstream golang](https://github.com/golang/go/issues/69255). this is an escalation of [this](https://github.com/astral-sh/uv/issues/16024) issue from `uv` ## Steps to reproduce see above ## Additional information <!--Attach logs, stack traces, screenshots, etc. Compress the files if necessary. If using libvirt, libvirt logs and XML domain information may be relevant.--> <!--The line below ensures that proper tags are added to the issue. Please do not remove it.-->
issue