|
From: Julian S. <js...@ac...> - 2011-11-24 10:42:25
|
> Question; Can I ... or should I ... also throw "valgrind > --tool=helgrind" into the game? I have not been using this yet. You can use --tool=helgrind or --tool=drd to check threaded programs for errors. They provide similar functionality but using different algorithms, and using both is often worthwhile. One critical thing for both tools is, though, that the application under test must use only posix pthread_ functions for thread synchronisation. If that is not the case, both tools will report huge numbers of false errors. I'd strongly advise you to read the documentation for them at http://valgrind.org/docs/manual/manual.html before spending a lot of time on this. That said, if you do manage to get them to work well, they are pretty effective at finding threading errors which may otherwise be almost unfindable. J |