id = 2822 title = "Data race with state field of ThreadPoolElement" state = "opened" created_at = "2025-02-19T12:49:35.905Z" closed_at = "n/a" labels = ["TestCase"] url = "https://gitlab.com/qemu-project/qemu/-/issues/2822" host-os = "Ubuntu Linux" host-arch = "n/a" qemu-version = "n/a" guest-os = "n/a" guest-arch = "n/a" description = """A data race in the access of `ThreadPoolElement` state field in `util/thread-pool.c` was identified using TSAN.""" reproduce = """```sh QEMU_BUILD_DIR= QEMU_DIR= configure --enable-tsan --cc=clang --cxx=clang++ --enable-trace-backends=ust --enable-fdt=system --disable-slirp make tests/unit/test-thread-pool MALLOC_PERTURB_=111 G_TEST_SRCDIR=$QEMU_BUILD_DIR/tests/unit G_TEST_BUILDDIR=$QEMU_BUILD_DIR/tests/unit $QEMU_BUILD_DIR/tests/unit/test-thread-pool --tap -k ```""" additional = "n/a"