Re: [Valgrind-users] Problem with helgrind?

2014-11-25 Thread Julian Seward
On 11/25/2014 02:04 PM, Pohl, Hartmut wrote: > As far as I understand, Thread #5 belongs to the second test case and > thus cannot have a data race with thread #3 due to the pthread_join()s. I agree. > I put the annotation at the end of the while (that's what I started with). I looked at this i

Re: [Valgrind-users] Problem with helgrind?

2014-11-25 Thread Pohl, Hartmut
g, 25. November 2014 13:40 To: valgrind-users@lists.sourceforge.net; Pohl, Hartmut Subject: Re: [Valgrind-users] Problem with helgrind? On 11/25/2014 10:22 AM, Pohl, Hartmut wrote: > What confuses me is that the stack trace incorrectly reports a data > race between the first and the second test th

Re: [Valgrind-users] Problem with helgrind?

2014-11-25 Thread Julian Seward
On 11/25/2014 10:22 AM, Pohl, Hartmut wrote: > What confuses me is that the stack trace incorrectly reports a data race > between the first and the second test thread. Which is impossible and makes me > think that maybe the pthread_join() is incorrectly handled by helgrind? There are a bunch of s

[Valgrind-users] Problem with helgrind?

2014-11-25 Thread Pohl, Hartmut
Hi, I'm currently playing around with helgrind. First, I'm trying to understand the annotations, cause I want to use them for my atomics implementation. Second, I'd like to understand how well helgrind works on transitive happens before/after relationships across threads. While doing this I ob