summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/108/other/922
blob: 0bb12a34d2c0f5713cc0f6bf49e3d22d611ca332 (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
graphic: 0.796
device: 0.756
semantic: 0.572
performance: 0.543
permissions: 0.506
debug: 0.486
vnc: 0.475
PID: 0.343
files: 0.288
boot: 0.282
other: 0.180
socket: 0.147
network: 0.145
KVM: 0.016

QEMU 7.0.0-rc0: Random segfaults when running grep using qemu-arm-static
Description of problem:
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.
Steps to 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 /]#
```