Mintty does not work under Windows 10 build 10586 #493
Comments
|
You are using the current version of mintty? |
|
How did you actually invoke mintty? |
|
And can you check the current uploaded version? |
|
Hi, I invoked Mintty from the shortcut that Cygwin creates in my Start menu. This is because I switched from Bash (the standard) to ZSH + Oh-my-ZSH, which I like much more. At this point I did some new discoveries. It turns out, that in both situations everything is working just fine, as long as I just launch via the start menu or directly via the shortcut. I am however, using Launchy to be able to quickly start stuff by hitting alt-space, typing a few letters, and hitting enter. It now seems that the problem lies in using Launchy to start Cygwin, because that's the only way I am getting this detaching error... However, no other program started showing problematic behaviour with Launchy after updating Win10 to build 10586, only Mintty. It might be therefor possible that this is somehow a thing where Mintty is unable to fork off Launchy, therefor declaring defeat and showing a notification. I tried updating Mintty but it yesterday seemed that I was already running the latest version that is available for download. I will try your update to see if it makes any difference and let you know. /edit I tried adding -d to the Mintty command ends up with a window with black text on a red background saying Can you please provide a link to the download page of the latest Mintty that I should try? I end up on Google Code but those versions are outdated as far as I can tell. |
This is a volatile cygwin issue. The red notice is just from mintty to inform about some other problem. Download is on https://github.com/mintty/mintty/ the button on the right "Download ZIP". |
|
Ah, I thought you had a .exe ready but this means I have to compile it myself. Will try on GCC on Linux, hopefully that's the case and I don't need random stuff like Visual Studio lol /edit Building does not work, there is no ./configure and make states |
|
?? |
|
I also have this issue, but only when using launchy to invoke the cygwin shortcut. I've worked around it by binding a hotkey using AHKscript to launch cygwin instead, but it's hard to unlearn using launchy to spawn a terminal |
|
Again, does it happen if you use the latest repository version (not the released, please compile from ZIP Download)? |
|
I had this exact issue. Running rebaseall from dash gave me a cygwin.dll conflict error. Trying the "-d" gave me the red screen above. I updated cygwin several times, but every time the .sh postinstall scripts failed. Then, I deleted /bin/cygwind-0.dll, and everything worked fine. I then updated cygwin again, and the postinstall scripts ran fine. I'm not sure what the cygwind-0.dll is for, but apparently it doesn't get reinstalled when updating cygwin, so maybe it was old. |
|
No idea what that cygwind-0.dll is. Maybe you'd like to report it on the cygwin mailing list. |
|
It was unclear to me what to do to 'build' MinTTY, but thanks to @albertxing I now understant it's nothing more than Thanks everybody for the involvement, and @adipose especially for pointing out that removing cygwind-0.dll might solve this issue without the need for compiling MinTTY at all. Will test both scenarios tonight if I get home from work (CET / GMT+1 here) and let you all know what scenario's solved it. |
|
Actually |
|
I know, but that does not provide me a working mintty.exe, but rather the contents of https://github.com/mintty/mintty/tree/master, which contains - after extraction - a Makefile, a src directory full of .c and .h files, etc. And to get from there to a mintty.exe, i would have to compile. |
|
Neither does git clone provide mintty.exe. It's the same procedure - Download ZIP, unzip and make will do and not setup a git reference which you may not necessarily want. |
|
@mintty Yeah, I suspected a cygwin/msys problem (I'm on MSYS2). I tried a @eXistenZNL Yes, doing a git clone isn't necessary. You can, as mintty suggested download a zip of the source files, extracting the zip archive, and in the extracted source directory run |
|
Nope, reinstalling msys didn't solve the issue |
|
Just compiled from the zip, installed mintty and this didn't fix it. Had to install gcc-core but that's easy with apt-cyg ofcourse. Anyway, still having the same black text on red background error that @albertxing has, sadly. Also, searching for a cygwind-0.dll yields no results. Tried to disable my antivirus (NOD32 AV v8) as well because it might be blocking random forks of programs, but that did not bring any results either. |
|
So I understand that all impacted people are trying to start mintty via Launchy? Maybe that's a BLODA app? |
|
I was not using launchy. I was using hoekey, but that is irrelevant. When I double-clicked the shortcut to cygwin, it gave me the same error. I never had this issue before upgrading Windows 10. As an aside, the cygwind-0.dll hadn't been modified since 2014, and I found it because when I tried to run rebaseall, it gave me that cygwin error that suggests searching for other cygwin.dlls. |
|
https://gist.github.com/kanzure/6123756 shows some cases where cygwind-0.dll was once a dependency in cygwin. I can't find anything in my dependencies today, or on a 6-month old version of cygwin. |
|
See the discussion around https://cygwin.com/ml/cygwin/2015-12/msg00010.html which again confirms this is not a mintty issue. |
|
Interesting. I have 32-bit cygwin, so I'm not sure that applies to me. |
|
@mintty Thanks for the link. |
|
There is a workaround in the test pre-release Cygwin 2.4.0-0.7, see https://cygwin.com/ml/cygwin/2015-12/msg00042.html, if you'd like to test that. |
|
I installed it using the same account I am currently using. I am an administrator on the machine too. Here is what you requested: It can't tell who is the user is, as I've stated before. That may be due to the fact that I am running Enterprise and a domain user. I've deleted the Cygwin directory and reinstalled before (before this morning) without any different results. If you think it will work, I'll try it again, but I just ran the setup this morning to get the new version of mintty you alerted me to. I would think that would have incorporated any permission changes, no? |
|
This looks like you've installed cygwin on a network drive? What does |
|
It's definitely not a network drive. I don't have any network drives in use with this system, yet. I just installed Windows 10 fresh on it last week. I didn't upgrade from any other Windows versions either. My install is in c:\cygwin64\ Here is the output you wanted: |
|
I ran into this problem today after Windows rebooted last night. I cannot even run rebaseall in ash as I get: ` 3 [main] ash (7960) C:\cygwin\bin\ash.exe: *** fatal error - cygheap base mismatch detected - 0xF8B400/0xD2B400. ash: 2: Cannot fork` The cygwin1.dll in \cygwin\bin is dated 8/20/2015 so has not changed. I can find no other on my computer. EDIT: gave up and just wiped c:\cygwin and reinstalled from scratch |
|
Well, I sort of found the issue. It's definitely caused by a user being on a domain, AzureAD, specifically. I created a local admin account and Cygwin/Git Bash run just fine on the same machine. |
|
i'm facing the same problem. how to resolve this. try to |
|
I'm having the same issue. Cygwin doesn't seem to work properly when invoked from a domain account on an Azure AD joined machine. Trying to launch the Cygwin64 Terminal results in -
bash can be started via cmd.exe, but many utilities don't work properly. I think its due to Cygwin being unable to determine a user's id when logged in via an Azure AD account - Other utilities, like X, are break with similar errors. |
|
Just upgraded to gitwin 2.9.2, same issue. However I think @keithjjones @bcampitf might be on to something here. My PC is also a member of an Azure AD domain. |
|
I wouldn't expect a git upgrade to change anything since git has not updated its mintty version for a while. |
|
I have the same issue since yesterday. And my computer joined an Azure AD domain yesterday. |
|
So then your issue is #563, not this one. |
|
Thanks, I didn't notice this issue. |
|
I'm having this issue now on Windows 10, version 1607, os build 14393.187. I just installed Docker for Windows, and now this occurs. You can have docker or msys+mintty but not both? Anyone else seeing this? |
|
Which issue? Please describe your symptoms. Also, which version of mintty and cygwin (or msys) do you run? |
|
Same as original issue description above. Turned out to be temporary did not reproduce after reboot. |
That's not possible wth the current version (message modified). That's why basic version information often helps with bug reports, just to notice. |
|
Updated and the error came back. Now it says "Error: could not fork child process: There are no available terminals (-1)." |
|
What does |
|
|
You are most likely having a problem with a Windows Azure domain as described above. |
|
I'm having the same problem. I have recognized that it is related to processes dangling around after having closed previous cygwin bash windows. Killing those processes fixes the issue. One of those processes is ssh-agent. Another one is chromedriver still dangling around because unit tests got aborted without shutting it down properly. Going to the task manager and killing those processes helps. I'm now using "cmd /C bash -l" instead to get rid of this. |
|
Please report your versions: |
|
CYGWIN_NT-10.0 DESKTOP-067JGU8 2.8.0(0.309/5/3) 2017-04-01 20:47 x86_64 Cygwin Windows 10 version 1607 build 14393.1066 mintty 2.7.6 x86_64-pc-cygwin |
|
I don't think this is a mintty issue. It might be a BLODA issue. Please try to start another terminal in the same situation (e.g. xterm, after starting an X server). |
|
I'm having the same problem, details as follows: CYGWIN_NT-6.1 WIN-5AL4S0BCGVG 2.9.0(0.318/5/3) 2017-09-12 10:18 x86_64 Cygwin |
|
Even if you think it's the same, please describe your precise symptoms. |
|
Here is the fix. Good luck, |
|
Life saving... this windows update is so annoying, why does windows keep enabling things I already had disabled T_T |

Problem description
On Windows 10 build 10240 (RTM) x64 I installed Cygwin x64, which by default uses Mintty as the terminal emulator. This was working really well.
However, after recently updating to Windows 10 build 10586 via the official Windows Update method, Mintty fails to start.
Reproduction scenario
/usr/bin/mintty: could not detach from caller Try '--help' for more information.'.Expected behaviour
A working Mintty =)
Shoot!
If further questions exist, just ask. I will be notified and will answer the questions.
The text was updated successfully, but these errors were encountered: