问题描述
最近在使用git的时候遇到很奇怪的问题,不管使用什么git客户端(包括原生的git bash、tortoisegit、Sroucetree),都报错“invalid credential line: Open share memory unsuccessfully”,同时,输入的用户名也会莫名其妙被替换成报错的信息“Open share memory unsuccessfully!”,导致用户名密码认证失败。
Git Bash 错误结果
$ git clone http://git.test.com/test/test.git
Cloning into 'test'...
warning: invalid credential line: Open share memory unsuccessfully!
error: unable to read askpass response from 'C:/Program Files/Git/mingw64/bin/git-askpass.exe'
Password for 'http://Open share memory unsuccessfully!@git.test.com':
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://git.test.com/test/test.git/'
TortoiseGit 错误结果
SourceTree 错误结果
问题出现的平台版本及自己尝试过哪些方法
平台:某大厂的云桌面
操作系统:Win7 SP1,并已安装 .net 3.5/4.5/4.7。
CPU:Intel Xeon E5-2680 V4 2.4GHz
内存:8GB(内存使用率40%)
在网上没有搜索到相关信息,这个问题似乎以前没有出现过。以 Open share memory unsuccessfully
为关键字搜索,英文网站完全没有,中文网站只有一个2012年CSDN的文章(https://blog.csdn.net/xiaobai...)提到过这个词语,是一段有关共享内存开发的代码提示片段,除此之外,再也没有这个报错内容。因此怀疑是不是国内某厂开发的云桌面系统中的插件直接copy了CSDN中的这段代码,因为国外一般都是写作 shared memory,而 share memory 这种用法更像是国人写的 Chinglish,这也是在这里提问的原因。
由于不太懂Windows开发,明明内存还很足够(没有开启多少程序,内存只占用了40%)为什么会涉及到共享内存,为什么共享内存不足会出现问题,为什么git命令会触发这个现象,如有大佬了解请不吝赐教,谢谢!