Windows 10 上出现“bash:fork:retry:资源暂时不可用”错误

Windows 10 上出现“bash:fork:retry:资源暂时不可用”错误

当我打开时,git bash我收到以下消息:

          2 [main] bash (40164) C:\Program Files\Git\usr\bin\bash.exe: *** fatal error - cygheap base mismatch detected - 0x1301410/0x12A1410.
    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

> Blockquote

 cygwin DLL.
          1 [main] bash 45888 fork: child -1 - forked process 40164 died unexpectedly, retry 0, exit code 0xC0000142, errno 11

我也尝试过ulimit -a并得到:

core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
open files                      (-n) 256
pipe size            (512 bytes, -p) 8
stack size              (kbytes, -s) 2032
cpu time               (seconds, -t) unlimited
max user processes              (-u) 256
virtual memory          (kbytes, -v) unlimited

并在另一个类似的问题中找到这个命令ulimit -Sn unlimited && ulimit -Sl unlimited并得到这个结果:

bash: ulimit: -l: invalid option
ulimit: usage: ulimit [-SHabcdefiklmnpqrstuvxPT] [limit]

cygwin1.dll我也在 Windows 图形搜索中搜索过,CMD但找不到这样的文件!

相关内容