Cygwin/Git error cygheap base mismatch detected

前端 未结 13 1463
轮回少年
轮回少年 2020-12-13 01:41

I have installed two windows servers with the latest versions of cygwin and git, and am trying to clone the git repository from S1, to S2. I can successfully ssh from S2 to

相关标签:
13条回答
  • 2020-12-13 02:30

    No Cygwin, no GitHub

    I've only started experiencing this lately, and none of the answers above applied to my case - I didn't have Cygwin or GitHub installed.

    Instead, in my case a Windows security feature, Address Space Layout Randomization or ASLR created this problem. This is off by default for programs that do not mark themselves compatible.
    However, I've enabled ASLR for all programs for additional safety. The downside is that git commands don't work now.

    Solution

    The solution was to exclude ASLR for git executables. Because there're quite many of them, I had to use PowerShell as administrator:

    Get-Item -Path "C:\Program Files\Git\usr\bin\*.exe" | %{ Set-ProcessMitigation -Name $_.Name -Disable ForceRelocateImages }
    
    0 讨论(0)
提交回复
热议问题