Crash on startup in 2.1.1 under Windows 8.1 #464
Comments
|
P.S. Reverting to 2.0.3 using Cygwin installer fixed the problem, i.e. it starts up and seems to work correctly. |
|
I had seen a few reports on the cygwin mailing list; it's volatile for some users and I cannot reproduce it myself, though. However, there is one change that might cause this unpleasant trouble. |
|
The problem is that even though the binary I compile myself from the latest master (6811a75) does work, so does the version compiled here from the 2.1.1 commit (05b6035)... So it looks like there could be something problematic with the build of 2.1.1? Alternatively, perhaps it only crashes when ran for the first time (as I ran 2.0.3 since then), does it do anything special during the first run? FWIW I've built it with "gcc version 4.5.3 (GCC)" under i686-pc-cygwin. |
|
Same thing happened this afternoon with mintty 2.1.1 on CygWin 2.871 64 bit on Windows 7 x64 SP1: Exception: STATUS_ACCESS_VIOLATION at rip=7FEFB3A3430 I did the same thing as vadz, reverted to 2.0.3, and mintty is happy. Note that the 2.1.1 version had no problems displaying --version nor --help, so I guess something bad happens when it tries to allocate a pty. Would it be possible to add a mintty-debuginfo package to CygWin? I could try to compile mintty myself as suggested above. Do I need anything in addition to gcc, some libraries perhaps? gmake? |
|
I disabled the call to fork(), and after doing some investigations, I believe that something wrong goes on in some of the other threads. Running a debuggable version of mintty.exe through CygWin's gdb, stepping through the main thread, revealed this line at the top of the mintty window: /bin/bash: No such file or directory If I set the command line arguments to g:\cygwin64\bin\bash.exe, then I get a working terminal to some extent. bash complains about missing /tmp. I can type commands, but even /bin/ls is treated as ENOENT. Maybe the CygWin environment isn't properly initialised. |
|
The crash is somehow related to the fork() call. As soon as I reenabled that call, then mintty crashed and created the stack trace. The rIP address is the same as above, 0x7FEFB3A3430. |
|
Thanks for debugging. I suppose you mean the new fork() in winmain.c? That should only be called if mintty is started from a cygwin console window (Cygwin.bat environment within Windows console window). Is that the case? Any other specifics about your environment? |
|
FWIW I tried running the program from (Windows) Explorer and then from cmd.exe window when it crashed for me initially, so the bug is definitely not limited to the case when it runs from a Cygwin console. |
|
Oh, I forgot to write that I ran gdb and mintty from cmd.exe. Yes, I was referring to the fork() call at line 993 of winmain.c. |
|
I too have the crash with mintty 2.1.1 (x86_64-pc-cygwin). But mine seems to occur only when starting mintty in a remote desktop session. I have verified this in two places - using remote desktop to my home PC from work, and after getting home with a remote desktop session to my work PC. Mintty runs fine when I run it locally, but I always get an "Exception: STATUS_ACCESS_VIOLATION" when running it via remote desktop. This occurs when running it directly from a Windows command shell or when using the standard Cygwin desktop shortcut. It was working (locally and in a remote desktop session) just before the 2.1.1 update. The only updates applied prior to the problem were mintty and (I think) 'm4'. |
|
Version 2.1.2 has resolved the crashing issue I was seeing when bringing up mintty over a remote desktop connection. Locally-run mintty also works. Thank you for the effort. |
|
@vadz: Only now I notice some details of your message last night about your builds. Current gcc is actually 4.9.3. So if you compiled the two commits with 4.5.3 and it works, could you update gcc and retry, please? |
|
2.1.2 and the w32api-* stuff solved my problem. Great job! |
|
@mintty Sorry, I don't have any system with 4.9.3 under Cygwin right now and am rather busy right now. If it would be really useful to you, I could try to find the time to do it, but if the bug is already fixed in 2.1.2 anyhow, I'd rather pass. |
I've just done a fresh almost minimal Cygwin installation under Windows 8.1 which includes mintty 2.1.1.0. Unfortunately all attempts to run it result in an immediate crash and the file
mintty.exe.crashdumpis created on the desktop with the following contents:The text was updated successfully, but these errors were encountered: