What tools have you used to detect race conditions for multithreaded programs in Linux.
I use the helgrind tool from valgrind, but I've noticed that sometimes it misses race conditions.
You may want to try ThreadSanitizer.
It differs from Helgrind in that in hybrid mode it "may give more false positives, but is much faster, more predictable and finds more real races."
You can also use DRD Valgrind tool along with helgrind. Though I have not tried DRD, it should detect some bugs missed by helgrind - so it worth to use both tools to detect more bugs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With