On Tue, Feb 26, 2013 at 8:42 AM, Jeffrey Walton <noloa...@gmail.com> wrote:
> Hi All,
>
> This came up on another list (Automake). I'm going to quote Bob
> Friesenhahn directly since my paraphrase won't do him justice:
>
> "I am curious if this ThreadSanitizer extension will work with the
> normal build of GCC GOMP (for OpenMP) on GNU/Linux.  Up to now, it has
> been necessary for interested parties to build their own GCC in order
> to build a libgomp which uses pthreads rather than Linux clone for
> threading.  This is because valgrind only supports threads created via
> pthreads and pthread locking semantics."

libgomp uses pthreads create and not clone directly.  Though it uses
futex directly.  Can't you just add futex support to valgrind?

Thanks,
Andrew Pinski


>
> Does Thread Sanitizer work for non-pthread or OpenMP environments? [1]
> and [2] don't discuss limitations.
>
> Jeff
>
> [1] http://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html#Debugging-Options
> [2] http://code.google.com/p/data-race-test/wiki/ThreadSanitizer

Reply via email to