So I am using ThreadSanitizer, and I find myself cleaning up data races that don't matter, in order to keep the output clean. (For example, an atomic set of a flag, where another thread reads that flag word, but doesn't care about that flag). On the one hand,
-
-
In my experience (which may be entirely unique to me) data races are the product of incompetent threading system design/utilization as a whole, and not specific clear-cut preventable mistakes.
-
"incompetent", really, that is what you have to say about this?
- 3 more replies
New conversation -
-
-
Did you already consider/reject using a suppression file?
-
Haven't done it yet, just wondering if people with experience in this can let me know of things to watch out for. Silencing things can be scary if you silence the wrong things!
- 3 more replies
New conversation -
-
-
the main tool you have is to put the code that generates the false positive in an inline function and either add that function to the suppression list or annotate it with __attribute__((no_sanitize("thread"))
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.