From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Memory leak Date: Fri, 16 May 2008 02:25:50 +0200 Message-ID: <482CD48E.3020601@gmail.com> References: <85lk2b1829.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1210897581 13640 80.91.229.12 (16 May 2008 00:26:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 May 2008 00:26:21 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 16 02:26:57 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jwnmg-0003bZ-GI for ged-emacs-devel@m.gmane.org; Fri, 16 May 2008 02:26:54 +0200 Original-Received: from localhost ([127.0.0.1]:50991 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jwnlx-0000kA-10 for ged-emacs-devel@m.gmane.org; Thu, 15 May 2008 20:26:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jwnlr-0000hu-Je for emacs-devel@gnu.org; Thu, 15 May 2008 20:26:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jwnlq-0000fL-1a for emacs-devel@gnu.org; Thu, 15 May 2008 20:26:03 -0400 Original-Received: from [199.232.76.173] (port=49519 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jwnlp-0000fD-Uz for emacs-devel@gnu.org; Thu, 15 May 2008 20:26:01 -0400 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]:39377) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jwnlk-0003ul-Hz; Thu, 15 May 2008 20:25:56 -0400 Original-Received: from c83-254-150-27.bredband.comhem.se ([83.254.150.27]:64027 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1Jwnlj-0005KM-3Z; Fri, 16 May 2008 02:25:55 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <85lk2b1829.fsf@lola.goethe.zz> X-Antivirus: avast! (VPS 080515-1, 2008-05-15), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.150.27 X-Scan-Result: No virus found in message 1Jwnlj-0005KM-3Z. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1Jwnlj-0005KM-3Z 26ba4b77a4fa79b07bb162d3431d401d X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:97229 Archived-At: David Kastrup wrote: > Stefan Monnier writes: > >> We have a pretty serious memory leak. >> My Emacs session recently died with a memory full situation (the >> process was around 500MB VSZ). So I took a look around and it seem that >> every time I create a new frame, my Emacs session grows by around 10MB >> and deleting the frame does not recover this memory. >> This memory is not accounted for by the counts returned by >> `garbage-collect'. >> >> I'm not sure when this problem got introduced, tho the new font code is >> a likely culprit. > > Just to rule out something obvious (pure space overflow): > > M-: (garbage-collect) RET > > does not return nil, does it? I can see a memory leak on w32 of around 240 K in the above operation with a build from 2008-03-01, but not with a build from 2008-01-21 (no build in between starts ok). (garbage-collect) does not return nil with any of the builds above. PS: Is there any command line utility that shows memory usage on w32?