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) reboot OS
2) replace the file msys-1.0.dll with
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!