Re: FreeBSD Port: valgrind-3.5.0_1,1

2009-11-09 Thread Stanislav Sedov
On Sun, 08 Nov 2009 23:34:49 +0100
Nikolaj Thygesen nikolaj.thyge...@diamondbox.dk mentioned:

 Hi,
 
 Valgrind still seems troubled when it comes to multithreaded 
 programs. It seems pthread_self() always returns the same id no matter 
 which thread calls it - possibly the id of last created thread. Running 
 a simple test program under Valgrind fails whereas running it as a 
 regular binary works fine.
 
 No matter how you twist and turn the creation of mutex'es they seem 
 to always end up recursive, and don't really protect anything as thay 
 can be taken by multiple threads simultaneously. They also seem to 
 behave differently depending on whether they were initialized 
 dynamically - as in using pthread_mutex_init() - or statically as in 
 using PTHREAD_MUTEX_INITIALIZER.
 

Thanks!

I'll look into this soon.

-- 
Stanislav Sedov
ST4096-RIPE


pgpLuDwbfiKNG.pgp
Description: PGP signature


FreeBSD Port: valgrind-3.5.0_1,1

2009-11-08 Thread Nikolaj Thygesen

Hi,

   Valgrind still seems troubled when it comes to multithreaded 
programs. It seems pthread_self() always returns the same id no matter 
which thread calls it - possibly the id of last created thread. Running 
a simple test program under Valgrind fails whereas running it as a 
regular binary works fine.


   No matter how you twist and turn the creation of mutex'es they seem 
to always end up recursive, and don't really protect anything as thay 
can be taken by multiple threads simultaneously. They also seem to 
behave differently depending on whether they were initialized 
dynamically - as in using pthread_mutex_init() - or statically as in 
using PTHREAD_MUTEX_INITIALIZER.


   br - N :o)

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org