----------------------------------------
> Date: Fri, 8 Nov 2013 08:20:24 +0100
> Subject: Re: [Valgrind-users] Helgrind 3.9.0: false positive with 
> pthread_mutex_destroy
> From: magnus.ref...@gmail.com
> To: saur...@hotmail.com
> CC: valgrind-users@lists.sourceforge.net
>
> That is most definitely wrong. Thread 1 destroys a locked mutex, and
> according to 
> http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_mutex_init.html
> :
>> Attempting to destroy a locked mutex results in undefined behavior.
>
> BR
> Magnus Reftel

You are right. But I was wrong about what was going on. The mutex *is* 
destroyed after unlocking. Sorry. I guess I will put in a suppression for now.

saurabh                                           
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to