From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jim Radford Newsgroups: gmane.emacs.bugs Subject: bug#18501: Acknowledgement (24.3.93; OS X; crash in free() when calling macfont_close()) Date: Fri, 19 Sep 2014 11:05:28 -0700 Message-ID: <20140919180528.GA8843@home.blackbean.org> References: <20140917233849.GA25143@home.blackbean.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1411149991 599 80.91.229.3 (19 Sep 2014 18:06:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2014 18:06:31 +0000 (UTC) To: 18501@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 19 20:06:25 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 1XV2Za-0005C0-DJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 20:06:22 +0200 Original-Received: from localhost ([::1]:59788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV2ZZ-00016e-P1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 14:06:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV2ZR-00016S-9i for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 14:06:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XV2ZM-0001mx-90 for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 14:06:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV2ZM-0001mV-2n for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 14:06:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XV2ZG-0005af-GV for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 14:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Radford Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Sep 2014 18:06:02 +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.141114993621438 (code B ref 18501); Fri, 19 Sep 2014 18:06:02 +0000 Original-Received: (at 18501) by debbugs.gnu.org; 19 Sep 2014 18:05:36 +0000 Original-Received: from localhost ([127.0.0.1]:46017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XV2Yp-0005Zh-Tc for submit@debbugs.gnu.org; Fri, 19 Sep 2014 14:05:36 -0400 Original-Received: from cpe-142-11-71-47.socal.rr.com ([142.11.71.47]:39622 helo=smtp.blackbean.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XV2Ym-0005ZY-EF for 18501@debbugs.gnu.org; Fri, 19 Sep 2014 14:05:33 -0400 Original-Received: from home.blackbean.org (localhost [127.0.0.1]) by smtp.blackbean.org (8.14.8/8.14.7) with ESMTP id s8JI5SFe008861 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <18501@debbugs.gnu.org>; Fri, 19 Sep 2014 11:05:29 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blackbean.org; s=apple; t=1411149929; bh=m1yALvYX35dvGDOeaTLitHhOR0pscYR2fZ+R9dR/CYI=; h=Date:From:To:Subject:References:In-Reply-To; b=QlyX4KSc46yTUgf4xqIjfmIDKC8K/G1fvPoMePdaJ2mjB8Xc/mwvHqZX8lW/Vg2cq WTHCxAUY/EekF93JMId5Rmdap4Fzyrd1MmryuTCdtuAbosHL4Ti9tYBTestHRWlFnI YWRlrBlqCkfDyauU2cVp0H/2YAo/qlqvraGDoNr65bAsAwcPx7On7qXJzX6BKF3six 0znaD6Tf63bxtihAxYqx99RzpNr+hZiLHbK6h7m7JVQQxyKIQPFkMgXAzZp Original-Received: (from jim@localhost) by home.blackbean.org (8.14.8/8.14.8/Submit) id s8JI5Snd008860 for 18501@debbugs.gnu.org; Fri, 19 Sep 2014 11:05:28 -0700 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) 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:93529 Archived-At: 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.