From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21556: 25.0.50; Memory leak in emacs -Q with lucid (font) Date: Fri, 25 Sep 2015 11:49:30 +0300 Message-ID: <83d1x6j339.fsf@gnu.org> References: <87d1x7e53b.fsf@secretsauce.net> <83k2rfhu93.fsf@gnu.org> <871tdmex2c.fsf@secretsauce.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1443171031 27971 80.91.229.3 (25 Sep 2015 08:50:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Sep 2015 08:50:31 +0000 (UTC) Cc: 21556@debbugs.gnu.org To: Dima Kogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 25 10:50:15 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZfOho-0004ly-53 for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 10:50:12 +0200 Original-Received: from localhost ([::1]:50180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfOhn-0000ji-CC for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 04:50:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfOhi-0000hZ-8f for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 04:50:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfOhf-0002Dz-16 for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 04:50:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfOhe-0002Di-Uo for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 04:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZfOhe-0003E8-Kd for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 04:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2015 08:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21556 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21556-submit@debbugs.gnu.org id=B21556.144317097012363 (code B ref 21556); Fri, 25 Sep 2015 08:50:02 +0000 Original-Received: (at 21556) by debbugs.gnu.org; 25 Sep 2015 08:49:30 +0000 Original-Received: from localhost ([127.0.0.1]:42475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfOh8-0003DK-3g for submit@debbugs.gnu.org; Fri, 25 Sep 2015 04:49:30 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:49846) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfOh5-0003DB-PW for 21556@debbugs.gnu.org; Fri, 25 Sep 2015 04:49:28 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NV8006005PGK400@mtaout29.012.net.il> for 21556@debbugs.gnu.org; Fri, 25 Sep 2015 11:50:10 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NV800K485VL7WB0@mtaout29.012.net.il>; Fri, 25 Sep 2015 11:50:10 +0300 (IDT) In-reply-to: <871tdmex2c.fsf@secretsauce.net> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:106897 Archived-At: > From: Dima Kogan > Cc: 21556@debbugs.gnu.org > Date: Fri, 25 Sep 2015 01:13:15 -0700 > > Hi. I just came back to this, figured out how to (semi-manually) put in > a watchpoint, and this watchpoint told me what's resetting the font > cache: the garbage collector. The backtrace in question: > > 0x00000000005d2172 in compact_font_cache_entry (entry=24121763) at alloc.c:5313 > #0 0x00000000005d2172 in compact_font_cache_entry (entry=24121763) at alloc.c:5313 > #1 0x00000000005d221b in compact_font_caches () at alloc.c:5339 > #2 0x00000000005d2742 in garbage_collect_1 (end=0x7ffcdb166830) at alloc.c:5515 > #3 0x00000000005d2e1d in Fgarbage_collect () at alloc.c:5720 > #4 0x000000000054eb21 in maybe_gc () at lisp.h:4515 > #5 0x00000000005f638c in Ffuncall (nargs=3, args=0x7ffcdb166988) at eval.c:2584 Yes, that's what I wrote to you you meanwhile. This seems to mean that fonts whose entries in the cache are not marked are still being used, or are unused but not freed.