解决MSYS中的“Couldn't reserve space for cygwin's heap”
我的日常工作部分依赖于 MSYS/MinGW,可是不知道从哪天开始,在 MSYS 的 sh 下执行命令经常会出现这样的错误:
m.AllocationBase 0x0, m.BaseAddress 0x715B0000, m.RegionSize 0x460000, m.State 0x10000
C:\MSYS\bin\sh.exe: *** Couldn't reserve space for cygwin's heap (0x715B0000 <0xC70000>) in child, Win32 error
6
0 [main] sh 5016 sync_with_child: child 4404(0x6F4) died before initialization with status code 0x
142 [main] sh 5016 sync_with_child: *** child state waiting for longjmp
sh: fork: Resource temporarily unavailable
最后采用的解决办法为:http://blog.chinaunix.net/u/26092/showart_234697.html 中 Korea 国同学的办法。照录如下: