Re: [Valgrind-users] Can we know more about condition variable being destroyed?

2012-12-22 Thread Philippe Waroquiers
helgrind can't really know which task is being removed from the waiting list and so decrmenting nWaiters is all it does (I think). I think it does a lot more (otherwise helgrind could not follow at all what would happen with cond variables). See e.g. pthread_cond_wait_WRK Also, does

Re: [Valgrind-users] Can we know more about condition variable being destroyed?

2012-12-22 Thread ISHIKAWA,chiaki
Thank you for your response. (2012/12/23 2:58), Philippe Waroquiers wrote: helgrind can't really know which task is being removed from the waiting list and so decrmenting nWaiters is all it does (I think). I think it does a lot more (otherwise helgrind could not follow at all what would

Re: [Valgrind-users] Can we know more about condition variable being destroyed?

2012-12-19 Thread ISHIKAWA,chiaki
(2012/12/19 3:57), Philippe Waroquiers wrote: On Tue, 2012-12-18 at 21:00 +0900, ISHIKAWA,chiaki wrote: (2012/12/18 8:07), Philippe Waroquiers wrote: Destruction of unknown cond var is probably/maybe bug https://bugs.kde.org/show_bug.cgi?id=307082 I have produced a patch to take care of the

Re: [Valgrind-users] Can we know more about condition variable being destroyed?

2012-12-18 Thread ISHIKAWA,chiaki
(2012/12/18 8:07), Philippe Waroquiers wrote: Destruction of unknown cond var is probably/maybe bug https://bugs.kde.org/show_bug.cgi?id=307082 I have produced a patch to take care of the issue. But before that, I have a question. Q1: Why does valgrind not complain if I compile link Marc's

Re: [Valgrind-users] Can we know more about condition variable being destroyed?

2012-12-18 Thread John Reiser
cc -o /tmp/a.out marc.c (Note that there is no -lpthread parameter) and then run valgrind --tool=helgrind /tmp/a.out There is no warning or error at all. (under linux, that is). I wonder WHICH library is used for pthread_cond_init() and friends. The utility

Re: [Valgrind-users] Can we know more about condition variable being destroyed?

2012-12-18 Thread Philippe Waroquiers
On Tue, 2012-12-18 at 21:00 +0900, ISHIKAWA,chiaki wrote: (2012/12/18 8:07), Philippe Waroquiers wrote: Destruction of unknown cond var is probably/maybe bug https://bugs.kde.org/show_bug.cgi?id=307082 I have produced a patch to take care of the issue. But before that, I have a question.

Re: [Valgrind-users] Can we know more about condition variable being destroyed?

2012-12-17 Thread Philippe Waroquiers
On Mon, 2012-12-17 at 21:03 +0900, ISHIKAWA,chiaki wrote: During running mozilla thunderbird mail client under helgrind, I got the following message: ==13832== Thread #1: pthread_cond_destroy: destruction of condition variable being waited upon (See mozilla bugzilla entry