Open EspeuteClement opened 3 days ago
Nice find. Looks like this can be solved simply by making those writes atomic.
Edit: Hmm, actually, I think this may be a false positive from TSAN. Are false positives possible from TSAN? :thinking:
Either way, I think triggering TSAN is sufficient for bug status.
Zig Version
0.14.0-dev.130+cb308ba3a
Steps to Reproduce and Observed Behavior
Tested with ubuntu in WSL
run the following code using
zig test -fsanitize-thread test.zig
Observe the ThreadSanitizer reporting data races.
run output :
Expected Behavior
no warnings emitted from -fsanitize-threads