From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.bugs Subject: bug#21556: 25.0.50; Memory leak in emacs -Q with lucid (font) Date: Thu, 24 Sep 2015 23:57:00 -0700 Message-ID: <8737y3dm0z.fsf@secretsauce.net> References: <87d1x7e53b.fsf@secretsauce.net> <83k2rfhu93.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1443164307 20615 80.91.229.3 (25 Sep 2015 06:58:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Sep 2015 06:58:27 +0000 (UTC) Cc: 21556@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 25 08:58:10 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 1ZfMxN-0004d3-7C for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 08:58:09 +0200 Original-Received: from localhost ([::1]:42702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfMxM-0000HN-S5 for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 02:58:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfMxK-0000GL-1X for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 02:58:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfMxG-0001cW-PE for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 02:58:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfMxG-0001cO-Lc for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 02:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZfMxG-0000So-DE for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 02:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2015 06:58: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.14431642251712 (code B ref 21556); Fri, 25 Sep 2015 06:58:02 +0000 Original-Received: (at 21556) by debbugs.gnu.org; 25 Sep 2015 06:57:05 +0000 Original-Received: from localhost ([127.0.0.1]:42420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfMwL-0000RY-61 for submit@debbugs.gnu.org; Fri, 25 Sep 2015 02:57:05 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:36913) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfMwI-0000RE-Kr for 21556@debbugs.gnu.org; Fri, 25 Sep 2015 02:57:03 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 1FBD22071E for <21556@debbugs.gnu.org>; Fri, 25 Sep 2015 02:57:02 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 25 Sep 2015 02:57:02 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=G9oWt 0kuPnrbPd/dubGjkLD2paA=; b=BNdYT4WuOtuwUfrb3d+MzROUWA50nOEpAy2Fk OqXzopPNBfXOOgtIgCfLjsaurhGAAXgMioL+1z76CZy3an1bbh+JMyqSqfTEFY3u tTZJp4CwhYbCuB4sUYlpbFzpwTpQkWgoqwI0xmpr/tUFOuAEynpewWcGDnqngBkW 3I2YDI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=G9oWt0kuPnrbPd/dubGjkLD2paA=; b=UD1Lp KZ0wxvH50ge7GRM6jFrr5RxGOK2wRhbHqQTRehtY+kUEohbm9Qme+X+vHKAAzNeK 8y0fhFHurCwxsr7Vf3tmkwPWzgBsWEFXXCixuGOc9c1RVk4HCdaupHuS/hINf33s wdaEomDLKAa4CR0FhVTyMw8EFr/kOFxaPskJiY= X-Sasl-enc: QPzLHsyp6qMSV9yeOVrJmFsYrRfZsqX5sAhNnzFc6ykQ 1443164221 Original-Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id C8E71680088; Fri, 25 Sep 2015 02:57:01 -0400 (EDT) Original-Received: from ip6-localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1ZfMwG-0002WE-MU; Thu, 24 Sep 2015 23:57:00 -0700 In-reply-to: <83k2rfhu93.fsf@gnu.org> 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:106893 Archived-At: Eli Zaretskii writes: >> Is there a way to put a watchpoint on a lisp object? How? > > Depends on the object. Which object do you want to put the watchpoint > on? Please show its source variable name and the source file lines > where it is used. Also, if the object is complex, what kinds of > changes in it would you like to watch? The object is the emacs font cache. Specifically in this case (Debian, X11, xft fonts, lucid widgets) it is frame->output_data.x->display_info->name_list_element where frame is a struct frame*, such as the first argument of font_load_for_lface() In the original message for this bug report I showed 'pp' output for this first argument of font_load_for_lface(). This function is called 4 times during the creation of one frame. I want to know why the font cache is cleared before the 3rd call. I tried to examine the code, and to place breakpoints in places that could be performing this cache clear, but none of those places look like the right ones. If a watchpoint is possible, it would tell me where this is cleared, instead of me having to guess.