all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Mastro <john.b.mastro@gmail.com>
To: Alan Third <alan@idiocy.org>
Cc: 28661@debbugs.gnu.org, Kevin Lin <lin.kevin.k@gmail.com>
Subject: bug#28661: 25.3; closing fullscreen frame on macOS 10.13 High Sierra causes crash
Date: Mon, 2 Oct 2017 14:27:51 -0700	[thread overview]
Message-ID: <CAOj2CQRjN4CDPKHTy2rihm_fwMGKQbFeaFedii2+3QoB6UbLcw@mail.gmail.com> (raw)
In-Reply-To: <20171001230140.GA49968@breton.holly.idiocy.org>

[-- Attachment #1: Type: text/plain, Size: 572 bytes --]

Alan Third <alan@idiocy.org> wrote:
> On Sun, Oct 01, 2017 at 03:56:31PM -0700, John Mastro wrote:
>> Alan Third <alan@idiocy.org> wrote:
>> > Alternatively, is there anyone else out there using 10.13 and a recent
>> > version of Emacs who can confirm? I’m still on 10.12 and will be for
>> > the foreseeable future.
>>
>> I see the crash on 10.13 at commit ee3024c (today)
>
> Thanks.
>
> Are either of you able to provide a backtrace from a debugger?

Sure, I've attached a backtrace from lldb. Let me know if any other
info would help.

        John

[-- Attachment #2: backtrace.txt --]
[-- Type: text/plain, Size: 10848 bytes --]

jbm@nebula:~/src/emacs/> lldb nextstep/Emacs.app/Contents/MacOS/Emacs
(lldb) target create "nextstep/Emacs.app/Contents/MacOS/Emacs"
Current executable set to 'nextstep/Emacs.app/Contents/MacOS/Emacs' (x86_64).
(lldb) r -Q
Process 24517 launched: '/Users/jbm/src/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs' (x86_64)
2017-10-02 14:22:45.260803-0700 Emacs[24517:949423] MessageTracer: load_domain_whitelist_search_tree:73: Search tree file's format version number (0) is not supported
2017-10-02 14:22:45.260834-0700 Emacs[24517:949423] MessageTracer: Falling back to default whitelist
Emacs was compiled with optimization - stepping may behave oddly; variables may not be available.
Process 24517 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x00000001001b629d Emacs`-[EmacsView windowWillResize:toSize:](self=0x000000010c33a700, _cmd=<unavailable>, sender=<unavailable>, frameSize=(width = 1280, height = 800)) at nsterm.m:6912 [opt]
   6909
   6910	  if (! [self isFullscreen])
   6911	    {
-> 6912	      extra = FRAME_NS_TITLEBAR_HEIGHT (emacsframe)
   6913	        + FRAME_TOOLBAR_HEIGHT (emacsframe);
   6914	    }
   6915
Target 0: (Emacs) stopped.
(lldb) thread backtrace all
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x00000001001b629d Emacs`-[EmacsView windowWillResize:toSize:](self=0x000000010c33a700, _cmd=<unavailable>, sender=<unavailable>, frameSize=(width = 1280, height = 800)) at nsterm.m:6912 [opt]
    frame #1: 0x00007fff4f533f2d AppKit`-[NSWindow _confirmSize:force:] + 328
    frame #2: 0x00007fff4ffea5e6 AppKit`-[NSWindow(NSFullScreen) _frameForFullScreenModeInRect:] + 702
    frame #3: 0x00007fff4ffea2fc AppKit`-[NSWindow(NSFullScreen) _frameForFullScreenMode] + 98
    frame #4: 0x00007fff4f9e91f8 AppKit`-[_NSFullScreenDetachedToolbarMenuBarCompanionController resizeContentWindow] + 78
    frame #5: 0x00007fff4f5988f4 AppKit`NSPerformVisuallyAtomicChange + 146
    frame #6: 0x00007fff4f9e93a8 AppKit`-[_NSFullScreenDetachedToolbarMenuBarCompanionController layout] + 106
    frame #7: 0x00007fff4f49a5eb AppKit`-[NSThemeFrame _updateTitlebarContainerViewFrameIfNecessary] + 473
    frame #8: 0x00007fff4fcc9a23 AppKit`-[NSThemeFrame _reshapeContentAndToolbarView:withOldToolbarFrameSize:resizeWindow:animate:] + 697
    frame #9: 0x00007fff4f531b18 AppKit`-[NSThemeFrame _toolbarFrameSizeChanged:oldSize:] + 66
    frame #10: 0x00007fff4f6324d0 AppKit`-[NSWindow _toolbarFrameSizeChanged:oldSize:] + 93
    frame #11: 0x00007fff4f507b7e AppKit`-[NSToolbarView _layoutDirtyItemViewersAndTileToolbar] + 5826
    frame #12: 0x00007fff4f753f41 AppKit`-[NSToolbar _dropFullScreenMetrics] + 62
    frame #13: 0x00007fff4ffeb8ae AppKit`-[NSWindow(NSFullScreen) _cleanupToolbarFromFullScreen] + 67
    frame #14: 0x00007fff4ffea158 AppKit`-[NSWindow(NSFullScreen) _cleanupAndRemoveFullScreenContentController] + 78
    frame #15: 0x00007fff4ffebaed AppKit`-[NSWindow(NSFullScreen) _fullScreenStatusChanged] + 374
    frame #16: 0x00007fff4f678f1a AppKit`__25-[NSWindow setStyleMask:]_block_invoke + 1977
    frame #17: 0x00007fff4f5988f4 AppKit`NSPerformVisuallyAtomicChange + 146
    frame #18: 0x00007fff4f678718 AppKit`-[NSWindow setStyleMask:] + 191
    frame #19: 0x00007fff4faf4d26 AppKit`-[_NSWindowExitFullScreenTransitionController setupWindowForAfterFullScreenExit] + 106
    frame #20: 0x00007fff4fddd478 AppKit`__46-[_NSExitFullScreenTransitionController start]_block_invoke.268 + 57
    frame #21: 0x00007fff793857a2 libdispatch.dylib`_dispatch_call_block_and_release + 12
    frame #22: 0x00007fff7937df64 libdispatch.dylib`_dispatch_client_callout + 8
    frame #23: 0x00007fff79389545 libdispatch.dylib`_dispatch_main_queue_callback_4CF + 1148
    frame #24: 0x00007fff51e94869 CoreFoundation`__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
    frame #25: 0x00007fff51e56aea CoreFoundation`__CFRunLoopRun + 2586
    frame #26: 0x00007fff51e55e43 CoreFoundation`CFRunLoopRunSpecific + 483
    frame #27: 0x00007fff51175866 HIToolbox`RunCurrentEventLoopInMode + 286
    frame #28: 0x00007fff511754df HIToolbox`ReceiveNextEventCommon + 366
    frame #29: 0x00007fff51175354 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 64
    frame #30: 0x00007fff4f47344f AppKit`_DPSNextEvent + 2085
    frame #31: 0x00007fff4fc08508 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
    frame #32: 0x00007fff4f46825d AppKit`-[NSApplication run] + 764
    frame #33: 0x00000001001b11b5 Emacs`-[EmacsApp run](self=0x00000001016046f0, _cmd=<unavailable>) at nsterm.m:5332 [opt]
    frame #34: 0x00000001001bebbd Emacs`ns_read_socket(terminal=<unavailable>, hold_quit=<unavailable>) at nsterm.m:4359 [opt]
    frame #35: 0x00000001000bd335 Emacs`gobble_input at keyboard.c:6916 [opt]
    frame #36: 0x00000001000c5d17 Emacs`Finput_pending_p [inlined] get_input_pending(flags=3) at keyboard.c:6837 [opt]
    frame #37: 0x00000001000c5ce4 Emacs`Finput_pending_p(check_timers=<unavailable>) at keyboard.c:10004 [opt]
    frame #38: 0x0000000100137d2f Emacs`funcall_subr(subr=0x000000010022e398, numargs=1, args=<unavailable>) at eval.c:2841 [opt]
    frame #39: 0x000000010013722f Emacs`Ffuncall(nargs=<unavailable>, args=<unavailable>) at eval.c:2766 [opt]
    frame #40: 0x00000001001747a0 Emacs`exec_byte_code(bytestr=<unavailable>, vector=4297386408, maxdepth=<unavailable>, args_template=3078, nargs=1, args=<unavailable>) at bytecode.c:629 [opt]
    frame #41: 0x00000001001371d0 Emacs`Ffuncall(nargs=<unavailable>, args=<unavailable>) at eval.c:0 [opt]
    frame #42: 0x00000001001747a0 Emacs`exec_byte_code(bytestr=<unavailable>, vector=4298053776, maxdepth=<unavailable>, args_template=3078, nargs=3, args=<unavailable>) at bytecode.c:629 [opt]
    frame #43: 0x00000001001371d0 Emacs`Ffuncall(nargs=<unavailable>, args=<unavailable>) at eval.c:0 [opt]
    frame #44: 0x0000000100130bc6 Emacs`Ffuncall_interactively(nargs=<unavailable>, args=<unavailable>) at callint.c:252 [opt]
    frame #45: 0x000000010013722f Emacs`Ffuncall(nargs=<unavailable>, args=<unavailable>) at eval.c:2766 [opt]
    frame #46: 0x0000000100136d3f Emacs`Fapply(nargs=<unavailable>, args=0x00007ffeefbff180) at eval.c:2386 [opt]
    frame #47: 0x00000001001310d9 Emacs`Fcall_interactively(function=<unavailable>, record_flag=0, keys=4345466269) at callint.c:389 [opt]
    frame #48: 0x0000000100137d53 Emacs`funcall_subr(subr=0x000000010058e130, numargs=3, args=<unavailable>) at eval.c:2846 [opt]
    frame #49: 0x000000010013722f Emacs`Ffuncall(nargs=<unavailable>, args=<unavailable>) at eval.c:2766 [opt]
    frame #50: 0x00000001001747a0 Emacs`exec_byte_code(bytestr=<unavailable>, vector=4298054608, maxdepth=<unavailable>, args_template=4102, nargs=1, args=<unavailable>) at bytecode.c:629 [opt]
    frame #51: 0x00000001001371d0 Emacs`Ffuncall(nargs=<unavailable>, args=<unavailable>) at eval.c:0 [opt]
    frame #52: 0x000000010013794c Emacs`call1(fn=<unavailable>, arg1=<unavailable>) at eval.c:2617 [opt]
    frame #53: 0x00000001000ba6fa Emacs`command_loop_1 at keyboard.c:1486 [opt]
    frame #54: 0x0000000100135a62 Emacs`internal_condition_case(bfun=(Emacs`command_loop_1 at keyboard.c:1263), handlers=<unavailable>, hfun=(Emacs`cmd_error at keyboard.c:942)) at eval.c:1332 [opt]
    frame #55: 0x00000001000c8f70 Emacs`command_loop_2(ignore=<unavailable>) at keyboard.c:1114 [opt]
    frame #56: 0x00000001001352e9 Emacs`internal_catch(tag=<unavailable>, func=(Emacs`command_loop_2 at keyboard.c:1110), arg=0) at eval.c:1097 [opt]
    frame #57: 0x00000001000b96be Emacs`command_loop at keyboard.c:1093 [opt]
    frame #58: 0x00000001000b95cf Emacs`recursive_edit_1 at keyboard.c:699 [opt]
    frame #59: 0x00000001000b9803 Emacs`Frecursive_edit at keyboard.c:770 [opt]
    frame #60: 0x00000001000b8486 Emacs`main(argc=0, argv=0x00007ffeefbff900) at emacs.c:1713 [opt]
    frame #61: 0x00007fff793b7145 libdyld.dylib`start + 1
  thread #2
    frame #0: 0x00007fff795076da libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff7964126f libsystem_pthread.dylib`_pthread_wqthread + 1552
    frame #2: 0x00007fff79640c4d libsystem_pthread.dylib`start_wqthread + 13
  thread #3
    frame #0: 0x00007fff795076da libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff7964106a libsystem_pthread.dylib`_pthread_wqthread + 1035
    frame #2: 0x00007fff79640c4d libsystem_pthread.dylib`start_wqthread + 13
  thread #4
    frame #0: 0x00007fff795076da libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff7964126f libsystem_pthread.dylib`_pthread_wqthread + 1552
    frame #2: 0x00007fff79640c4d libsystem_pthread.dylib`start_wqthread + 13
  thread #5, name = 'gmain'
    frame #0: 0x00007fff79507142 libsystem_kernel.dylib`__select + 10
    frame #1: 0x0000000100998535 libglib-2.0.0.dylib`g_poll + 428
    frame #2: 0x000000010098c465 libglib-2.0.0.dylib`g_main_context_iterate + 337
    frame #3: 0x000000010098c514 libglib-2.0.0.dylib`g_main_context_iteration + 55
    frame #4: 0x000000010098d5bd libglib-2.0.0.dylib`glib_worker_main + 30
    frame #5: 0x00000001009ace3c libglib-2.0.0.dylib`g_thread_proxy + 90
    frame #6: 0x00007fff796416c1 libsystem_pthread.dylib`_pthread_body + 340
    frame #7: 0x00007fff7964156d libsystem_pthread.dylib`_pthread_start + 377
    frame #8: 0x00007fff79640c5d libsystem_pthread.dylib`thread_start + 13
  thread #7
    frame #0: 0x00007fff79507142 libsystem_kernel.dylib`__select + 10
    frame #1: 0x00000001001b26d1 Emacs`-[EmacsApp fd_handler:](self=<unavailable>, _cmd=<unavailable>, unused=<unavailable>) at nsterm.m:5798 [opt]
    frame #2: 0x00007fff53f106d8 Foundation`__NSThread__start__ + 1197
    frame #3: 0x00007fff796416c1 libsystem_pthread.dylib`_pthread_body + 340
    frame #4: 0x00007fff7964156d libsystem_pthread.dylib`_pthread_start + 377
    frame #5: 0x00007fff79640c5d libsystem_pthread.dylib`thread_start + 13
  thread #8
    frame #0: 0x00007fff79640c40 libsystem_pthread.dylib`start_wqthread
  thread #9, name = 'com.apple.NSEventThread'
    frame #0: 0x00007fff794fde76 libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007fff794fd390 libsystem_kernel.dylib`mach_msg + 60
    frame #2: 0x00007fff51e57475 CoreFoundation`__CFRunLoopServiceMachPort + 341
    frame #3: 0x00007fff51e567c7 CoreFoundation`__CFRunLoopRun + 1783
    frame #4: 0x00007fff51e55e43 CoreFoundation`CFRunLoopRunSpecific + 483
    frame #5: 0x00007fff4f5b0c49 AppKit`_NSEventThread + 184
    frame #6: 0x00007fff796416c1 libsystem_pthread.dylib`_pthread_body + 340
    frame #7: 0x00007fff7964156d libsystem_pthread.dylib`_pthread_start + 377
    frame #8: 0x00007fff79640c5d libsystem_pthread.dylib`thread_start + 13
(lldb)

  reply	other threads:[~2017-10-02 21:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-01 15:43 bug#28661: 25.3; closing fullscreen frame on macOS 10.13 High Sierra causes crash Kevin Lin
2017-10-01 19:33 ` Alan Third
2017-10-01 22:07   ` Kevin Lin
2017-10-01 22:56   ` John Mastro
2017-10-01 23:01     ` Alan Third
2017-10-02 21:27       ` John Mastro [this message]
2017-10-02 22:34         ` Alan Third
2017-10-05  0:44           ` John Mastro
2017-10-07 15:08             ` Alan Third
2017-10-07 17:46               ` John Mastro
2017-10-07 20:56                 ` Alan Third
2017-10-07 22:50                   ` Kevin Lin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOj2CQRjN4CDPKHTy2rihm_fwMGKQbFeaFedii2+3QoB6UbLcw@mail.gmail.com \
    --to=john.b.mastro@gmail.com \
    --cc=28661@debbugs.gnu.org \
    --cc=alan@idiocy.org \
    --cc=lin.kevin.k@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.