This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Bug: run emacs: fatal error reading the windows environment


Hi All,

After upgrading cygwin, my emacs shortcut stopped working and I
discovered that ``run emacs'' yielded the error:

  12 [main] emacs 900 C:\cygwin\bin\emacs.exe: *** fatal error -
  internal error reading the windows environment --
  too many environment variables?

Is this a known problem, and if not what can I do to help figure it out?

I saved C:\cygwin\ (by renaming it) on a different machine and
reinstalled cygwin from scratch, and this problem appeared on it as
well.  Restoring the old installation fixes things.

Whatever caused the problem does not seem to be emacs or run
themselves, as both old and new versions appear to be the same:
emacs 21.2-13, run 1.1.6-1.  I assume that an upgraded .dll could be
the problem, and I could start swapping them out for testing.

Nothing special has been done with the windows environment on these
machines.  With the old, working cygwin in place, I get:

$ env | wc
     53      90    2443
$ run env | wc
     53      90    2447

and with the new, broken cygwin:

$ env | wc
     53      90    2443
$ run env | wc
      6      12     385

The only environment variables returned from the last call being:
  PATH
  SYSTEMDRIVE
  SYSTEMROOT
  WINDIR
  TERM
  HOME

Full output of env and run env on the effected system follow.

Thanks for any insight here,
Kirk

``run env'' on the new, broken cygwin:
------------------------------------ 8< ------------------------------------
PATH=/usr/local/bin:/usr/bin:/usr/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/Microsoft SQL Server/80/Tools/BINN:/cygdrive/c/Program Files/Subversion/bin:/usr/X11R6/bin:/usr/X11R6/bin
SYSTEMDRIVE=C:
SYSTEMROOT=C:\WINDOWS
WINDIR=C:\WINDOWS
TERM=cygwin
HOME=/cygdrive/c/Documents and Settings/khilliard
------------------------------------ >8 ------------------------------------

``env'' on the new, broken cygwin:
------------------------------------ 8< ------------------------------------
HOMEPATH=\Documents and Settings\khilliard
MANPATH=/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man
APPDATA=C:\Documents and Settings\khilliard\Application Data
HOSTNAME=something01
TERM=xterm
PROCESSOR_IDENTIFIER=x86 Family 6 Model 6 Stepping 2, AuthenticAMD
WINDIR=C:\WINDOWS
WINDOWID=8388622
OLDPWD=/usr/bin
USERDOMAIN=SMT
OS=Windows_NT
ALLUSERSPROFILE=C:\Documents and Settings\All Users
USER=khilliard
XTERM_SHELL=/bin/bash
APR_ICONV_PATH=C:\Program Files\Subversion\iconv
!::=::\
TEMP=/cygdrive/c/DOCUME~1/KHILLI~1/LOCALS~1/Temp
COMMONPROGRAMFILES=C:\Program Files\Common Files
TERMCAP=xterm-r6|xterm|xterm X11R6 version:am:km:mi:ms:xn:co#80:it#8:li#24:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:im=\E[4h:is=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kd=\EOB:ke=\E[?1l\E>:kh=\E[1~:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:ta=^I:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[m:up=\E[A:us=\E[4m:kb=\010:
USERNAME=khilliard
PAGER=less
PROCESSOR_LEVEL=6
PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/Microsoft SQL Server/80/Tools/BINN:/cygdrive/c/Program Files/Subversion/bin:/usr/X11R6/bin:/usr/X11R6/bin
FP_NO_HOST_CHECK=NO
PWD=/cygdrive/c/Documents and Settings/khilliard
SYSTEMDRIVE=C:
EDITOR=emacs
USERPROFILE=C:\Documents and Settings\khilliard
CLIENTNAME=Console
PS1=\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ 
LOGONSERVER=\\PAPERBOY
PROCESSOR_ARCHITECTURE=x86
XTERM_VERSION=Cygwin 6.8.2.0(202)
SHLVL=1
HOME=/cygdrive/c/Documents and Settings/khilliard
USERDNSDOMAIN=SOMETHING.COM
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
HOMEDRIVE=C:
COMSPEC=C:\WINDOWS\system32\cmd.exe
LESS=-MiQ
LOGNAME=khilliard
TMP=/cygdrive/c/DOCUME~1/KHILLI~1/LOCALS~1/Temp
SYSTEMROOT=C:\WINDOWS
PRINTER=Microsoft Office Document Image Writer
CVS_RSH=/bin/ssh
PROCESSOR_REVISION=0602
MAKE_MODE=unix
INFOPATH=/usr/local/info:/usr/share/info:/usr/info:
PROGRAMFILES=C:\Program Files
DISPLAY=127.0.0.1:0.0
NUMBER_OF_PROCESSORS=1
COMPUTERNAME=SOMETHING01
_=/usr/bin/env
------------------------------------ >8 ------------------------------------

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]