Git使用出錯:Couldn‘t reserve space for cygwin‘s heap, Win32


今天使用Git在命令行下更新代碼遇到了問題,起初覺得是自己安裝某軟件導致沖突,從網上搜索了一下找到類似問題,成功解決問題。
錯誤信息如下:

E:\storm-sql>git pull origin joeywen
  0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x68570000, RegionSize 0x2F0000, State 0x10000
C:\Program Files (x86)\Git\bin\sh.exe: *** Couldn‘t reserve space for cygwin‘s heap, Win32     error 0

原因分析:

Cygwin uses persistent shared memory sections, which can on occasion become corrupted. The symptom of this is that some Cygwin programs begin to fail, but other applications are unaffected. Since these shared memory sections are persistent, often a reboot is needed to clear them out before the problem can be resolved.

解決辦法:
找到Git的安裝目錄,在命令行下切到bin目錄,使用如下命令

1

rebase.exe -b 0x50000000 msys-1.0.dll

然后git重新恢復了正常,在使用該命令確保git此時沒有在使用


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM