From owner-freebsd-ports@FreeBSD.ORG Mon Nov 9 10:39:08 2009 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C58F91065698 for ; Mon, 9 Nov 2009 10:39:08 +0000 (UTC) (envelope-from stas@SpringDaemons.com) Received: from mx0.deglitch.com (backbone.deglitch.com [IPv6:2001:16d8:fffb:4::abba]) by mx1.freebsd.org (Postfix) with ESMTP id 7031B8FC13 for ; Mon, 9 Nov 2009 10:39:08 +0000 (UTC) Received: from sputnik.SpringDaemons.com (unknown [77.232.3.143]) by mx0.deglitch.com (Postfix) with ESMTPA id 0E65E8FC4E; Mon, 9 Nov 2009 13:39:06 +0300 (MSK) Received: by sputnik.SpringDaemons.com (Postfix, from userid 1024) id 3684AB86F; Mon, 9 Nov 2009 14:43:45 +0300 (MSK) Date: Mon, 9 Nov 2009 14:43:39 +0300 From: Stanislav Sedov To: Nikolaj Thygesen Message-Id: <20091109144339.dd8ce889.stas@FreeBSD.org> In-Reply-To: <4AF74789.4090109@diamondbox.dk> References: <4AF74789.4090109@diamondbox.dk> Organization: The FreeBSD Project X-XMPP: ssedov@jabber.ru X-Voice: +7 916 849 20 23 X-PGP-Fingerprin: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Mon__9_Nov_2009_14_43_39_+0300_u_yRgzB5prqdZaWQ" Cc: ports@FreeBSD.org Subject: Re: FreeBSD Port: valgrind-3.5.0_1,1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Nov 2009 10:39:08 -0000 --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 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--