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: 24.3.93; OS X; crash in free() when calling macfont_close() Date: Wed, 17 Sep 2014 16:38:49 -0700 Message-ID: <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 1411077151 23856 80.91.229.3 (18 Sep 2014 21:52:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Sep 2014 21:52:31 +0000 (UTC) To: 18501@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 18 23:52: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 1XUjcm-0006M6-Jb for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Sep 2014 23:52:24 +0200 Original-Received: from localhost ([::1]:53977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUjcm-0007AN-7L for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Sep 2014 17:52:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUjcd-000750-FH for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2014 17:52:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUjcV-000251-OK for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2014 17:52:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUjcV-0001xJ-K2 for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2014 17:52:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XUjcQ-0008D0-6N for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2014 17:52: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: Thu, 18 Sep 2014 21:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18501 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.141107709331502 (code B ref -1); Thu, 18 Sep 2014 21:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Sep 2014 21:51:33 +0000 Original-Received: from localhost ([127.0.0.1]:44857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUjbw-0008C0-4F for submit@debbugs.gnu.org; Thu, 18 Sep 2014 17:51:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56463) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUQ4I-0005pS-87 for submit@debbugs.gnu.org; Wed, 17 Sep 2014 20:59:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUQ4B-0000B1-UC for submit@debbugs.gnu.org; Wed, 17 Sep 2014 20:59:29 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUQ4B-00009l-RP for submit@debbugs.gnu.org; Wed, 17 Sep 2014 20:59:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUQ41-00089u-Nm for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 20:59:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUQ3w-00007J-Gi for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 20:59:13 -0400 Original-Received: from cpe-142-11-71-47.socal.rr.com ([142.11.71.47]:59726 helo=smtp.blackbean.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUQ3w-0008WG-70 for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 20:59:08 -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 s8HNco3D025156 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 17 Sep 2014 16:38:55 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blackbean.org; s=apple; t=1410997135; bh=BtDkZSCHw8n5e6C3y915iYEEByBiBibJdktrQVWQDwI=; h=Date:From:To:Subject; b=IWMzEM9Z0/Ehdw1frgQZDicOQdKLwnlu0efI2Pf436fDrABCFaSZ8/ud8fTxy0WR1 PRxy4q2WAKTVp8PWlhMuzgGyJQZ9+ca8dLl9nByNJRa8Y6O8Y/k004AKTTqbMCPrpv SnckeoUQoD6f/VA72e9q9cwTNBYevSvauXQ6XIBeN7wlynkOZUopkIsLNgUICyCQZy MWxzHAW1vMKUaBxQ9a9ZFDulkREbZ1UaeMR5tkHGrD+DlvyxJMcV615amTT Original-Received: (from jim@localhost) by home.blackbean.org (8.14.8/8.14.8/Submit) id s8HNcn2i025155 for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 16:38:49 -0700 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Thu, 18 Sep 2014 17:51:30 -0400 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:93487 Archived-At: I often see Emacs use 100% of my CPU after closing emacsclient-opened windows. Here's a backtrace when I connect to the looping process. * thread #1: tid = 0x149297, 0x0000000100142d8b Emacs`hash_lookup [inlined] AREF(array=4391639061) at lisp.h:1356, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x30ecf2338) * frame #0: 0x0000000100142d8b Emacs`hash_lookup [inlined] AREF(array=4391639061) at lisp.h:1356 frame #1: 0x0000000100142d8b Emacs`hash_lookup [inlined] HASH_INDEX(h=0x0000000101818990) at lisp.h:1844 frame #2: 0x0000000100142d8b Emacs`hash_lookup(h=0x0000000101818990, key=4370859418, hash=) + 59 at fns.c:3807 frame #3: 0x00000001000874f2 Emacs`code_convert_string(string=140734799784416, coding_system=4370859418, dst_object=4320145514, encodep=false, nocopy=, norecord=true) + 194 at coding.c:9450 frame #4: 0x00000001000ecf8e Emacs`Fexpand_file_name(name=, default_directory=) + 878 at fileio.c:1176 frame #5: 0x00000001000eccfe Emacs`Fexpand_file_name(name=4319204161, default_directory=) + 222 at fileio.c:981 frame #6: 0x00000001000f3e7e Emacs`Fdo_auto_save(no_message=, current_only=4320145466) + 286 at fileio.c:5560 frame #7: 0x00000001000b789f Emacs`shut_down_emacs(sig=6, stuff=4320145466) + 239 at emacs.c:2026 frame #8: 0x00000001000b7699 Emacs`terminate_due_to_signal(sig=6, backtrace_limit=40) + 89 at emacs.c:362 frame #9: 0x00000001000d6436 Emacs`deliver_fatal_thread_signal [inlined] handle_fatal_signal(sig=6) + 134 at sysdep.c:1630 frame #10: 0x00000001000d642f Emacs`deliver_fatal_thread_signal [inlined] deliver_thread_signal + 119 at sysdep.c:1604 frame #11: 0x00000001000d63b8 Emacs`deliver_fatal_thread_signal(sig=) + 8 at sysdep.c:1642 frame #12: 0x00007fff8d11a5aa libsystem_platform.dylib`_sigtramp + 26 frame #13: 0x00007fff8bb1c867 libsystem_kernel.dylib`__pthread_kill + 11 frame #14: 0x00007fff90cbeb1a libsystem_c.dylib`abort + 125 frame #15: 0x00007fff90b0f07f libsystem_malloc.dylib`free + 411 frame #16: 0x00000001001c6108 Emacs`macfont_close(font=) + 280 at macfont.m:2631 frame #17: 0x000000010011be9d Emacs`Fgarbage_collect [inlined] cleanup_vector + 38 at alloc.c:2935 frame #18: 0x000000010011be77 Emacs`Fgarbage_collect [inlined] sweep_vectors + 572 at alloc.c:2986 frame #19: 0x000000010011bc3b Emacs`Fgarbage_collect [inlined] gc_sweep + 239 at alloc.c:6721 frame #20: 0x000000010011bb4c Emacs`Fgarbage_collect + 6172 at alloc.c:5650 frame #21: 0x0000000100170c1a Emacs`exec_byte_code [inlined] maybe_gc + 1338 at lisp.h:4564 In GNU Emacs 24.3.93.1 (x86_64-apple-darwin13.3.0, NS apple-appkit-1265.21) Configured using: `configure --with-ns'