Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Nov 2009 23:34:49 +0100
From:      Nikolaj Thygesen <nikolaj.thygesen@diamondbox.dk>
To:        stas@FreeBSD.org
Cc:        ports@FreeBSD.org
Subject:   FreeBSD Port: valgrind-3.5.0_1,1
Message-ID:  <4AF74789.4090109@diamondbox.dk>

next in thread | raw e-mail | index | archive | help
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)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AF74789.4090109>