id = 2309 title = "qemu-aarch64 hangs running cargo test after libc6 upgrade to 2.36-9+deb12u6" state = "opened" created_at = "2024-04-24T19:56:19.595Z" closed_at = "n/a" labels = ["linux-user", "target: arm"] url = "https://gitlab.com/qemu-project/qemu/-/issues/2309" host-os = "Debian" host-arch = "X86_64" qemu-version = "qemu-aarch64 version 9.0.50 (v9.0.0-92-g88daa112d4)" guest-os = "Debian" guest-arch = "ARM64" description = """qemu-aarch64 seems to hang with 100% cpu usage without any indication. with -p 12345 for gdb debugging, gdb could not interrupt the remote with ctrl-c.""" reproduce = """1. Ensure the test env has 2.36-9+deb12u6 2. Install the latest rust toolchain. 3. mkdir test_test && cargo init 4. ensure src/main.rs has ``` fn main() { println!("Hello, world!"); } #[test] fn test() { println!("hAAA!"); } ``` 5. create .cargo/config.toml ``` [target.aarch64-unknown-linux-gnu] linker = "aarch64-linux-gnu-gcc" runner = "qemu-aarch64 -L /usr/aarch64-linux-gnu" rustflags = ["-C", "target-cpu=neoverse-n1"] ``` 6. cargo test --target aarch64-unknown-linux-gnu""" additional = """The issue does not seem to occur with libc6:2.36-9+deb12u4 The same binary runs fine on a real arm64 target with the upgraded libc6 version 2.36-9+deb12u6."""