|
From: Paul A. <pa...@vi...> - 2011-11-09 18:40:59
|
Hello fellow Valgrind users! Could someone in the know please clarify the support of TLS in Valgrind/Helgrind? I am running Helgrind (version 3.7.0) on our code, which makes heavy use of TLS on GCC 4.5.1 with GLIBC 2.13. I am seeing a lot of what I believe are false positives, where a thread local variable is read on one thread and set on another "simultaneously". I don't see any possible way that there is contention since different threads are involved and by definition this access is safe. This leads me to believe that Helgrind is not recognizing the fact that the variables are thread-local. I have tried using VALGRIND_HG_DISABLE_CHECKING( ) on some of these variables, but even that seems to not work consistently. It's important to us for Valgrind tests to pass since we need to hand off the binaries to another group and they use Valgrind to validate their releases. Thanks in advance, Paul |