打开新 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$

我在 windows 10 上使用 cmder,当打开一个新的 bash 选项卡时,它会抛出这个 error.I 在 google 上搜索过,然后卸载 android 我下载了 sdk,但没有 works.Can 有人帮我解决这个问题吗?

在将 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%

然后键入 bash 并查看错误是否仍然存在。
我已经在 Windows 10(最新补丁)上使用 git version 2.11.0.windows.1 对其进行了测试。它确实有效。

OP ChenLee confirms :

I totally reinstall cmder and all is working fine now.

在我的案例中,罪魁祸首原来是(我和)"Mandatory ASLR" 设置。当设置为 'ON' 时,它会强制重新定位与 /DYNAMICBASE 不兼容的图像,这会对 Git-for-windows 二进制文件造成严重破坏。