Console closes in fresh install of Git Bash

二次信任 提交于 2019-12-10 11:38:05

问题


I just installed the most recent Git for Windows (https://git-scm.com/download/win) using the default installation settings. I have the 64 bit 2.10.0 version of Git running on Windows 10.

When I tried using Git Bash here, the console closes immediately and it produces a mintty.exe file with the following text:

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

I have tried searching for a solution but cannot find anything.


回答1:


Try instead the portable edition:

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

See if the a bash --login -i from this package works better than when it is installed.

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.

If the issue persists, check your services: for instance, in issue 768, the Null service wasn't started.

Check its state:

sc query nul

Start it if needed:

sc start null 



回答2:


Resolved this by starting the Null service on my machine.



来源:https://stackoverflow.com/questions/39424449/console-closes-in-fresh-install-of-git-bash

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!