控制台在全新安装的Git Bash中关闭

时间:2016-09-10 09:04:42

标签: windows git bash git-bash

我刚刚使用默认安装设置安装了最新的Git for Windows(https://git-scm.com/download/win)。我在Windows 10上运行了64位2.10.0版本的Git。

当我在这里尝试使用Git Bash时,控制台立即关闭并生成一个mintty.exe文件,其中包含以下文本:

Exception: STATUS_ACCESS_VIOLATION at rip=00100407559
rax=FFFFFFFFFFFFFFFF rbx=00000000FFFFC5D0 rcx=0000000000000000
rdx=03FFFFFFFFFFFFFF rsi=0000000100444E20 rdi=00000000FFFFC5CC
r8 =0000000000000001 r9 =0000000000000001 r10=0000000000000000
r11=8000000000000000 r12=0000000100445960 r13=00000000FFFFC5E0
r14=0000000600042F70 r15=0000000100445960
rbp=00000000FFFFC6C0 rsp=00000000FFFFC580
program=C:\Program Files\Git\usr\bin\mintty.exe, pid 6944, thread main
cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame        Function    Args
000FFFFC6C0  00100407559 (000FFFFC6C0, 7FFB0536FF20, 00100444DC8, 00600000001)
000FFFFC6C0  00100425455 (001801980AD, 00600041880, 001800CE622, 0000000002F)
000FFFFCCC0  00180047C0F (00000000000, 00000000000, 00000000000, 00000000000)
00000000000  0018004590C (00000000000, 00000000000, 00000000000, 00000000000)
000FFFFFFF0  001800459A4 (00000000000, 00000000000, 00000000000, 00000000000)
End of stack trace

我尝试过寻找解决方案但找不到任何东西。

2 个答案:

答案 0 :(得分:2)

尝试使用便携版:

PortableGit-2.10.0-64-bit.7z.exe

查看此软件包中的bash --login -i是否比安装时更好。

vonc@gvonc MINGW64 /bin

$ git version
git version
git version 2.10.0.windows.1

$ bash --version
bash --version
GNU bash, version 4.3.46(2)-release (x86_64-pc-msys)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

如果问题仍然存在,请检查您的服务:例如,在issue 768中,Null service未启动。

检查其状态:

sc query nul

如果需要,请启动它:

sc start null 

答案 1 :(得分:0)

通过在我的机器上启动Null服务解决了这个问题。