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

标签 windows git bash git-bash

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

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

最佳答案

试试便携版:

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 

关于windows - 控制台在 Git Bash 的全新安装中关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39424449/

相关文章:

c++ - 将 DLL 放在其他目录中

git - 使用 Git Flow merge 一个分支,保持分支仍然存在

Git 忽略对已提交文件的更改

linux - Bash脚本从一行复制并用副本替换另一行

java - 使用有限的资源运行 bash 脚本/程序

windows - TaskDialog 显示中文文本而不是 en-us

java - 在 Windows : xperf: error: NT Kernel Logger: Invalid flags. (0x3ec) 上运行 xperfasm JMH 探查器时出错

C++ Qt WriteProcessMemory

git - 如何在 git 中维护 'topic branch' merge 历史记录?

linux - bash 字符串插值返回空字符串