Debugging Mozilla with Helgrind

Valgrind has a race-detection tool named Helgrind, but you're almost certainly better off using ThreadSanitizer, which is a similar race-detection tool that comes with clang and has wider use within Mozilla.