Win git error init_cheap-virtualalloc pointer is null, WIN32 error 487

Source: Internet
Author: User
Tags win32 error using git

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.