Github/Cygwin error: cygheap base mismatch detected

后端 未结 7 970
小蘑菇
小蘑菇 2020-12-28 15:50

Git has been giving me this error

    0 [main] sh (47116) C:\\Users\\Marcus\\AppData\\Local\\GitHub\\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\\us         


        
7条回答
  •  醉话见心
    2020-12-28 16:13

    After enabling Mandatory ALSR by default on Windows 10.

    I need to disable ForceRelocateImages to all git-bash executables. Todo this, create a small PowerShell script or type direct in PowerShell the code below. You need to run PowerShell as an administrator.

    Get-Item -Path "C:\Program Files\Git\usr\bin\*.exe" | %{ Set-ProcessMitigation -Name $_.Name -Disable ForceRelocateImages }
    Get-Item -Path "C:\Program Files\Git\bin\*.exe" | %{ Set-ProcessMitigation -Name $_.Name -Disable ForceRelocateImages }
    Get-Item -Path "C:\Program Files\Git\*.exe" | %{ Set-ProcessMitigation -Name $_.Name -Disable ForceRelocateImages }
    

    After that, git-bash works fine.

提交回复
热议问题