4 ms·
Valgrind has tools that supposedly can find certain classes of load/store race conditions. I've never used them in anger, so I can't vouch for them, but it woul
by tveita 14y ago
Valgrind has tools that supposedly can find certain classes of load/store race conditions.
I've never used them in anger, so I can't vouch for them, but it would be interesting to do a test on the example in the article.
Memcheck is certainly a must-have tool for finding heisenbugs in low-level code - it would be wonderful to have an equally effective solution for race conditions.
http://valgrind.org/docs/manual/hg-manual.html http://valgrind.org/docs/manual/hg-manual.html
http://valgrind.org/docs/manual/drd-manual.html http://valgrind.org/docs/manual/drd-manual.html
- osivertsson 14y agoI have very successfully used ThreadSanitizer [1] on Linux to find data races in a large C++ codebase. The Linux and OSX versions are based on Valgrind/Helgrind. [1] http://code.google.com/p/data-race-test/wiki/ThreadSanitizer http://code.google.com/p/data-race-test/wiki/ThreadSanitizer