简体   繁体   English

打开新的bash标签时出现cmder错误

[英]cmder error when open new bash tab

    0 [main] bash (1884) E:\cmder\vendor\git-for-windows\bin\..\usr\bin\bash.exe: *** fatal error - cygheap base mismatch detected - 0x1416408/0x14C6408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
      0 [main] bash 11464 fork: child -1 - forked process 1884 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
bash: fork: retry: No child processes
      0 [main] bash (3256) E:\cmder\vendor\git-for-windows\bin\..\usr\bin\bash.exe: *** fatal error - cygheap base mismatch detected - 0x1416408/0x1386408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
1074705 [main] bash 11464 fork: child -1 - forked process 3256 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
bash: fork: retry: No child processes
      2 [main] bash (12572) E:\cmder\vendor\git-for-windows\bin\..\usr\bin\bash.exe: *** fatal error - cygheap base mismatch detected - 0x1416408/0x14A6408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
3147239 [main] bash 11464 fork: child -1 - forked process 12572 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
bash: fork: retry: No child processes
      1 [main] bash (10236) E:\cmder\vendor\git-for-windows\bin\..\usr\bin\bash.exe: *** fatal error - cygheap base mismatch detected - 0x1416408/0x12A6408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
7224765 [main] bash 11464 fork: child -1 - forked process 10236 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
bash: fork: retry: No child processes
      0 [main] bash (13684) E:\cmder\vendor\git-for-windows\bin\..\usr\bin\bash.exe: *** fatal error - cygheap base mismatch detected - 0x1416408/0x10D6408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
15488563 [main] bash 11464 fork: child -1 - forked process 13684 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
bash: fork: Resource temporarily unavailable
bash-4.3$

I'm using cmder on windows 10,when open a new bash tab,it throws this error.I have searched on google, and uninstall android sdk I downloaded,but it not works.Can anyone help me with this? 我在Windows 10上使用cmder,当打开一个新的bash选项卡时,它将引发此错误。我已经在google上搜索了,然后卸载了我下载的android sdk,但是它不起作用。有人可以帮我吗?

Try the same git bash in a CMD session where you set the PATH environment variable to a minimal value: 在将PATH环境变量设置为最小值的CMD会话中尝试相同的git bash:

set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
set PATH=C:\path\to\Git\bin;C:\path\to\Git\cmd;C:\path\to\Git\usr\bin;%PATH%

Then type bash and see if the error persists. 然后键入bash并查看错误是否仍然存在。
I have tested it with git version 2.11.0.windows.1 on Windows 10 (latest patches). 我已经在Windows 10(最新补丁)上使用git version 2.11.0.windows.1测试了它。 It does work. 确实有效。

The OP ChenLee confirms in the comments : OP ChenLee 在评论中确认:

I totally reinstall cmder and all is working fine now. 我完全重新安装了cmder,现在一切正常。

In my case the culprit turned out to be (me and) the "Mandatory ASLR" setting. 在我的情况下,罪魁祸首是“我和”“强制性ASLR”设置。 When set to 'ON' it forces relocation of images NOT compatible with /DYNAMICBASE, and that wrecked havoc on the Git-for-windows binaries. 设置为“开”时,它会强制重新定位与/ DYNAMICBASE不兼容的图像,这会严重破坏Windows的Git二进制文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM