Hello, calling pthhread_cond_destroy under valgrind-2.1.2-CVS gives ==3119== warning: Valgrind"s pthread_cond_destroy is incomplete ==3119== (it doesn"t check if the cond is waited on) ==3119== your program may misbehave as a result The attached patch implements this missing check by counting the number of threads waiting on the specified condition (using "vg_pthread_cond_t.__vg_c_waiting"). The patch works for me (and the two short testprogramms in the second attachement), hope I did not miss something... Peter
Created attachment 6760 [details] Patch 1
Created attachment 6761 [details] Patch 2
CVS HEAD valgrind now uses system libpthread, so this bug is moot.