Date: Mon, 9 Nov 2009 14:43:39 +0300 From: Stanislav Sedov <stas@FreeBSD.org> To: Nikolaj Thygesen <nikolaj.thygesen@diamondbox.dk> Cc: ports@FreeBSD.org Subject: Re: FreeBSD Port: valgrind-3.5.0_1,1 Message-ID: <20091109144339.dd8ce889.stas@FreeBSD.org> In-Reply-To: <4AF74789.4090109@diamondbox.dk> References: <4AF74789.4090109@diamondbox.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
--Signature=_Mon__9_Nov_2009_14_43_39_+0300_u_yRgzB5prqdZaWQ Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, 08 Nov 2009 23:34:49 +0100 Nikolaj Thygesen <nikolaj.thygesen@diamondbox.dk> mentioned: > Hi, >=20 > Valgrind still seems troubled when it comes to multithreaded=20 > programs. It seems pthread_self() always returns the same id no matter=20 > which thread calls it - possibly the id of last created thread. Running=20 > a simple test program under Valgrind fails whereas running it as a=20 > regular binary works fine. >=20 > No matter how you twist and turn the creation of mutex'es they seem=20 > to always end up recursive, and don't really protect anything as thay=20 > can be taken by multiple threads simultaneously. They also seem to=20 > behave differently depending on whether they were initialized=20 > dynamically - as in using pthread_mutex_init() - or statically as in=20 > using PTHREAD_MUTEX_INITIALIZER. >=20 Thanks! I'll look into this soon. --=20 Stanislav Sedov ST4096-RIPE --Signature=_Mon__9_Nov_2009_14_43_39_+0300_u_yRgzB5prqdZaWQ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iQIcBAEBAgAGBQJK+ABxAAoJEKN82nOYvCd00gEP/2lw9G10GdsSmdyLvMPitaDn lKJBFGhCj1PBAewzJVokYhNepc6qP5eJKLYAGr0yZPjCkwhHg171LWvEGv+NVC+c ADvp38EHDAaHFKQNLGHnyCEX9QqADedSxhaz8M76Ur0mHup1/sYsZD3CqcgqlyBL ArbBFHyPR5PIYXKTWv39IEfRYtzO0ITVIl/XefQSbUVLVgelupO3xlANTuNUeDQr gYXa3Q1Qlf93NmDALjWo4dZaunw9lT1OreAk3l3F+rWo04pGYexucPxOjorYLyM2 RnH0agNdXA1B1pbtbzWC+SBFCSPS6Q/7FVtDXzLgW56agwNN9Nl7IDvqmZruDCVt qL9/MHpVBvuD+7Nuq5d5ZXuvCiQUwvThaBT2c+posRxSAziN2PvNEiSJVZPN0jtu jutDwzZD5hOU8FSf5L6ma9L5WHiwQbKondkaSGL9MKHClQ/Z828sXoEkgaZps+Zv pO7UD5rCY+Wh0aq8zDEyRnhItiU+XyVz7MsSAlyr7L0lYIv1RFzLp3UjBhCp+joM 1mO1eOMOitpp/wWy4VjBlrQtnYtxjBUVvsFz2jKgwhiyR00ZlsatVraZ5+yl9AgL 4NUlojNHxDQARggwE9d05Omq/tFQ/ccuqY1AC8o8FXVrkrlNnxdmZmaMrZ+TTgP+ n4tk091m7LHgx8Hli5Rf =J7Vv -----END PGP SIGNATURE----- --Signature=_Mon__9_Nov_2009_14_43_39_+0300_u_yRgzB5prqdZaWQ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091109144339.dd8ce889.stas>