【问题标题】:sh.exe.stackdump when use git stash使用 git stash 时的 sh.exe.stackdump
【发布时间】:2017-12-14 22:25:50
【问题描述】:

我是 Git 新手,对“stash”命令有疑问。

当我编写诸如“git stash”、“git stash list”、“git stash apply”、“git drop”等命令时,我总是得到一个名为“sh.exe.stackdump”的文件:

Exception: STATUS_STACK_OVERFLOW at rip=7FFFE2A29F97
rax=0000000000001250 rbx=00000000FFFFADF0 rcx=0000000000000000
rdx=0000000180010018 rsi=0000000180271780 rdi=000000018021C490
r8 =00000000000C2790 r9 =0000000180271780 r10=00000000FFFF9000
r11=00000000FFE03190 r12=00000000FFFFACD0 r13=000000018021C490
r14=00000000FFFFAC70 r15=00000000FFFFADF8
rbp=0000000000000420 rsp=00000000FFFFAAD8
program=C:\Program Files\Git\usr\bin\sh.exe, pid 7748, thread unknown (0x3144)
cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B

Exception: STATUS_STACK_OVERFLOW at rip=7FFFE2A29F97
rax=0000000000001250 rbx=00000000FFFFACD0 rcx=0000000000000000
rdx=0000000180010018 rsi=0000000180271780 rdi=000000018021C490
r8 =00000000006A2790 r9 =0000000180271780 r10=00000000FFFF9000
r11=00000000FFE03490 r12=00000000FFFFABB0 r13=000000018021C490
r14=00000000FFFFAB50 r15=00000000FFFFACD8
rbp=0000000000000420 rsp=00000000FFFFA9B8
program=C:\Program Files\Git\usr\bin\sh.exe, pid 11624, thread unknown (0x13B8)
cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B

命令可以正常工作,但每次我使用“stash”时都删除它很烦人。

当我尝试命名一个存储时,我得到了这个错误:

Cannot save the current index state

我该怎么办? 我使用的是 Windows 10、git 版本 2.15.0.windows.1 和 windows 命令提示符

【问题讨论】:

    标签: windows git command-prompt


    【解决方案1】:

    我几个月来一直遇到这个问题,我尝试了许多互联网解决方案(PATH 修复,重新安装),今天我终于设法解决了:问题是与 Comodo Internet Security(在我的情况下为 Comodo 防火墙)冲突,当我删除它,错误立即消失了。

    我在这里找到了解决方案: https://github.com/desktop/desktop/issues/4556

    这里还有如何保存 Comodo: https://help.comodo.com/topic-72-1-766-11485-Miscellaneous-Settings.html#shellcode_injection&_ga=2.241892802.1773408369.1525225022-41239862.1525101797

    【讨论】:

    • 有趣。比我的回答更具体。 +1
    • 非常感谢!我也尝试过路径和许多不同工具的重新安装。修复后它终于起作用了!
    • 我将整个 Git 程序文件目录添加到 Comodo 的“不检测这些应用程序中的 shellcode 注入”列表中,它为我解决了这个问题。谢谢!
    • hmmm ...我有相同的但没有安装 comodo :) ...也许 MS AV 正在按照他们的步骤...
    • Comodo 网站链接失效时参考:Comodo -> Settings -> Advanced Protection -> Miscellaneous -> Don't detect shellcode injections in these applications -> Add -> sh.exe Windows 上 sh.exe 的默认位置:C:\Program Files\Git\usr\bin\sh.exe
    【解决方案2】:

    我已经为此苦苦挣扎了一段时间。当我尝试在安装在 64 位 Windows Server 操作系统上的 64 位 Git for Windows 上编写任何类型的服务器端挂钩时,我曾经遇到以下异常。我通过修改 VonC 提到的 Path 变量的顺序来修复它。请注意,您需要注意订单,因为我注意到通过使用 Windows 进程资源管理器(您可以下载此),sh.exe 有时会弄乱我公司安装的防病毒软件,因此请尝试订单

    remote:       0 [main] sh 2288 D:\git\installation\Git-2.19.1-64-bit\usr\bin\sh.exe: *** fatal error - add_item ("\??\D:\git\installation\Git-2.19.1-64-bit", "/", ...) fa
    iled, errno 1
    remote: Stack trace:
    remote: Frame        Function    Args
    remote: 000FFFF9BC0  0018005E0DE (0018025366A, 00180230C39, 00600010000, 000FFFF8B40)
    remote: 000FFFF9BC0  001800468F9 (000FFFFAC12, 000FFFF9BC0, 00000000000, 00000000000)
    remote: 000FFFF9BC0  00180046932 (000FFFF9BC0, 00000000001, 00600010000, 675C3A445C3F3F5C)
    remote: 000FFFF9BC0  001800CD2CB (00000000000, 00040000024, 00000000000, 00000000000)
    remote: 1D4881AD919ABD9  0018011BF95 (001800B463C, 00000000000, 00000000000, 00000000000)
    remote: 000FFFFCCD0  00180046EF3 (00000000000, 00000000000, 00000000000, 00000000000)
    remote: 00000000000  00180045A03 (00000000000, 00000000000, 00000000000, 00000000000)
    remote: 000FFFFFFF0  00180045AB4 (00000000000, 00000000000, 00000000000, 00000000000)
    

    【讨论】:

      猜你喜欢
      • 2014-03-11
      • 2017-11-25
      • 2013-02-23
      • 2012-09-10
      • 1970-01-01
      • 2013-12-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多