emacs under X11 forwarding: Fatal error (12)Bad system call

Oleksandr Gavenko gavenkoa@gmail.com
Wed Oct 10 18:51:00 GMT 2012


I setup WindowsXP in VirtualBox, enable X11 forwarding and can run xterm from
Cygwin on Debian box.

When I try to run "emacs-X11 -q" I get:

  Fatal error (12)Bad system call

while "emacs -nw" started successfully.

Last lines from "strace emacs-X11":

  132 256660554 [main] emacs-X11 1760 fhandler_base::close: closing '/usr/share/emacs/24.2/etc/images/icons/hicolor/scalable/apps/emacs.svg' handle 0x2C4
  174 256660728 [main] emacs-X11 1760 close: 0 = close(6)
498494 257159222 [main] emacs-X11 1760 shmget: shmget (key = 0, size = 393216, shmflg = 0x380)
  860 257160082 [main] emacs-X11 1760 getpid: 1760 = getpid()
  642 257160724 [main] emacs-X11 1760 transport_layer_pipes::connect: Try to connect to named pipe: \\.\pipe\cygwin-ae37058a08a5acc4-lpc
  241 257160965 [main] emacs-X11 1760 transport_layer_pipes::connect: Error opening the pipe (2)
  862 257161827 [main] emacs-X11 1760 client_request::make_request: cygserver un-available
  120 257161947 [main] emacs-X11 1760 shmget: -1 [88] = shmget ()
 1142 257163089 [main] emacs-X11 1760 __set_errno: int shmget(key_t, size_t, int):356 setting errno 88
  126 257163215 [main] emacs-X11 1760 kill0: kill (1760, 12)
  120 257163335 [main] emacs-X11 1760 sig_send: sendsig 0x780, pid 1760, signal 12, its_me 1
  136 257163471 [main] emacs-X11 1760 sig_send: wakeup 0x2C0
  133 257163604 [main] emacs-X11 1760 sig_send: Waiting for pack.wakeup 0x2C0
  622 257164226 [sig] emacs-X11 1760 sigpacket::process: signal 12 processing
  112 257164338 [sig] emacs-X11 1760 sigpacket::process: tls 0x0, use_tls 0x22CE64
   95 257164433 [sig] emacs-X11 1760 _cygtls::find_tls: signal 12
  102 257164535 [sig] emacs-X11 1760 sigpacket::process: signal 12, about to call 0x4DF2A0
   95 257164630 [sig] emacs-X11 1760 setup_handler: controlled interrupt. stackptr 0x22DA34, stack 0x22DA30, stackptr[-1] 0x67DC0041
   98 257164728 [sig] emacs-X11 1760 proc_subproc: args: 5, 1
   96 257164824 [sig] emacs-X11 1760 proc_subproc: clear waiting threads
   92 257164916 [sig] emacs-X11 1760 proc_subproc: finished clearing
   92 257165008 [sig] emacs-X11 1760 proc_subproc: returning 1
   94 257165102 [sig] emacs-X11 1760 _cygtls::interrupt_setup: armed signal_arrived 0x740, signal 12, res 1
   93 257165195 [sig] emacs-X11 1760 setup_handler: signal 12 delivered
   92 257165287 [sig] emacs-X11 1760 sigpacket::process: returning 1
   95 257165382 [sig] emacs-X11 1760 wait_sig: signalling pack.wakeup 0x2C0
  111 257165493 [main] emacs-X11 1760 set_process_mask_delta: oldmask 0x0, newmask 0x800, deltamask 0x800
  148 257165641 [main] emacs-X11 1760 sigaction_worker: signal 12, newact 0x2294C4 (handler 0x0), oa 0x4DF2A0
  122 257165763 [main] emacs-X11 1760 sigaction: 0 = sigaction(12, 0x2294C4, 0x2294B8)
  135 257165898 [main] emacs-X11 1760 set_signal_mask: oldmask 0x800, newmask 0x2800, mask_bits 0x0
 1849 257167747 [main] emacs-X11 1760 pthread_sigmask: 1 = pthread_sigmask(2266272, 0x22948C, 0x2294B8)
  664 257168411 [main] emacs-X11 1760 setitimer: 0 = setitimer()
  137 257168548 [main] emacs-X11 1760 set_signal_mask: oldmask 0x2800, newmask 0x800, mask_bits 0x2000
  186 257168734 [main] emacs-X11 1760 pthread_sigmask: 2 = pthread_sigmask(2266272, 0x22948C, 0x0)
  189 257168923 [main] emacs-X11 1760 getpid: 1760 = getpid()
  206 257169129 [main] emacs-X11 1760 tcgetpgrp: 1696 = tcgetpgrp(0)
 1453 257170582 [main] emacs-X11 1760 fhandler_pty_slave::write: pty2, write(766
  472 257171054 [main] emacs-X11 1760 fhandler_pty_slave::write: (648): pty output_mutex (0x734): waiting -1 ms
  189 257171243 [main] emacs-X11 1760 fhandler_pty_slave::write: (648): pty output_mutex: acquired
Fatal error ( 1076 257172319 [main] emacs-X11 1760 fhandler_pty_slave::write: (683): pty output_mutex(0x734) released
  403 257172722 [main] emacs-X11 1760 write: 13 = write(2, 0x766FBE, 13)
 1239 257173961 [main] emacs-X11 1760 fhandler_pty_slave::write: pty2, write(2293AE, 2)
  162 257174123 [main] emacs-X11 1760 fhandler_pty_slave::write: (648): pty output_mutex (0x734): waiting -1 ms
  143 257174266 [main] emacs-X11 1760 fhandler_pty_slave::write: (648): pty output_mutex: acquired
12  247 257174513 [main] emacs-X11 1760 fhandler_pty_slave::write: (683): pty output_mutex(0x734) released
  132 257174645 [main] emacs-X11 1760 write: 2 = write(2, 0x2293AE, 2)
  330 257174975 [main] emacs-X11 1760 fhandler_pty_slave::write: pty2, write(766FCD, 1)
  136 257175111 [main] emacs-X11 1760 fhandler_pty_slave::write: (648): pty output_mutex (0x734): waiting -1 ms
  143 257175254 [main] emacs-X11 1760 fhandler_pty_slave::write: (648): pty output_mutex: acquired
)  133 257175387 [main] emacs-X11 1760 fhandler_pty_slave::write: (683): pty output_mutex(0x734) released
 1143 257176530 [main] emacs-X11 1760 write: 1 = write(2, 0x766FCD, 1)
  959 257177489 [main] emacs-X11 1760 set_signal_mask: oldmask 0x800, newmask 0x0, mask_bits 0x800
 3197 257180686 [main] emacs-X11 1760 pthread_sigmask: 2 = pthread_sigmask(2266336, 0x2294CC, 0xC)
  173 257180859 [main] emacs-X11 1760 getpid: 1760 = getpid()
  147 257181006 [main] emacs-X11 1760 kill0: kill (1760, 12)
  123 257181129 [main] emacs-X11 1760 sig_send: sendsig 0x780, pid 1760, signal 12, its_me 1
  141 257181270 [main] emacs-X11 1760 sig_send: wakeup 0x2C0
  126 257181396 [main] emacs-X11 1760 sig_send: Waiting for pack.wakeup 0x2C0
  170 257181566 [sig] emacs-X11 1760 sigpacket::process: signal 12 processing
   97 257181663 [sig] emacs-X11 1760 sigpacket::process: tls 0x0, use_tls 0x22CE64
   95 257181758 [sig] emacs-X11 1760 _cygtls::find_tls: signal 12
  164 257181922 [sig] emacs-X11 1760 _cygtls::signal_exit: about to call do_exit (C)
   94 257182016 [sig] emacs-X11 1760 do_exit: do_exit (12), exit_state 2
   94 257182110 [sig] emacs-X11 1760 void: 0x5842B0 = signal (20, 0x1)
   92 257182202 [sig] emacs-X11 1760 void: 0x4DF2A0 = signal (1, 0x1)
   92 257182294 [sig] emacs-X11 1760 void: 0x4E4F50 = signal (2, 0x1)
   54 257182348 [sig] emacs-X11 1760 void: 0x4E4F50 = signal (3, 0x1)
  222 257182570 [sig] emacs-X11 1760 fhandler_pty_slave::cleanup: /dev/pty2 closed, usecount 4
  160 257182730 [sig] emacs-X11 1760 fhandler_base::close_with_arch: line 1120:  /dev/pty2<0x61278AC8> usecount + -1 = 3
   96 257182826 [sig] emacs-X11 1760 fhandler_base::close_with_arch: not closing archetype
  205 257183031 [sig] emacs-X11 1760 fhandler_pty_slave::cleanup: /dev/pty2 closed, usecount 3
  122 257183153 [sig] emacs-X11 1760 fhandler_base::close_with_arch: line 1120:  /dev/pty2<0x61278AC8> usecount + -1 = 2
   94 257183247 [sig] emacs-X11 1760 fhandler_base::close_with_arch: not closing archetype
  184 257183431 [sig] emacs-X11 1760 fhandler_pty_slave::cleanup: /dev/pty2 closed, usecount 2
  151 257183582 [sig] emacs-X11 1760 fhandler_base::close_with_arch: line 1120:  /dev/pty2<0x61278AC8> usecount + -1 = 1
   94 257183676 [sig] emacs-X11 1760 fhandler_base::close_with_arch: not closing archetype
  309 257183985 [sig] emacs-X11 1760 fhandler_socket::close: 0 = fhandler_socket::close()
  187 257184172 [sig] emacs-X11 1760 fhandler_base::close: closing '/dev/fd/pipe:[4]' handle 0x430
  107 257184279 [sig] emacs-X11 1760 fhandler_base::close: closing 'pipe:[5]' handle 0x42C
  115 257184394 [sig] emacs-X11 1760 init_cygheap::close_ctty: closing cygheap->ctty 0x61278AC8
   97 257184491 [sig] emacs-X11 1760 fhandler_base::close_with_arch: closing passed in archetype, usecount 0
   99 257184590 [sig] emacs-X11 1760 fhandler_pty_slave::close: closing last open /dev/pty2 handle
  351 257184941 [sig] emacs-X11 1760 fhandler_console::free_console: freed console, res 1
  216 257185157 [sig] emacs-X11 1760 fhandler_pty_common::close: pty2 <0x724,0x71C> closing
  113 257185270 [sig] emacs-X11 1760 getpid: 1760 = getpid()
  210 257185480 [sig] emacs-X11 1760 sigproc_terminate: entering
   95 257185575 [sig] emacs-X11 1760 __set_errno: int sig_send(_pinfo*, siginfo_t&, _cygtls*):634 setting errno 11
   94 257185669 [sig] emacs-X11 1760 sig_send: returning 0x1 from sending signal -42
   94 257185763 [sig] emacs-X11 1760 proc_terminate: nprocs 0
   95 257185858 [sig] emacs-X11 1760 proc_terminate: leaving
  126 257185984 [sig] emacs-X11 1760 __to_clock_t: dwHighDateTime 0, dwLowDateTime 2311023088
   95 257186079 [sig] emacs-X11 1760 __to_clock_t: total 00000000 000386BE
   93 257186172 [sig] emacs-X11 1760 __to_clock_t: dwHighDateTime 0, dwLowDateTime 35651264
   92 257186264 [sig] emacs-X11 1760 __to_clock_t: total 00000000 00000DED
   94 257186358 [sig] emacs-X11 1760 pinfo::exit: Calling ExitProcess n 0xC, exitcode 0xC00

-- 
Best regards!


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list