From owner-freebsd-stable@FreeBSD.ORG Thu Sep 29 13:28:59 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AA3116A420 for ; Thu, 29 Sep 2005 13:28:59 +0000 (GMT) (envelope-from barner@gmx.de) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 8A38F43D5D for ; Thu, 29 Sep 2005 13:28:56 +0000 (GMT) (envelope-from barner@gmx.de) Received: (qmail invoked by alias); 29 Sep 2005 13:28:55 -0000 Received: from unknown (EHLO zi025.glhnet.mhn.de) [129.187.19.157] by mail.gmx.net (mp027) with SMTP; 29 Sep 2005 15:28:55 +0200 X-Authenticated: #147403 Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id 90D7FC114; Thu, 29 Sep 2005 15:31:56 +0200 (CEST) Date: Thu, 29 Sep 2005 15:31:56 +0200 From: Simon Barner To: Lefteris Tsintjelis Message-ID: <20050929133156.GA72022@zi025.glhnet.mhn.de> References: <433BB81A.5090602@ene.asda.gr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline In-Reply-To: <433BB81A.5090602@ene.asda.gr> User-Agent: Mutt/1.5.10i X-Y-GMX-Trusted: 0 Cc: freebsd-stable@freebsd.org Subject: Re: pthread_key_create memory leakage in pthreads? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2005 13:28:59 -0000 --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Lefteris Tsintjelis wrote: > Hi, >=20 > dmesg: FreeBSD 5.4-STABLE #0: Sun Sep 25 20:08:39 EEST 2005 >=20 > I am using valgrind to check my program but it always seems to come with= =20 > this > message: >=20 > =3D=3D8210=3D=3D 600 bytes in 3 blocks are definitely lost in loss record= 3 of 6 > =3D=3D8210=3D=3D at 0x3C03619F: malloc (in=20 > /usr/local/lib/valgrind/vgpreload_memcheck.so) > =3D=3D8210=3D=3D by 0x3C0978EC: (within /usr/local/lib/valgrind/libpth= read.so.1) > =3D=3D8210=3D=3D by 0x3C09A2FD: (within /usr/local/lib/valgrind/libpth= read.so.1) > =3D=3D8210=3D=3D by 0x3C09A489: pthread_key_create (in=20 > /usr/local/lib/valgrind/libpthread.so.1) >=20 > I am not sure if its accurate or not. I use a proper pthread_exit in my= =20 > thread. > Is there anything more that I should do besides that? Can you provide a (minimal) example where this happens? Also, what is the exact command line? --=20 Best regards / Viele Gr=FC=DFe, barner@FreeBSD.= org Simon Barner barner@gmx.de --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDO+zMCkn+/eutqCoRAqynAJ9XMnbS10n0a7PtJ7NGRlsxobXm7gCfXOQV mWFPVxXoJhRQDx92PN0nD5E= =KSEf -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9--