blob: 71ef58de37654c303ee9b7873138998e4e199cb4 (
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
|
graphic: 0.846
device: 0.807
performance: 0.802
debug: 0.645
files: 0.551
vnc: 0.524
permissions: 0.505
semantic: 0.440
network: 0.377
boot: 0.371
PID: 0.359
socket: 0.335
other: 0.067
KVM: 0.028
Data races in TestBlockJob fields in test-block-iothread
Description of problem:
A data race in the access of `TestBlockJob` fields in `tests/unit/test-block-iothread.c` was identified using TSAN.
Steps to reproduce:
```sh
QEMU_BUILD_DIR=<path to the QEMU build directory>
QEMU_DIR=<path to the QEMU repository directory>
configure --enable-tsan --cc=clang --cxx=clang++ --enable-trace-backends=ust --enable-fdt=system --disable-slirp
make tests/unit/test-block-iothread
MALLOC_PERTURB_=67 G_TEST_SRCDIR=$QEMU_BUILD_DIR/tests/unit G_TEST_BUILDDIR=$QEMU_BUILD_DIR/tests/unit $QEMU_BUILD_DIR/tests/unit/test-block-iothread --tap -k
```
|