From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?windows-1252?Q?=D3scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: X resource leak? Date: Sun, 18 Jan 2009 17:01:23 +0100 Message-ID: References: <878wpbz39r.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 1232294529 2092 80.91.229.12 (18 Jan 2009 16:02:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Jan 2009 16:02:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 18 17:03:19 2009 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 1LOa6w-0006NU-VX for ged-emacs-devel@m.gmane.org; Sun, 18 Jan 2009 17:02:55 +0100 Original-Received: from localhost ([127.0.0.1]:37766 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LOa5g-0000zI-1g for ged-emacs-devel@m.gmane.org; Sun, 18 Jan 2009 11:01:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LOa5b-0000zC-OO for emacs-devel@gnu.org; Sun, 18 Jan 2009 11:01:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LOa5a-0000yx-UE for emacs-devel@gnu.org; Sun, 18 Jan 2009 11:01:31 -0500 Original-Received: from [199.232.76.173] (port=47878 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LOa5a-0000yu-P3 for emacs-devel@gnu.org; Sun, 18 Jan 2009 11:01:30 -0500 Original-Received: from outmailhost.telefonica.net ([213.4.149.242]:33508 helo=ctsmtpout3.frontal.correo) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LOa5a-0006lT-5A for emacs-devel@gnu.org; Sun, 18 Jan 2009 11:01:30 -0500 Original-Received: from K7 (83.38.73.86) by ctsmtpout3.frontal.correo (7.2.056.6) (authenticated as 981711563$telefonica.net) id 4969DEE10020DC68; Sun, 18 Jan 2009 17:01:25 +0100 In-Reply-To: <878wpbz39r.fsf@cyd.mit.edu> (Chong Yidong's message of "Fri, 16 Jan 2009 10:20:16 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) 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:107962 Archived-At: Chong Yidong writes: >> On a emacs session that is running for 2 days with light usage, xrestop >> shows this: >> >> res-base Wins GCs Fnts Pxms Misc Pxm mem Other Total PID Identifier >> 2c00000 99 43 1 11251 11297 2445K 269K 2714K 5460 Emacs: *svn-st >> >> For a previous session, after 20 days, the numbers were even higher >> (replace 11000 above with ~ 30000 pixmaps and misc objects). > > I just fixed a small X resource leak in CVS, but I'm not sure that's > related to the numbers you're getting. I have not able to induce a leak > of that magnitude. For instance, even if I create lots of new frames, > closing those extra frames always brings the number of pixmaps allocated > back to its original value. > > Could you do some experimentation to see what behavior is causing the > allocation of so many pixmaps? I place an emacs -Q session and a konsole with xrestop side to side. Just opening a file, scrolling through, etc, makes the number of pixmaps and misc objects to grow. Killing the buffer does not reduce the number of X resources used by emacs. Something as simple as C-x C-f C-g increases the number of pixmaps by 4 (2 for C-x C-f and two more when I abort with C-g). Is as if the allocated X resources never were freed. Could you provide some hint about how to investigate this issue? I'm a complete X-Windows ignorant, but know the basics about gdb (and I willing to learn). -- Oscar