From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Steve Perry Newsgroups: gmane.emacs.bugs Subject: bug#26323: 25.1; Closing frames (in fullscreen) under Mac OS cause immediate crash Date: Fri, 31 Mar 2017 20:13:54 +0100 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1490987775 6037 195.159.176.226 (31 Mar 2017 19:16:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 31 Mar 2017 19:16:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) To: 26323@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 31 21:16:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cu21q-00018t-8d for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Mar 2017 21:16:10 +0200 Original-Received: from localhost ([::1]:42568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cu21w-0004Yl-6u for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Mar 2017 15:16:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cu21l-0004Xh-D2 for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 15:16:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cu21i-0003QM-6E for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 15:16:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56581) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cu21i-0003Pw-2m for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 15:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cu21h-0001QR-R5 for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 15:16:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Steve Perry Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 Mar 2017 19:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26323 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.14909877365444 (code B ref -1); Fri, 31 Mar 2017 19:16:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Mar 2017 19:15:36 +0000 Original-Received: from localhost ([127.0.0.1]:54780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cu21H-0001Pk-RJ for submit@debbugs.gnu.org; Fri, 31 Mar 2017 15:15:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cu21G-0001PY-Jy for submit@debbugs.gnu.org; Fri, 31 Mar 2017 15:15:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cu21A-0002jL-4v for submit@debbugs.gnu.org; Fri, 31 Mar 2017 15:15:29 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:60115) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cu21A-0002it-13 for submit@debbugs.gnu.org; Fri, 31 Mar 2017 15:15:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cu218-0004Dh-4J for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 15:15:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cu214-0002bC-Ng for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 15:15:26 -0400 Original-Received: from [195.159.176.226] (port=56450 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cu214-0002XO-Dv for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 15:15:22 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cu20n-0003sz-P5 for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 21:15:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 83 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:MiHFCoUyDkloHawt/jfRSX+sgVk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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:131144 Archived-At: Can also see this problem in 26.0.50. FWIW f is non-NULL and the contents look reasonable. Backtrace etc.: Process 73590 stopped * thread #1: tid = 0x103905a, 0x00000001001bc3c1 Emacs`ns_clear_frame_area(f=0x0000000103a1cc18, x=0, y=0, width=595, height=564) + 65 at nsterm.m:2414, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x20) frame #0: 0x00000001001bc3c1 Emacs`ns_clear_frame_area(f=0x0000000103a1cc18, x=0, y=0, width=595, height=564) + 65 at nsterm.m:2414 [opt] 2411 { 2412 NSRect r = NSMakeRect (x, y, width, height); 2413 NSView *view = FRAME_NS_VIEW (f); -> 2414 struct face *face = FRAME_DEFAULT_FACE (f); 2415 2416 if (!view || !face) 2417 return; (lldb) bt * thread #1: tid = 0x103905a, 0x00000001001bc3c1 Emacs`ns_clear_frame_area(f=0x0000000103a1cc18, x=0, y=0, width=595, height=564) + 65 at nsterm.m:2414, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x20) * frame #0: 0x00000001001bc3c1 Emacs`ns_clear_frame_area(f=0x0000000103a1cc18, x=0, y=0, width=595, height=564) + 65 at nsterm.m:2414 [opt] frame #1: 0x00000001001bc334 Emacs`-[EmacsView drawRect:](self=0x0000000111626c90, _cmd=, rect=(origin = (x = 0, y = 0), size = (width = 595, height = 564))) + 84 at nsterm.m:7497 [opt] frame #2: 0x00007fffa00a5af9 AppKit`-[NSView _drawRect:clip:] + 2276 frame #3: 0x00007fffa00f5aab AppKit`-[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1753 frame #4: 0x00007fffa00f5f16 AppKit`-[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2884 frame #5: 0x00007fffa00f5f16 AppKit`-[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2884 frame #6: 0x00007fffa00a3632 AppKit`-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 837 frame #7: 0x00007fffa00a2e0f AppKit`-[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 334 frame #8: 0x00007fffa00a1238 AppKit`-[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 2452 frame #9: 0x00007fffa009cb25 AppKit`-[NSView displayIfNeeded] + 1748 frame #10: 0x00007fffa009c437 AppKit`-[NSWindow displayIfNeeded] + 230 frame #11: 0x00007fffa07faf3f AppKit`___NSWindowGetDisplayCycleObserver_block_invoke.6228 + 277 frame #12: 0x00007fffa009bf15 AppKit`__37+[NSDisplayCycle currentDisplayCycle]_block_invoke + 454 frame #13: 0x00007fffa814aa96 QuartzCore`CA::Transaction::run_commit_handlers(CATransactionPhase) + 46 frame #14: 0x00007fffa8252800 QuartzCore`CA::Context::commit_transaction(CA::Transaction*) + 160 frame #15: 0x00007fffa8149631 QuartzCore`CA::Transaction::commit() + 475 frame #16: 0x00007fffa8149f92 QuartzCore`CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 108 frame #17: 0x00007fffa243b397 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 frame #18: 0x00007fffa243b307 CoreFoundation`__CFRunLoopDoObservers + 391 frame #19: 0x00007fffa241b996 CoreFoundation`CFRunLoopRunSpecific + 454 frame #20: 0x00007fffa19a7a5c HIToolbox`RunCurrentEventLoopInMode + 240 frame #21: 0x00007fffa19a7799 HIToolbox`ReceiveNextEventCommon + 184 frame #22: 0x00007fffa19a76c6 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71 frame #23: 0x00007fff9ff4d5b4 AppKit`_DPSNextEvent + 1120 frame #24: 0x00007fffa06c7d6b AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2789 frame #25: 0x00000001001b2daf Emacs`ns_send_appdefined(value=-1) + 143 at nsterm.m:3890 [opt] frame #26: 0x00007fffa2431a6c CoreFoundation`__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12 frame #27: 0x00007fffa243196b CoreFoundation`_CFXRegistrationPost + 427 frame #28: 0x00007fffa24316d2 CoreFoundation`___CFXNotificationPost_block_invoke + 50 frame #29: 0x00007fffa23eed63 CoreFoundation`-[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1827 frame #30: 0x00007fffa23edd9c CoreFoundation`_CFXNotificationPost + 604 frame #31: 0x00007fffa3e14a37 Foundation`-[NSNotificationCenter postNotificationName:object:userInfo:] + 66 frame #32: 0x00007fffa0019fc3 AppKit`-[NSWindow _setFrameCommon:display:stashSize:] + 3326 frame #33: 0x00007fffa00192b7 AppKit`-[NSWindow _setFrame:display:allowImplicitAnimation:stashSize:] + 222 frame #34: 0x00007fffa00191d2 AppKit`-[NSWindow setFrame:display:] + 67 frame #35: 0x00000001001bdfba Emacs`-[EmacsWindow setFrame:display:](self=, _cmd=, windowFrame=(origin = (x = 543, y = 405), size = (width = 595, height = 564)), displayViews=) + 74 at nsterm.m:7948 [opt] frame #36: 0x00007fffa02624f4 AppKit`-[NSWindow _didExitFullScreen:] + 226 frame #37: 0x00007fffa099073f AppKit`__123-[_NSWindowFullScreenTransition _performExitFullScreenModeForWindow:windowController:options:customWindows:doKitAnimation:]_block_invoke_2 + 390 frame #38: 0x00007fffa09904c5 AppKit`__123-[_NSWindowFullScreenTransition _performExitFullScreenModeForWindow:windowController:options:customWindows:doKitAnimation:]_block_invoke + 1191 frame #39: 0x00007fffa098ffbf AppKit`-[_NSWindowFullScreenTransition _performExitFullScreenModeForWindow:windowController:options:customWindows:doKitAnimation:] + 1616 frame #40: 0x00007fffa0991355 AppKit`-[_NSWindowFullScreenTransition exitFullScreenTransitionForWindow:options:] + 895 frame #41: 0x00007fffa0363776 AppKit`-[NSWindow(NSWindowTabbing) _doTabbedWindowCleanupForOrderOut] + 228 frame #42: 0x00007fffa01e44cd AppKit`__18-[NSWindow _close]_block_invoke + 82 frame #43: 0x00007fffa01e442c AppKit`-[NSWindow _close] + 365 frame #44: 0x00000001001b1394 Emacs`x_free_frame_resources(f=0x0000000103a1cc18) + 292 at nsterm.m:1656 [opt] frame #45: 0x00000001001b13d6 Emacs`x_destroy_window(f=0x0000000103a1cc18) + 22 at nsterm.m:1672 [opt] frame #46: 0x000000010001046c Emacs`delete_frame(frame=, force=) + 1260 at frame.c:1718 [opt] frame #47: 0x000000010013f168 Emacs`funcall_subr(subr=0x0000000100228e20, numargs=0, args=) + 248 at eval.c:2820 [opt] frame #48: 0x000000010013e75f Emacs`Ffuncall(nargs=, args=) + 735 at eval.c:2743 [opt] frame #49: 0x0000000100137ff6 Emacs`Ffuncall_interactively(nargs=, args=) + 70 at callint.c:252 [opt] frame #50: 0x000000010013e75f Emacs`Ffuncall(nargs=, args=) + 735 at eval.c:2743 [opt] frame #51: 0x00000001001395dd Emacs`Fcall_interactively(function=, record_flag=0, keys=) + 5581 at callint.c:843 [opt] frame #52: 0x000000010013f17c Emacs`funcall_subr(subr=0x000000010058c880, numargs=3, args=) + 268 at eval.c:2823 [opt] frame #53: 0x000000010013e75f Emacs`Ffuncall(nargs=, args=) + 735 at eval.c:2743 [opt] frame #54: 0x000000010017ae3a Emacs`exec_byte_code(bytestr=, vector=, maxdepth=, args_template=4102, nargs=, args=) + 1738 at bytecode.c:641 [opt] frame #55: 0x000000010013e700 Emacs`Ffuncall(nargs=, args=) + 640 at eval.c:2745 [opt] frame #56: 0x000000010013ee3d Emacs`call1(fn=, arg1=) + 45 at eval.c:2605 [opt] frame #57: 0x00000001000bfb17 Emacs`command_loop_1 + 1895 at keyboard.c:1484 [opt] frame #58: 0x000000010013cf67 Emacs`internal_condition_case(bfun=(Emacs`command_loop_1 at keyboard.c:1261), handlers=, hfun=(Emacs`cmd_error at keyboard.c:940)) + 87 at eval.c:1324 [opt] frame #59: 0x00000001000ce970 Emacs`command_loop_2(ignore=) + 48 at keyboard.c:1112 [opt] frame #60: 0x000000010013c82e Emacs`internal_catch(tag=, func=(Emacs`command_loop_2 at keyboard.c:1108), arg=0) + 78 at eval.c:1091 [opt] frame #61: 0x00000001000beaae Emacs`command_loop + 158 at keyboard.c:1091 [opt] frame #62: 0x00000001000be9bf Emacs`recursive_edit_1 + 111 at keyboard.c:697 [opt] frame #63: 0x00000001000bebf3 Emacs`Frecursive_edit + 227 at keyboard.c:768 [opt] frame #64: 0x00000001000bd7d8 Emacs`main(argc=0, argv=) + 6072 at emacs.c:1683 [opt] frame #65: 0x00007fffb7973255 libdyld.dylib`start + 1