【问题标题】:Console closes in fresh install of Git Bash控制台在全新安装 Git Bash 时关闭
【发布时间】:2017-01-18 08:44:58
【问题描述】:

我刚刚使用默认安装设置安装了最新的 Windows 版 Git (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

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

【问题讨论】:

  • 您是否尝试过重新启动 Windows 10 或在管理员模式下运行 Git Bash?
  • 是的,两个都试了,结果都不成功。

标签: windows git bash git-bash


【解决方案1】:

试试便携版:

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 

【讨论】:

  • 尝试了您的建议,但仍然遇到同样的问题。如何启动 Null 服务?
  • @Afungus sc start null(作为管理员)。先sc query null
  • @Afungus 太好了:你可以阅读stackoverflow.com/help/accepted-answer
【解决方案2】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-03
    • 2021-10-02
    • 1970-01-01
    • 1970-01-01
    • 2022-01-22
    • 1970-01-01
    相关资源
    最近更新 更多