summary refs log tree commit diff stats
path: root/gitlab/issues/target_arm/host_missing/accel_missing/922.toml
blob: d1caf31fe2289e41f619b96791c781165595a910 (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
id = 922
title = "QEMU 7.0.0-rc0: Random segfaults when running grep using qemu-arm-static"
state = "opened"
created_at = "2022-03-20T21:01:38.001Z"
closed_at = "n/a"
labels = ["linux-user", "target: arm"]
url = "https://gitlab.com/qemu-project/qemu/-/issues/922"
host-os = "Arch Linux"
host-arch = "i386 (32 bit)"
qemu-version = "qemu-arm version 6.2.90 (7.0.0 rc 0 from the qemu.org)"
guest-os = "Linux"
guest-arch = "ARM"
description = """I'm running ARM binaries using 32 bit qemu-arm-static on x86_64 host. Sometimes when running grep via qemu, I get a random segmentation fault. Sometimes it happens faster, sometimes it takes several thousand iterations, but sooner or later it happens and really annoying.

This problem is also reproduced on 6.2, 5.2 and 5.1 releases, and NOT reproduced on 5.0

I wrote small test to demonstrate this bug."""
reproduce = """1. Download the test environment: [qemu-test-segfault.tar.bz2](/uploads/8f52617d46ba1e5bf29fc273cd07131d/qemu-test-segfault.tar.bz2)
2. `$ make # To build the docker container`
3. `$ make shell # To run ARM bash`
4. Inside a container, run `while true; do /qemu /bin/grep -E f text > /dev/null; [ $? -ne 0 ] && break; done`. After a while you will get segfault:
```
[root@0d81b08f032b /]# /qemu --version
qemu-arm version 6.2.90
Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers
[root@0d81b08f032b /]# while true; do /qemu /bin/grep -E f text > /dev/null; [ $? -ne 0 ] && break; done
Segmentation fault (core dumped)
[root@0d81b08f032b /]#
```"""
additional = "n/a"