From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#18501: Acknowledgement (24.3.93; OS X; crash in free() when calling macfont_close()) Date: Mon, 22 Sep 2014 18:52:59 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <20140917233849.GA25143@home.blackbean.org> <20140919180528.GA8843@home.blackbean.org> <541CD37F.3030802@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1411379671 2249 80.91.229.3 (22 Sep 2014 09:54:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Sep 2014 09:54:31 +0000 (UTC) Cc: Jim Radford , 18501@debbugs.gnu.org To: Dmitry Antipov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 22 11:54:22 2014 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 1XW0K5-0007BQ-RJ for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Sep 2014 11:54:21 +0200 Original-Received: from localhost ([::1]:44292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW0K5-0001vi-Ge for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Sep 2014 05:54:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW0Jx-0001vL-3e for bug-gnu-emacs@gnu.org; Mon, 22 Sep 2014 05:54:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XW0Jr-0003U0-JU for bug-gnu-emacs@gnu.org; Mon, 22 Sep 2014 05:54:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW0Jr-0003Tm-Fh for bug-gnu-emacs@gnu.org; Mon, 22 Sep 2014 05:54:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XW0Jl-0007yu-VO for bug-gnu-emacs@gnu.org; Mon, 22 Sep 2014 05:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Sep 2014 09:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18501 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18501-submit@debbugs.gnu.org id=B18501.141137959430622 (code B ref 18501); Mon, 22 Sep 2014 09:54:01 +0000 Original-Received: (at 18501) by debbugs.gnu.org; 22 Sep 2014 09:53:14 +0000 Original-Received: from localhost ([127.0.0.1]:48045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XW0Iw-0007xl-Ki for submit@debbugs.gnu.org; Mon, 22 Sep 2014 05:53:14 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:64632) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XW0Ip-0007xF-J7 for 18501@debbugs.gnu.org; Mon, 22 Sep 2014 05:53:08 -0400 Original-Received: from fermat.math.s.chiba-u.ac.jp (fermat [133.82.132.10]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 60428C055D; Mon, 22 Sep 2014 18:52:59 +0900 (JST) In-Reply-To: <541CD37F.3030802@yandex.ru> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?UTF-8?Q?Shij=C5=8D?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) 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: 140.186.70.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:93619 Archived-At: >>>>> On Sat, 20 Sep 2014 05:08:15 +0400, Dmitry Antipov said: > On 09/19/2014 10:05 PM, Jim Radford wrote: >> Here are the two calls that free the font: >> >> frame #1: 0x00000001001c5ffd Emacs`macfont_close(font=0x0000000105c2a8c0) + 13 at macfont.m:2621 >> frame #2: 0x000000010014de80 Emacs`font_clear_cache(f=, cache=, driver=) + 304 at font.c:2620 >> >> frame #1: 0x00000001001c5ffd Emacs`macfont_close(font=0x0000000105c2a8c0) + 13 at macfont.m:2621 >> frame #2: 0x000000010011be9d Emacs`Fgarbage_collect [inlined] cleanup_vector + 38 at alloc.c:2935 >> >> Notice that the pointer is the same in both cases. Both cleanup_vector() and font_clear_cache() call >> drv-> close(font) >> >> It seems that font_clear_cache is leaving the font around for the GC to clean up (a second time) later. > Please try this. Does this mean each font backend driver should prepare for multiple "close" calls for a single font object? Or is this something specific to OS X? YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp