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: problem report #97: base/src/emacs/src/term.c (init_tty): RESOURCE_LEAK Date: Mon, 08 Dec 2008 09:49:34 -0500 Message-ID: <87abb6sow1.fsf@cyd.mit.edu> References: <200812011556.mB1Fu6jE015153@mothra.ics.uci.edu> <200812080707.mB877nSf016223@mothra.ics.uci.edu> <878wqq225l.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228747787 11800 80.91.229.12 (8 Dec 2008 14:49:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Dec 2008 14:49:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 08 15:50:52 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 1L9hRj-0000e1-A8 for ged-emacs-devel@m.gmane.org; Mon, 08 Dec 2008 15:50:51 +0100 Original-Received: from localhost ([127.0.0.1]:45269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9hQY-0006f9-A8 for ged-emacs-devel@m.gmane.org; Mon, 08 Dec 2008 09:49:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9hQT-0006eu-Ag for emacs-devel@gnu.org; Mon, 08 Dec 2008 09:49:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9hQQ-0006ed-VJ for emacs-devel@gnu.org; Mon, 08 Dec 2008 09:49:32 -0500 Original-Received: from [199.232.76.173] (port=45267 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9hQQ-0006ea-Qq for emacs-devel@gnu.org; Mon, 08 Dec 2008 09:49:30 -0500 Original-Received: from cyd.mit.edu ([18.115.2.24]:58365) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L9hQQ-0004gw-Hr for emacs-devel@gnu.org; Mon, 08 Dec 2008 09:49:30 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id BA4A857E200; Mon, 8 Dec 2008 09:49:34 -0500 (EST) In-Reply-To: <878wqq225l.fsf@cyd.mit.edu> (Chong Yidong's message of "Mon, 08 Dec 2008 09:05:10 -0500") 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:106676 Archived-At: Chong Yidong writes: >> This looks like it's a problem, nothing keeps track of `area', >> `delete_tty' does not free it, so this leaks 4KB per tty >> creation/deletion, i.e. for each use of "emacsclient -t". > > Yes. In fact, there are at least two other leaks in this part of the > code. I'm working on a patch to fix this. Okay, I've plugged this leak and the two others. Now, each terminal frame is still leaking about 9KB (before, it was leaking about 15 KB). So there is still a bug somewhere.