From owner-freebsd-stable@FreeBSD.ORG Thu Sep 29 09:49:22 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 A495216A41F for ; Thu, 29 Sep 2005 09:49:22 +0000 (GMT) (envelope-from lefty@ene.asda.gr) Received: from mx2.asda.gr (freemail.asda.gr [194.219.142.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4C8443D4C for ; Thu, 29 Sep 2005 09:49:21 +0000 (GMT) (envelope-from lefty@ene.asda.gr) Received: by mx2.asda.gr (Postfix, from userid 58) id 3E93822B; Thu, 29 Sep 2005 12:49:18 +0300 (EEST) Received: from mx3.asda.gr (ene.asda.gr [193.92.118.161]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.asda.gr", Issuer "ASDA Root CA" (verified OK)) by mx2.asda.gr (Postfix) with ESMTP id ECBEC227 for ; Thu, 29 Sep 2005 12:49:15 +0300 (EEST) Received: by mx3.asda.gr (Postfix, from userid 58) id 2A8D311482; Thu, 29 Sep 2005 12:49:15 +0300 (EEST) X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on ene.asda.gr X-Spam-Level: X-Spam-Status: score=-103.7 autolearn=ham tests=ALL_TRUSTED,AWL,BAYES_00, USER_IN_WHITELIST Received: from [193.92.118.162] (lefty.ene.asda.gr [193.92.118.162]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Lefteris Tsintjelis", Issuer "ASDA Root CA" (verified OK)) by mx3.asda.gr (Postfix) with ESMTP id 32B681142D for ; Thu, 29 Sep 2005 12:49:00 +0300 (EEST) Message-ID: <433BB81A.5090602@ene.asda.gr> Date: Thu, 29 Sep 2005 12:47:06 +0300 From: Lefteris Tsintjelis Organization: ASDA User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 7bit Subject: 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 09:49:22 -0000 Hi, dmesg: FreeBSD 5.4-STABLE #0: Sun Sep 25 20:08:39 EEST 2005 I am using valgrind to check my program but it always seems to come with this message: ==8210== 600 bytes in 3 blocks are definitely lost in loss record 3 of 6 ==8210== at 0x3C03619F: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck.so) ==8210== by 0x3C0978EC: (within /usr/local/lib/valgrind/libpthread.so.1) ==8210== by 0x3C09A2FD: (within /usr/local/lib/valgrind/libpthread.so.1) ==8210== by 0x3C09A489: pthread_key_create (in /usr/local/lib/valgrind/libpthread.so.1) I am not sure if its accurate or not. I use a proper pthread_exit in my thread. Is there anything more that I should do besides that? Please CC Thnx, Lefteris