【问题标题】:git fails silently and curl https fails with illegal instructiongit 静默失败,curl https 因非法指令而失败
【发布时间】:2016-10-19 04:18:19
【问题描述】:

就在最近,我的登台服务器无法执行git pullgit fetch

git pull origin master

运行完全没有任何影响,没有给出错误信息,没有更改文件,它只是返回到提示符。它曾经工作(几周前),所以我不确定在此期间发生了什么变化。遥控器肯定是对的。

经过大量搜索,我已将其范围缩小到潜在的 curl 问题,但我正在努力寻找解决方案。

curl https://www.google.co.uk -v

给我:

* About to connect() to www.google.co.uk port 443 (#0)
* Trying 216.58.208.99... connected
* Connected to www.google.co.uk (216.58.208.99) port 443 (#0)
* Initializing NSS with certpath: none
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
Illegal instruction (core dumped)

我已经检查过该位置是否存在 ca-bundle.crt,但老实说,这远远超出了我的专业领域。我以我的普通用户和 root 身份尝试过这个。

  • CentOS 6.8
  • WHM 56.0
  • 卷曲 7.19.7-52.el6

有什么想法我接下来应该尝试什么?

【问题讨论】:

    标签: git ssl curl centos cpanel


    【解决方案1】:

    我也有同样的问题... 有一个临时解决方案。 export NSS_DISABLE_HW_GCM=1

    详情见https://bugs.centos.org/view.php?id=10930https://gryzli.info/2016/05/28/centos-6-curl-ssl-illegal-instruction-error/

    【讨论】:

    • 谢谢,这对我有用。也感谢这些链接,有助于查看问题的背景。