Re: [Valgrind-users] virtual inheritance and race conditions

2012-01-09 Thread Joris Koster
To: Joris Koster Cc: valgrind-users@lists.sourceforge.net Subject: Re: [Valgrind-users] virtual inheritance and race conditions On Mon, Jan 9, 2012 at 10:24 AM, Joris Koster joris.kos...@aimms.com wrote: Yes I saw those but those didn't do the trick :( Which Valgrind version are you using

Re: [Valgrind-users] virtual inheritance and race conditions

2012-01-09 Thread Bart Van Assche
On Mon, Jan 9, 2012 at 2:45 PM, Joris Koster joris.kos...@aimms.com wrote: joris@grazer:~/tmp/src$ valgrind --version valgrind-3.6.1-Debian In the 3.7.0 release notes you can see that the following bug has been fixed: 243935 Helgrind: incorrect handling of ANNOTATE_HAPPENS_BEFORE()/AFTER()

Re: [Valgrind-users] virtual inheritance and race conditions

2012-01-09 Thread Joris Koster
@lists.sourceforge.net Subject: Re: [Valgrind-users] virtual inheritance and race conditions On Mon, Jan 9, 2012 at 2:45 PM, Joris Koster joris.kos...@aimms.com wrote: joris@grazer:~/tmp/src$ valgrind --version valgrind-3.6.1-Debian In the 3.7.0 release notes you can see that the following bug has been fixed

Re: [Valgrind-users] virtual inheritance and race conditions

2012-01-08 Thread Bart Van Assche
On Fri, Jan 6, 2012 at 4:04 PM, Joris Koster joris.kos...@aimms.com wrote:    void releaseRef() {        int nRefCnt = __sync_add_and_fetch(m_nRefCnt, -1);        if (nRefCnt == 0) {            delete this;        }    } Please read the documentation of ANNOTATE_HAPPENS_BEFORE() and

[Valgrind-users] virtual inheritance and race conditions

2012-01-06 Thread Joris Koster
Hi all, While trying to run some of our projects through helgrind, I encountered a race condition which I fail to understand for a 100% but I think is a false positive in my case. I've tried to disable that (assumed) false positive using annotations but in all my attempts helgrind kept reporting