bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20854: Starting Emacs on Mac


From: Barry OReilly
Subject: bug#20854: Starting Emacs on Mac
Date: Sat, 20 Jun 2015 00:51:46 +0000 (UTC)

In GNU Emacs 24.5.2 (x86_64-apple-darwin14.3.0, NS apple-appkit-1347.57)
 of 2015-06-10 on REDACTED
Windowing system distributor `Apple', version 10.3.1347
Configured using:
 `configure --with-ns'

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

When I start NextStep graphical Emacs from the terminal by:

  ./src/emacs /tmp/foo.txt

An Emacs window opens, but all key strokes are sent to the terminal instead of Emacs. Is this a known quirk? Opening the nextstep/Emacs.app works fine, so this is not an issue in practice.

I'm filing a bug because you might want to know that Emacs crashed one time I started Emacs this way.

: emacs /tmp/foo.txt
Fatal error 6: Abort trapAbort trap: 6 (core dumped)

(lldb) bt
* thread #1: tid = 0x0000, 0x00007fff9007cc82 libsystem_kernel.dylib`__kill + 10, stop reason = signal SIGSTOP
  * frame #0: 0x00007fff9007cc82 libsystem_kernel.dylib`__kill + 10
    frame #1: 0x00000001000bd054 emacs`terminate_due_to_signal(sig=6, backtrace_limit=<unavailable>) + 148 at emacs.c:376
    frame #2: 0x00000001000daa63 emacs`emacs_abort + 19 at sysdep.c:2131
    frame #3: 0x00000001001b0eec emacs`ns_term_shutdown(sig=<unavailable>) + 124 at nsterm.m:4472
    frame #4: 0x00000001000bd24b emacs`shut_down_emacs(sig=6, stuff=<unavailable>) + 283 at emacs.c:2046
    frame #5: 0x00000001000bd019 emacs`terminate_due_to_signal(sig=6, backtrace_limit=40) + 89 at emacs.c:360
    frame #6: 0x00000001000daa63 emacs`emacs_abort + 19 at sysdep.c:2131
    frame #7: 0x00000001001bcc1d emacs`ns_read_socket(terminal=<unavailable>, hold_quit=<unavailable>) + 717 at nsterm.m:3653
    frame #8: 0x00000001000c407f emacs`gobble_input + 255 at keyboard.c:6851
    frame #9: 0x00000001000c05c5 emacs`totally_unblock_input + 5 at keyboard.c:7091
    frame #10: 0x00000001000c05c0 emacs`totally_unblock_input [inlined] process_pending_signals + 6 at keyboard.c:7105
    frame #11: 0x00000001000c05ba emacs`totally_unblock_input at keyboard.c:7120
    frame #12: 0x00000001000c05ba emacs`totally_unblock_input + 42 at keyboard.c:7148
    frame #13: 0x00000001000bcfde emacs`terminate_due_to_signal(sig=15, backtrace_limit=40) + 30 at emacs.c:350
    frame #14: 0x00000001000dc313 emacs`deliver_fatal_signal [inlined] handle_fatal_signal(sig=15) + 131 at sysdep.c:1630
    frame #15: 0x00000001000dc30c emacs`deliver_fatal_signal at sysdep.c:1570
    frame #16: 0x00000001000dc30c emacs`deliver_fatal_signal(sig=<unavailable>) + 124 at sysdep.c:1636
    frame #17: 0x00007fff94d1ff1a libsystem_platform.dylib`_sigtramp + 26
    frame #18: 0x00007fff900784df libsystem_kernel.dylib`mach_msg_trap + 11
    frame #19: 0x00007fff9007770e libsystem_kernel.dylib`mach_msg + 246
    frame #20: 0x00007fff86a60eb4 CoreFoundation`__CFRunLoopServiceMachPort + 212
    frame #21: 0x00007fff86a6037b CoreFoundation`__CFRunLoopRun + 1371
    frame #22: 0x00007fff86a5fbd8 CoreFoundation`CFRunLoopRunSpecific + 296
    frame #23: 0x00007fff8c56756f HIToolbox`RunCurrentEventLoopInMode + 235
    frame #24: 0x00007fff8c5672ea HIToolbox`ReceiveNextEventCommon + 431
    frame #25: 0x00007fff8c56712b HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
    frame #26: 0x00007fff85a779bb AppKit`_DPSNextEvent + 978
    frame #27: 0x00007fff85a76f68 AppKit`-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
    frame #28: 0x00007fff85a6cbf3 AppKit`-[NSApplication run] + 594
    frame #29: 0x00000001001b1094 emacs`-[EmacsApp run](self=0x00000001012073d0, _cmd=<unavailable>) + 356 at nsterm.m:4510
    frame #30: 0x00000001001afc89 emacs`ns_select(nfds=<unavailable>, readfds=0x00007fff5fbfee30, writefds=0x00007fff5fbfedb0, exceptfds=0x0000000000000000, timeout=<unavailable>, sigmask=0x0000000000000000) + 809 at nsterm.m:3763
    frame #31: 0x0000000100183724 emacs`wait_reading_process_output(time_limit=<unavailable>, nsecs=<unavailable>, read_kbd=-1, do_display=true, wait_for_cell=4320145466, wait_proc=0x0000000000000000, just_wait_proc=<unavailable>) + 2212 at process.c:4604
    frame #32: 0x00000001000c7864 emacs`read_decoded_event_from_main_queue + 125 at keyboard.c:3907
    frame #33: 0x00000001000c77e7 emacs`read_decoded_event_from_main_queue [inlined] read_event_from_main_queue(end_time=<unavailable>, local_getcjmp=0x00007fff5fbff440) + 2037 at keyboard.c:2247
    frame #34: 0x00000001000c6ff2 emacs`read_decoded_event_from_main_queue(end_time=<unavailable>, local_getcjmp=0x00007fff5fbff440, prev_event=4320145466, used_mouse_menu=0x00007fff5fbff66f) + 210 at keyboard.c:2311
    frame #35: 0x00000001000c5dbf emacs`read_char(commandflag=1, map=4513688838, prev_event=4320145466, used_mouse_menu=0x00007fff5fbff66f, end_time=0x0000000000000000) + 6015 at keyboard.c:2896
    frame #36: 0x00000001000c257e emacs`read_key_sequence(keybuf=<unavailable>, bufsize=30, prompt=<unavailable>, dont_downcase_last=<unavailable>, can_return_switch_frame=<unavailable>, fix_current_buffer=<unavailable>, prevent_redisplay=<unavailable>) + 1822 at keyboard.c:9089
    frame #37: 0x00000001000c1c34 emacs`command_loop_1 + 5236 at keyboard.c:1453
    frame #38: 0x000000010013ea1b emacs`internal_condition_case(bfun=0x00000001000c07c0, handlers=<unavailable>, hfun=<unavailable>) + 251 at eval.c:1348
    frame #39: 0x00000001000d236e emacs`command_loop_2(ignore=<unavailable>) + 62 at keyboard.c:1178
    frame #40: 0x000000010013e3c3 emacs`internal_catch(tag=<unavailable>, func=0x00000001000d2330, arg=4320145466) + 243 at eval.c:1112
    frame #41: 0x00000001000bfd9d emacs`recursive_edit_1 + 70 at keyboard.c:1157
    frame #42: 0x00000001000bfd57 emacs`recursive_edit_1 + 151 at keyboard.c:778
    frame #43: 0x00000001000bff4c emacs`Frecursive_edit + 236 at keyboard.c:849
    frame #44: 0x00000001000be8b8 emacs`main(argc=0, argv=0x00007fff5fbffb40) + 5624 at emacs.c:1642
    frame #45: 0x00007fff9388f5c9 libdyld.dylib`start + 1

I don't remember what I did after starting Emacs. It's possible I did Ctrl-C, but I'm not sure.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]