-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TSsan error when using AwaitWithTimeout with multiple waiters #299
Comments
I didn't try your example, but I looked into building Abseil with TSAN correctly and here is what I've determined:
None of this is ideal. We should be able to automatically detect when Abseil is being compiled with TSAN and set the appropriate defines accordingly, and error when the appropriate interfaces aren't available. I'll look into doing this. |
For what it is worth Gcc 8.3 & 9.1 for me does include the tsan interface file, so it might be worth making sure this doesnt get broken for newer versions of GCC? |
This should be fixed by bb7be49. |
- d1397431006ea1362a5914d4a90b265d0c7c6f2c Update zoneinfo files to 2024b (#300) by Bradley White <14679271+devbww@users.noreply.github.com> - 8bdbd840e97ff32e17f25db85c82589819ad3352 Fix mingw compiler error due to missing function declarat... by Biswapriyo Nath <nathbappai@gmail.com> - 6624659e01e73e41527d6b27036e9f79a556560f Add GitHub Actions CI (#299) by Derek Mauro <761129+derekmauro@users.noreply.github.com> PiperOrigin-RevId: 673451051 Change-Id: Id39f2186bbdcb802d4fc4c5e21207c6f3709c56f
Summary
Creating two threads, both calling
AwaitWithTimeout
with a Condition, and then setting the condition to true produces a TSan errorPer #217 and the linked issue google/sanitizers#953 I tried running with
report_atomic_races=0
, but still see the error.Code to reproduce
Error produced (shortened)
Environment
bazel 0.23
gcc 8.2
abseil commit 0dffca4
The test pretty reliably produces the TSan error, but it does spuriously pass on occasion.
Any help / points in the right direction appreciated.
The text was updated successfully, but these errors were encountered: