dongxilan9351 2014-06-13 04:08
浏览 41
已采纳

从源代码构建Go时测试失败

I cannot pass build tests when I build Golang from source:

hg clone -u release https://code.google.com/p/go
cd go/src
./all.bash

....
ok      net/url 0.005s
ok      os  0.595s
--- FAIL: TestExtraFiles (0.12 seconds)
exec_test.go:230: TestExtraFiles: Something already leaked - closed fd 3
exec_test.go:403: Run: exit status 1; stdout "leaked parent file. fd = 10; want 9
", stderr ""
FAIL
FAIL    os/exec 0.822s
ok      os/signal   0.511s

please help. this is on my webfaction shared machine.

[~] lsb_release -a
LSB Version:    :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 5.10 (Final)
Release:    5.10
Codename:   Final
  • 写回答

1条回答 默认 最新

  • duancong2160 2014-06-13 10:58
    关注

    It's a bug in CentOS 5/RHEL 5 according to issue 3001, basicly the kernel ignores O_CLOEXEC.

    So either ignore the error (bad idea) or move to a more recent Linux version.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大