分页: 1 / 1

git clone/push出错:error: git-remote-https died of signal 4

发表于 : 2023-11-23 17:18
Somu127
RT,无论是git clone 还是git push 都出现这个报错error: git-remote-https died of signal 4。

这个问题比较难以复现,最开始在本机Ubuntu20.04系统上正常使用,但是当把该系统上传至服务器esxi系统后就会出现上述问题,有参考
https://askubuntu.com/questions/1420966 ... al-4-after
https://groups.google.com/g/linux.debia ... tKoVDieSow
这两个地方的建议,但是仍然无法奏效,想问一下各位大佬有什么解决方案,在此跪谢各位大佬(不然就没办法上传代码了 :Cry

Re: git clone/push出错:error: git-remote-https died of signal 4

发表于 : 2023-11-23 17:20
Somu127
sry 页面卡住了重复发帖了

Re: git clone/push出错:error: git-remote-https died of signal 4

发表于 : 2023-11-23 17:30
Somu127
:Cry 在ubuntu18.04 上就没有问题,似乎特定于20.04,但是没办法环境都被限定在20.04上了

Re: git clone/push出错:error: git-remote-https died of signal 4

发表于 : 2023-11-23 19:14
astolia
用gdb来调试git,看到底在哪里出错了。gnutls有个GNUTLS_DEBUG_LEVEL环境变量可以输出调试信息,也可以配合使用

Re: git clone/push出错:error: git-remote-https died of signal 4

发表于 : 2023-11-23 20:49
Somu127
astolia 写了: 2023-11-23 19:14 用gdb来调试git,看到底在哪里出错了。gnutls有个GNUTLS_DEBUG_LEVEL环境变量可以输出调试信息,也可以配合使用
听着好难,我试试看看,谢谢大佬

Re: git clone/push出错:error: git-remote-https died of signal 4

发表于 : 2023-11-24 9:52
astolia
Somu127 写了: 2023-11-23 20:49 听着好难
你顶楼的链接里提到的几个解决方案我感觉上都是一个原因:特定版本的exsi创建的虚拟环境有问题,对某些cpu指令的执行会出错。设置GNUTLS_CPUID_OVERRIDE就是让gnutls不去执行那些指令。在兼容模式创建虚拟机可能是低版本的虚拟机没有提供对那些指令的支持,gnutls自然不会去选择执行那些指令。升级exsi就更不用说了。

你说无法奏效,那我就认为即使升级到最新版本的exsi还有问题,那就只能走最难的路用gdb来调试了

Re: git clone/push出错:error: git-remote-https died of signal 4

发表于 : 2023-11-24 9:59
Somu127
感谢大佬回复,目前在用GDB进行调试,结果如下可见附件,另外大佬提到exsi的事情,个人推测exsi系统版本较低,在ubuntu20.04上该方面的支持不够好,估计在ubuntu22上也会出现同样的情况,ubuntu18上倒是没有任何问题

Re: git clone/push出错:error: git-remote-https died of signal 4

发表于 : 2023-11-24 10:25
Somu127
尝试将remote-https加入环境变量也没解决问题

Re: git clone/push出错:error: git-remote-https died of signal 4

发表于 : 2023-11-24 14:22
astolia
Somu127 写了: 2023-11-24 9:59 感谢大佬回复,目前在用GDB进行调试,结果如下可见附件
你为什么要用自己编译的git而不直接安装源里的?源里的git 2.25.1有什么满足不了你们需求的吗?

Re: git clone/push出错:error: git-remote-https died of signal 4

发表于 : 2023-11-24 15:18
Somu127
astolia 写了: 2023-11-24 14:22
Somu127 写了: 2023-11-24 9:59 感谢大佬回复,目前在用GDB进行调试,结果如下可见附件
你为什么要用自己编译的git而不直接安装源里的?源里的git 2.25.1有什么满足不了你们需求的吗?
那倒不是 :Hehe 之前只是想着是不是版本问题升级了一下,想着能不能直接跳过问题

Re: git clone/push出错:error: git-remote-https died of signal 4

发表于 : 2023-11-24 17:16
Somu127
:Cry 放弃了,折腾的时间挺长,网上参考资料太少了,自己使用GDB调试也没看出原因