From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Memory leak in keyboard variables? Date: Sat, 13 Dec 2008 14:09:42 -0500 Message-ID: <8763lnki2x.fsf@cyd.mit.edu> References: <87d4fzh0qc.fsf@cyd.mit.edu> <87y6ymiw93.fsf@cyd.mit.edu> <8763lqcuju.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229195536 6349 80.91.229.12 (13 Dec 2008 19:12:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Dec 2008 19:12:16 +0000 (UTC) Cc: Markus Triska , emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 13 20:13:19 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 1LBZvQ-0000kv-4w for ged-emacs-devel@m.gmane.org; Sat, 13 Dec 2008 20:13:16 +0100 Original-Received: from localhost ([127.0.0.1]:33390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LBZuE-0007Rs-Fw for ged-emacs-devel@m.gmane.org; Sat, 13 Dec 2008 14:12:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LBZrw-0006RL-JD for emacs-devel@gnu.org; Sat, 13 Dec 2008 14:09:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LBZru-0006Pt-JI for emacs-devel@gnu.org; Sat, 13 Dec 2008 14:09:39 -0500 Original-Received: from [199.232.76.173] (port=47524 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LBZru-0006PZ-BT for emacs-devel@gnu.org; Sat, 13 Dec 2008 14:09:38 -0500 Original-Received: from cyd.mit.edu ([18.115.2.24]:34759) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LBZrs-0004ed-Se for emacs-devel@gnu.org; Sat, 13 Dec 2008 14:09:37 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 3588757E196; Sat, 13 Dec 2008 14:09:42 -0500 (EST) In-Reply-To: (Markus Triska's message of "Sat, 13 Dec 2008 15:19:33 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:106883 Archived-At: Markus Triska writes: >> As it turns out, the majority of the memory leak reported in bug#1504 >> actually occurs outside Lisp. Basically, term.c was not freeing the >> face cache upon frame deletion, unlike the other terminals. > > Please also try emacsclient with "-c" instead of "-t" - there seems to > be a probably different and still quite big leak there as will. One thing I noticed is the xftfont_open is run whenever we call "emacsclient -c", but xftfont_close is never called. It appears that font_open_entity is called to allocate a font object, it is in general not recorded anywhere. Could this be part of the problem? Handa-san, do you have any thoughts?