From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Cibrario Bertolotti Newsgroups: gmane.emacs.bugs Subject: bug#23875: 25.0.95; Emacs crashes when closing a frame on OSX Date: Thu, 30 Jun 2016 19:06:04 +0200 Message-ID: <481371E5-6A60-49C8-B707-33B5001747BA@polito.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1467306451 28805 80.91.229.3 (30 Jun 2016 17:07:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jun 2016 17:07:31 +0000 (UTC) To: 23875@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 30 19:07:16 2016 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 1bIfQp-00072l-0K for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Jun 2016 19:07:15 +0200 Original-Received: from localhost ([::1]:51740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIfQo-00056x-6O for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Jun 2016 13:07:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIfQh-00055a-OM for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2016 13:07:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIfQc-00022S-LV for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2016 13:07:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIfQc-00022M-Hn for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2016 13:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bIfQc-0004jF-AY for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2016 13:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Cibrario Bertolotti Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Jun 2016 17:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23875 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.146730639218125 (code B ref -1); Thu, 30 Jun 2016 17:07:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Jun 2016 17:06:32 +0000 Original-Received: from localhost ([127.0.0.1]:32776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bIfQ7-0004iG-5D for submit@debbugs.gnu.org; Thu, 30 Jun 2016 13:06:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bIfQ5-0004i1-4b for submit@debbugs.gnu.org; Thu, 30 Jun 2016 13:06:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIfPy-0001px-FE for submit@debbugs.gnu.org; Thu, 30 Jun 2016 13:06:23 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:58369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIfPy-0001pS-BX for submit@debbugs.gnu.org; Thu, 30 Jun 2016 13:06:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIfPv-0004ox-MF for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2016 13:06:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIfPq-0001nb-Dx for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2016 13:06:19 -0400 Original-Received: from fm1nodo5.polito.it ([130.192.180.13]:56587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIfPq-0001n1-2d for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2016 13:06:14 -0400 Original-Received: from polito.it (frontmail1.polito.it [130.192.180.41]) by fm1nodo5.polito.it with ESMTP id u5UH6AWb022735-u5UH6AWd022735 (version=TLSv1.0 cipher=DHE-RSA-AES256-SHA bits=256 verify=CAFAIL) for ; Thu, 30 Jun 2016 19:06:10 +0200 Original-Received: from [151.47.138.232] (account d011741@polito.it HELO [192.168.43.34]) by polito.it (CommuniGate Pro SMTP 6.1.9) with ESMTPSA id 107770120 for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2016 19:06:07 +0200 X-Mailer: Apple Mail (2.3124) X-FEAS-SYSTEM-WL: 130.192.180.41 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:120232 Archived-At: Emacs occasionally crashes with a segmentation fault when deleting a frame on OSX. The crash occurs with low probability, I am sorry I cannot provide a detailed recipe to reproduce it at the moment. Looking at the crash report (at the bottom of this email) it seems to me that an EmacsImage is being deallocated by autorelease after it has already been freed, thus causing a NULL pointer dereference. Might this be another case of omitted bracketing with block_input()/unblock_input(), like in bug #23462? I am now running Emacs with NSTRACE_ENABLED. If you have any better idea on how to gather more information, please let me know. I am willing to help. Thanks and best regards, ICB Process: Emacs-x86_64-10_9 [3325] Path: = /Users/USER/*/Emacs.app/Contents/MacOS/Emacs-x86_64-10_9 Identifier: org.gnu.Emacs Version: Version 25.0.95 (9.0) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Emacs-x86_64-10_9 [3325] User ID: 501 Date/Time: 2016-06-30 18:51:07.043 +0200 OS Version: Mac OS X 10.11.5 (15F34) Report Version: 11 Anonymous UUID: 12F2E9FF-07EA-3C6C-2998-78FF89BB8F8C Sleep/Wake UUID: C2DE9394-F9B8-453B-9D91-81E1D8F25C28 Time Awake Since Boot: 53000 seconds Time Since Wake: 1800 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGABRT) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000018 Exception Note: EXC_CORPSE_NOTIFY VM Regions Near 0x18: -->=20 __TEXT 0000000100000000-000000010020d000 [ 2100K] = r-x/rwx SM=3DCOW = /Users/USER/*/Emacs.app/Contents/MacOS/Emacs-x86_64-10_9 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff8671a8ea __kill + 10 1 Emacs-x86_64-10_9 0x00000001000b9b80 = terminate_due_to_signal + 144 2 Emacs-x86_64-10_9 0x00000001000d6393 emacs_abort + = 19 3 Emacs-x86_64-10_9 0x00000001001a61ac = ns_term_shutdown + 124 4 Emacs-x86_64-10_9 0x00000001000b9d45 = shut_down_emacs + 261 5 Emacs-x86_64-10_9 0x00000001000b9b45 = terminate_due_to_signal + 85 6 Emacs-x86_64-10_9 0x00000001000d7cd6 = deliver_fatal_thread_signal + 134 7 Emacs-x86_64-10_9 0x00000001000d8a26 = handle_sigsegv + 150 8 libsystem_platform.dylib 0x00007fff9766452a _sigtramp + = 26 9 ??? 000000000000000000 0 + 0 10 libobjc.A.dylib 0x00007fff8ff342f4 = objc_object::sidetable_release(bool) + 242 11 com.apple.CoreFoundation 0x00007fff99a58a4d -[__NSArrayM = dealloc] + 205 12 libobjc.A.dylib 0x00007fff8ff342f4 = objc_object::sidetable_release(bool) + 242 13 com.apple.AppKit 0x00007fff967d0437 -[NSImage = dealloc] + 152 14 Emacs-x86_64-10_9 0x00000001001c114e -[EmacsImage = dealloc] + 94 15 libobjc.A.dylib 0x00007fff8ff342f4 = objc_object::sidetable_release(bool) + 242 16 libobjc.A.dylib 0x00007fff8ff32ac4 (anonymous = namespace)::AutoreleasePoolPage::pop(void*) + 476 17 com.apple.CoreFoundation 0x00007fff99a72c12 = _CFAutoreleasePoolPop + 50 18 com.apple.Foundation 0x00007fff93c6e9ea = -[NSAutoreleasePool drain] + 153 19 com.apple.AppKit 0x00007fff967d9e53 = -[NSApplication run] + 893 20 Emacs-x86_64-10_9 0x00000001001a6348 -[EmacsApp = run] + 344 21 Emacs-x86_64-10_9 0x00000001001b1916 = ns_read_socket + 710 22 Emacs-x86_64-10_9 0x00000001000c0600 gobble_input = + 336 23 Emacs-x86_64-10_9 0x00000001000c1412 read_char + = 1986 24 Emacs-x86_64-10_9 0x00000001000bed1c = read_key_sequence + 2092 25 Emacs-x86_64-10_9 0x00000001000bd432 = command_loop_1 + 1154 26 Emacs-x86_64-10_9 0x0000000100138a36 = internal_condition_case + 70 27 Emacs-x86_64-10_9 0x00000001000ce050 = command_loop_2 + 48 28 Emacs-x86_64-10_9 0x0000000100138596 = internal_catch + 54 29 Emacs-x86_64-10_9 0x00000001000bc67e command_loop = + 158 30 Emacs-x86_64-10_9 0x00000001000bc595 = recursive_edit_1 + 117 31 Emacs-x86_64-10_9 0x00000001000bc7bc = Frecursive_edit + 220 32 Emacs-x86_64-10_9 0x00000001000bb48e main + 5854 33 libdyld.dylib 0x00007fff8635c5ad start + 1 In GNU Emacs 25.0.95.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 = Version 10.9.5 (Build 13F1603)) of 2016-06-11 built on builder10-9.local Windowing system distributor 'Apple', version 10.3.1404 Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp'' Configured features: NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: show-paren-mode: t recentf-mode: t global-whitespace-mode: t display-time-mode: t display-battery-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Loading whitespace...done Loading recentf...done Loading paren...done Loading type-break...done For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: None found. Features: (shadow sort flyspell ispell mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils server printing ps-print ps-def lpr type-break paren recentf tree-widget wid-edit whitespace time battery cus-start cus-load exec-path-from-shell finder-inf info tex-site package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win ucs-normalize term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 245035 7260) (symbols 48 24308 0) (miscs 40 59 278) (strings 32 30488 6991) (string-bytes 1 933458) (vectors 16 38029) (vector-slots 8 700699 3288) (floats 8 454 200) (intervals 56 256 0) (buffers 976 12))