TortoiseGit experience suffering from msys-1.0.dll relocation issue
What steps will reproduce the problem?
- In my case trying to perform any of the following Stash operations: Save, Pop or Clean. However later googling revealed that this problem could occur with any git command.
What is the expected output? What do you see instead?
I expect the Stash operation to be executed successfully, instead I see the following error:
Running git stash manually returned the same error:
C:\repo>git stash
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x68570000, RegionSize 0x200000, State 0x10000
C:\Program Files (x86)\Git\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
After the investigation I further expect that if possible TortoiseGit should load the msys-1.0.dll at a different address (e.g. 0x50000000) so this issue doesn't happen at all.
What version of TortoiseGit and Git are you using? On what operating system?
TortoiseGit version 2.5.0
Git version 1.9.5.msysgit.0
Please provide any additional information below.
Apparently this is a known issue with msysgit (http://jakob.engbloms.se/archives/1403) and could be fixed by moving the base address of the msys-1.0.dll library as described in https://stackoverflow.com/questions/18502999/git-extensions-win32-error-487-couldnt-reserve-space-for-cygwins-heap-win32
I had to copy the dll to a new folder, do the rebase.exe and then overwrite the original to get this fixed.