Win git error init_cheap:virtualalloc pointer is null, WIN32 error 487
tags (space delimited): git
In the idea of using Git for code updates encountered problems, Google a bit early stackoverflow find a solution, here share
Error message
E:\storm-sql>git pull origin joeywen 0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487AllocationBase 0x0, BaseAddress 0x68570000, RegionSize 0x2F0000, State 0x10000C:\Program Files (x86)\Git\bin\sh.exe: *** Couldn‘t reserve space for cygwin‘s heap, Win32 error 0
Cause Analysis:
Cygwin uses persistent shared memory sections, which can on occasion become corrupted. The symptom of the some Cygwin programs begin to fail, and the other applications is unaffected. Since These shared memory sections is persistent, often a reboot was needed to clear them off before the problem can be re Solved.
Workaround:
I had the same problem. I found solution here http://jakob.engbloms.se/archives/1403
c:\msysgit\bin>rebase.exe -b 0x50000000 msys-1.0.dll
For me solution is slightly different. It was
C:\Program Files (x86)\Git\bin>rebase.exe -b 0x50000000 msys-1.0.dll
Before Rebase DLLs, you should make sure it's not in use:
tasklist /m msys-1.0.dll
If the rebase command fails with something like:
Rebaseimage (Msys-1.0.dll) failed with last error = 6
You'll need to perform the following steps in order:
-1. Copy the DLL to another directory
-2.rebase the copy using the commands above
-3.replace the original DLL with the copy.
Reference: Git extensions:win32 error 487:couldn ' t reserve space for Cygwin ' s heap, Win32 error 0
Win git error init_cheap-virtualalloc pointer is null, WIN32 error 487