help-emacs-windows
[Top][All Lists]
Advanced

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

Re: [h-e-w] Emacs failing to start


From: Eli Zaretskii
Subject: Re: [h-e-w] Emacs failing to start
Date: Sat, 20 Mar 2010 11:12:09 +0200

> From: Troy Daniels <address@hidden>
> Date: Fri, 19 Mar 2010 23:32:03 -0400
> Cc: address@hidden
> 
>   calls clearerr and returns*
>   calls msvcrt!clearerr from msvcrt..dll
> 
> * stepi stopped reporting that it was in the function, but went directly to
> the next function without every reporting that it was in the calling
> function.
> 
> At this point, it jumped to strerror.
> 
> (gdb) where
> #0  0x77c37420 in strerror () from C:\WINDOWS\system32\msvcrt.dll
> #1  0x0100124b in __mingw_CRTStartup ()
> #2  0x01001298 in mainCRTStartup ()
> #3  0x7c817077 in RegisterWaitForInputIdle ()
>    from C:\WINDOWS\system32\kernel32.dll
> #4  0x00000000 in ?? ()
> (gdb) info thread
> * 1 Thread 2796.0x634  0x77c37420 in strerror ()
>    from C:\WINDOWS\system32\msvcrt.dll
> 
> stepi about 20 times gets me to
> 
> (gdb) stepi
> 0x77c3745a in strerror () from C:\WINDOWS\system32\msvcrt.dll
> (gdb) stepi
> 0x77c409fd in msvcrt!clearerr () from C:\WINDOWS\system32\msvcrt.dll
> (gdb) where
> #0  0x77c409fd in msvcrt!clearerr () from C:\WINDOWS\system32\msvcrt.dll
> #1  0x0061006d in ?? ()
> #2  0x00730063 in ?? ()
> #3  0x00000001 in ?? ()
> #4  0x0083fed4 in ?? ()
> #5  0x0100223d in main ()

Looks like the call to strerror is from clearerr, so you didn't
actually return from clearerr yet.  If so, Emacs hangs in this line
from emacs.c:

  clearerr (stdin);

which would indicate that something is holding the standard input
handle of the Emacs process.  This could be the result of having
Cygwin installed and running Emacs from the Cygwin shell.

Can you try the following command, and see if it works?

 cmd.exe /c "start C:\cygwin\home\udalrich\emacs\emacs-23.1\bin\emacs.exe -Q"

If you can remove the Cygwin shell from PATH before running this
command, please do.

Btw, if you have Cygwin installed, why don't you use the Cygwin build
of Emacs?  In general, mixing Cygwin and native Windows executables in
the same environment is asking for trouble, because they are subtly
incompatible.




reply via email to

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