Mozilla build always doesn’t work well after updating OS to Win10

After I update my Operation System to Win10, Mozilla build system always doesn’t work well, which will always produce some errors:


m.AllocationBase 0x0, m.BaseAddress 0x506A0000, m.RegionSize 0x220000, m.State 0x10000
F:\Mysoft\ProgrammingTools\Bash\mozilla-build\msys\bin\sh.exe: *** Couldn't reserve space for cygwin's heap (0x506A0000 ) in child, Win32 error 0
0 [main] sh 3944 sync_with_child: child 5880(0x26C) died before initialization with status code 0x1
779 [main] sh 3944 sync_with_child: *** child state waiting for longjmp
/usr/local/bin/autoconf-2.13: fork: Resource temporarily unavailable

I found some methods below:
1) http://stackoverflow.com/questions/18502999/git-extensions-win32-error-487-couldnt-reserve-space-for-cygwins-heap-win32
2) https://www.lpcware.com/content/forum/windows-10-couldnt-reserve-space-cygwins-heap-win32-error-0
3) https://expert.go2group.com/2015/07/02/developer-series-resolving-a-cygwin-issue-when-working-with-git/

Tried:
1) reboot OS
2) replace the file msys-1.0.dll with https://www.lpcware.com/system/files/msys-1.0.zip
3) in windows cmd rebase msys-1.0.dll

But all of them can’t solve my problem.

Finally I synthesize the methods above and solve the problem.

Because I come across the issue when I am in Mozilla build bash, I try to rebase the file msys-1.0.dll ( not windows cmd ), use admin rights to run Mozilla build bash, and reboot my OS.

After some days’ test, the problem disappeared!

Advertisements