summary refs log tree commit diff stats
path: root/gitlab/issues/target_arm/host_missing/accel_missing/2309.toml
blob: 40e9fa9549a536c3ba8f914cdadc60742bca84b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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."""