Re: 1.5.24: emacs hangs when started from ssh session

2007-10-22 Thread Andreas Gustafsson
Last week, I reported a problem with emacs 21.2-13:
 I just upgraded an old Cygwin installation to the current version, and
 now emacs hangs when I try to start it from within an ssh session.

FWIW, I just tried installing emacs version 22.1-3 instead, and it
doesn't hang.
-- 
Andreas Gustafsson, [EMAIL PROTECTED]

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



1.5.24: emacs hangs when started from ssh session

2007-10-19 Thread Andreas Gustafsson
Hello cygwinners,

I just upgraded an old Cygwin installation to the current version, and
now emacs hangs when I try to start it from within an ssh session.

To be precise, if I open a cygwin window on the Windows desktop and
type emacs there, it works fine, but if I log into cygwin from an
Unix machine using ssh and type emacs in the ssh session, the emacs
process hangs, consuming most of the CPU.

Here is a typescript of an ssh session illustrating the problem.  In
an attempt to construct a minimal test case, I have specified the
emacs command line option -nw to make sure emacs doesn't use X
(though it shouldn't in any case because this is the non-X version),
and -f kill-emacs to make emacs exit immediately after startup 
without having to manually type control-x control-c.  The problem
occurs whether these command line options are present or not.

  unix ~ $ ssh cygwin
  Last login: Fri Oct 19 14:10:35 2007 from 10.0.0.22

  [EMAIL PROTECTED] ~
  $ time emacs -nw -f kill-emacs
[nothing happens for more than 18 minutes; I give up and hit control-C]
  real18m26.024s
  user12m32.171s
  sys 0m0.015s

I tried to to debug the problem by running emacs under strace,
but got the following error:

  $ time strace -o strace.out emacs -nw -f kill-emacs
  emacs: standard input is not a tty

  real0m0.183s
  user0m0.015s
  sys 0m0.015s

Here are the versions of the packages involved:

  [EMAIL PROTECTED] ~
  $ cygcheck -c cygwin emacs openssh
  Cygwin Package Information
  Package  VersionStatus
  cygwin   1.5.24-2   OK
  emacs21.2-13OK
  openssh  4.7p1-2OK

The output of cygcheck -s -v -r is attached.  Any clues?
-- 
Andreas Gustafsson, [EMAIL PROTECTED]


Cygwin Configuration Diagnostics
Current System Time: Fri Oct 19 13:14:11 2007

Windows XP Professional Ver 5.1 Build 2600 Service Pack 2

Path:   c:\cygwin\usr\X11R6\bin
c:\cygwin\usr\local\bin
c:\cygwin\bin
c:\cygwin\bin
c:\Program Files\Java\jdk1.5.0_06\bin
c:\Python24\
c:\Perl\bin\
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
c:\cygwin\bin
c:\program files\microsoft visual studio\common\msdev98\bin
c:\Xilinx\bin\nt
c:\Program Files\Microsoft Visual Studio 8\Team Tools\Performance Tools\
c:\Program Files\Microsoft SQL Server\90\Tools\binn\
c:\cygwin\bin

Output from c:\cygwin\bin\id.exe (nontsec)
UID: 1005(gson) GID: 513(None)
0(root) 513(None)   544(Administrators) 545(Users)

Output from c:\cygwin\bin\id.exe (ntsec)
UID: 1005(gson) GID: 513(None)
0(root) 513(None)   544(Administrators) 545(Users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'gson'
PWD = '/home/gson'
CYGWIN = 'ntsec tty'
HOME = '/home/gson'
MAKE_MODE = 'unix'

HOMEPATH = '\cygwin\home\gson'
MANPATH = ':/usr/ssl/man'
TERM = 'xterm'
SHELL = '/bin/bash'
PROCESSOR_IDENTIFIER = 'x86 Family 15 Model 2 Stepping 9, GenuineIntel'
WINDIR = 'C:\WINDOWS'
SSH_CLIENT = '10.0.0.22 58992 22'
OLDPWD = '/home/gson'
USERDOMAIN = 'NT AUTHORITY'
SSH_TTY = '/dev/tty0'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
TEMP = '/cygdrive/c/WINDOWS/TEMP'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
USERNAME = 'SYSTEM'
PROCESSOR_LEVEL = '15'
MAIL = '/var/spool/mail/gson'
SYSTEMDRIVE = 'C:'
USERPROFILE = 'C:\Documents and Settings\gson'
TZ = 'FLEST-2FLEDT-3,M3.5.0/3,M10.5.0/4'
PS1 = '\[\033]0;\w\007
[EMAIL PROTECTED] \[\033[33m\w\033[0m\]
$ '
PROCESSOR_ARCHITECTURE = 'x86'
SHLVL = '1'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.pyo;.pyc;.pyw;.py'
HOMEDRIVE = 'c:'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
LOGNAME = 'gson'
TMP = '/cygdrive/c/WINDOWS/TEMP'
SYSTEMROOT = 'C:\WINDOWS'
PROCESSOR_REVISION = '0209'
SSH_CONNECTION = '10.0.0.22 58992 10.0.0.21 22'
PROGRAMFILES = 'C:\Program Files'
NUMBER_OF_PROCESSORS = '1'
COMPUTERNAME = 'GUITAR'
_ = '/usr/bin/cygcheck'
POSIXLY_CORRECT = '1'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = '/cygdrive'
  cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = 'c:\cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = 'c:\cygwin/bin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = 'c:\cygwin/lib'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd N/AN/A
b