Data race in pthread_barrier_wait
detected by ThreadSanitizer upon closing the Editor
#87993
Labels
pthread_barrier_wait
detected by ThreadSanitizer upon closing the Editor
#87993
Tested versions
63d6bda - reproducible
System information
Godot v4.3.dev (63d6bda) - Arch Linux #1 SMP PREEMPT_DYNAMIC Fri, 02 Feb 2024 17:03:55 +0000 - Tty - Vulkan (Forward+) - dedicated AMD Radeon RX 6900 XT (RADV NAVI21) () - AMD Ryzen 9 5950X 16-Core Processor (32 Threads)
Issue description
Closing the Editor against an empty project with ThreadSanitizer enabled will generate a data race warning in
pthread_barrier_wait
.Steps to reproduce
scons -Q -s platform=linuxbsd dev_mode=yes dev_build=yes udev=yes target=editor debug_symbols=yes precision=single bits=64 optimize=debug compiledb=yes use_llvm=yes linker=lld tests=yes use_asan=no use_tsan=yes werror=no -j$(nproc)
If you are on Arch Linux, it seems that linking to
libatomic.a
is unnecessary -- you may need to apply the following patch and try to compile again if it previously failed:If the
FATAL: ThreadSanitizer: unexpected memory mapping
error appears, you may need to temporarily lower the ASLR entropy:sudo sysctl vm.mmap_rnd_bits=28 # reverse it with: sudo sysctl vm.mmap_rnd_bits=32
OR disable ASLR entirely temporarily :
sudo sysctl kernel.randomize_va_space=0 # reverse it with: sudo sysctl kernel.randomize_va_space=2
Minimal reproduction project (MRP)
EmptyProject.zip
The text was updated successfully, but these errors were encountered: