From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: handa@gnu.org (K. Handa) Newsgroups: gmane.emacs.bugs Subject: bug#21556: 25.0.50; Memory leak in emacs -Q with lucid (font) Date: Tue, 29 Sep 2015 19:05:21 +0900 Message-ID: <87a8s5tuam.fsf@gnu.org> References: <87d1x7e53b.fsf@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1443555077 17838 80.91.229.3 (29 Sep 2015 19:31:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Sep 2015 19:31:17 +0000 (UTC) Cc: dmantipov@yandex.ru, dima@secretsauce.net, 21556@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 29 21:31:03 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 1Zh0c9-0000wk-3P for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Sep 2015 21:31:01 +0200 Original-Received: from localhost ([::1]:54393 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zh0c8-0005jz-Fo for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Sep 2015 15:31:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgrnT-000389-LP for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2015 06:06:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZgrnO-00074V-Li for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2015 06:06:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58314) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgrnO-00074E-JM for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2015 06:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZgrnO-0007Fl-6k for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2015 06:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: handa@gnu.org (K. Handa) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Sep 2015 10:06: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.144352114727859 (code B ref 21556); Tue, 29 Sep 2015 10:06:02 +0000 Original-Received: (at 21556) by debbugs.gnu.org; 29 Sep 2015 10:05:47 +0000 Original-Received: from localhost ([127.0.0.1]:47285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zgrn8-0007FH-K9 for submit@debbugs.gnu.org; Tue, 29 Sep 2015 06:05:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39109) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zgrn7-0007F7-8C for 21556@debbugs.gnu.org; Tue, 29 Sep 2015 06:05:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zgrn1-0006cb-Lo for 21556@debbugs.gnu.org; Tue, 29 Sep 2015 06:05:44 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zgrmq-0006Qh-50; Tue, 29 Sep 2015 06:05:28 -0400 Original-Received: from fl1-133-203-86-7.iba.mesh.ad.jp ([133.203.86.7]:40678 helo=shatin) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1Zgrmp-0003BA-9O; Tue, 29 Sep 2015 06:05:27 -0400 Original-Received: from handa by shatin with local (Exim 4.82) (envelope-from ) id 1Zgrmj-0003vV-7C; Tue, 29 Sep 2015 19:05:21 +0900 In-Reply-To: <83io6wffm9.fsf@gnu.org> (message from Eli Zaretskii on Sun, 27 Sep 2015 11:09:18 +0300) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:107051 Archived-At: In article <83io6wffm9.fsf@gnu.org>, Eli Zaretskii writes: > So maybe we should simply remove (or ifdef away) the code that > compacts the font caches. If your assumption about reusing the font > is anywhere near the truth, compacting the font cache gives us more > trouble than it gains: we get slow redisplay in some cases and random > hard-to-debug bugs, while the gains are only visible in very rare use > cases such as the one described in the Oct 2013 discussion. That may be an practical workaround at the moment. But, my design was based on the situation of more than 10 years. Nowadays, font listing and loading may not be that slow. And, if the cache-compacting code itself is doing the right thing, and it just revealed a bug in core part of font handler, the effort of tracking down the reason of current crashing may lead to fixing that bug. --- K. Handa handa@gnu.org