From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: Memory leak Date: Fri, 16 May 2008 09:38:47 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1210898422 15587 80.91.229.12 (16 May 2008 00:40:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 May 2008 00:40:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 16 02:40: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 1Jwo0G-00072Z-16 for ged-emacs-devel@m.gmane.org; Fri, 16 May 2008 02:40:56 +0200 Original-Received: from localhost ([127.0.0.1]:59530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwnzW-0001CH-9s for ged-emacs-devel@m.gmane.org; Thu, 15 May 2008 20:40:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JwnyG-0000ZN-Eg for emacs-devel@gnu.org; Thu, 15 May 2008 20:38:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JwnyE-0000Yc-Q2 for emacs-devel@gnu.org; Thu, 15 May 2008 20:38:52 -0400 Original-Received: from [199.232.76.173] (port=34106 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwnyE-0000YX-M5 for emacs-devel@gnu.org; Thu, 15 May 2008 20:38:50 -0400 Original-Received: from ntp.math.s.chiba-u.ac.jp ([133.82.132.2]:63787 helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JwnyE-0006Pc-7j for emacs-devel@gnu.org; Thu, 15 May 2008 20:38:50 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id DC2D42C44; Fri, 16 May 2008 09:38:47 +0900 (JST) In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/23.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-kernel: by monty-python.gnu.org: NetBSD 3.0 (DF) 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:97230 Archived-At: >>>>> On Thu, 15 May 2008 18:50:29 -0400, Stefan Monnier said: > 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'. One thing I'm concerned about is the removal of `ftfont_free_entity'. Actually, the `leaks' command on Mac OS X shows that several resources allocated at ftfont_pattern_entity are leaking. And some minor nitpicking: In xftfont_open, font->pixel_size and font->driver are set twice (and to different values for font->pixel_size). YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp