From owner-freebsd-stable@FreeBSD.ORG Tue Feb 26 04:40:34 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25A0616A404; Tue, 26 Feb 2008 04:40:34 +0000 (UTC) (envelope-from arun.balakrishnan@wipro.com) Received: from wipro-blr-out01.wipro.com (wipro-blr-out01.wipro.com [203.91.198.74]) by mx1.freebsd.org (Postfix) with ESMTP id B8A2513C4EE; Tue, 26 Feb 2008 04:40:33 +0000 (UTC) (envelope-from arun.balakrishnan@wipro.com) X-AuditID: cb5bdd57-a9f2fbb000000741-13-47c3a4fd1a53 Received: from blr-ec-bh01.wipro.com (unknown [10.201.50.91]) by wipro-blr-out01.wipro.com (Symantec Mail Security) with ESMTP id AE4DC4E4002; Tue, 26 Feb 2008 11:04:53 +0530 (IST) Received: from BLR-SJP-MBX01.wipro.com ([10.101.50.182]) by blr-ec-bh01.wipro.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 26 Feb 2008 10:10:21 +0530 Received: from [127.0.0.1] ([10.115.5.159]) by BLR-SJP-MBX01.wipro.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 26 Feb 2008 10:10:20 +0530 Message-ID: <47C3982E.8000209@wipro.com> Date: Tue, 26 Feb 2008 10:10:14 +0530 From: Arun Balakrishnan User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Kostik Belousov References: <47C00A1B.5030708@wipro.com> <20080223214313.GF57756@deviant.kiev.zoral.com.ua> <47C2511D.5040202@wipro.com> <20080225140757.GL57756@deviant.kiev.zoral.com.ua> In-Reply-To: <20080225140757.GL57756@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed content-transfer-encoding: 7bit X-OriginalArrivalTime: 26 Feb 2008 04:40:20.0875 (UTC) FILETIME=[B19E95B0:01C87831] X-Brightmail-Tracker: AAAAAA== Cc: kan@freebsd.org, freebsd-stable@freebsd.org Subject: Re: Memory Leak under FreeBSD 6.0 RELEASE 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: Tue, 26 Feb 2008 04:40:34 -0000 My previous mail was this: --------------------------------------------------------------------- Wow! Thanks a lot for the reply. The patch you provided really gave some insight on the underlying problem. In our final product, the library will be loaded and used only once per instance. However the automated test suites for the library, do this for over 2000 times as part of functional testing and memory leak testing. In this we were getting a huge leak on FreeBSD. One more question though. (Second one in the list of queries I had posted in my first mail.) 2. While executing this without Valgrind, in another terminal we did a "ps -Aopid,rss | grep LibLoader_" continuously in a loop and saw that the RSS (resident set size) field value keeps increasing by 4KB every now and then. The same experiment on GNU/Linux shows that RSS remains at the same value. What could be the cause for the ever rising RSS value? Could you throw some light on what could be the possible reason for this? Is RSS value directly mappable to the leak that we see in libc? This is another issue that is acting as a show stopper for us. --------------------------------------------------------------------- Thanks again, ~Arun Kostik Belousov wrote: > On Mon, Feb 25, 2008 at 10:54:45AM +0530, Arun Balakrishnan wrote: > > I am unable to reply to HTML mail. Please, repost it with plain text > content. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com