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

huangapple go评论83阅读模式
英文:

tests fail when building Go from source

问题

我无法通过从源代码构建Golang时的构建测试:

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\n", stderr ""
FAIL
FAIL	os/exec	0.822s
ok  	os/signal	0.511s

请帮忙。这是在我的Webfaction共享机器上。

[~] 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
英文:

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\n", 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

得分: 2

根据问题3001,这是CentOS 5/RHEL 5中的一个错误,基本上内核忽略了O_CLOEXEC

因此,要么忽略这个错误(不太好的主意),要么升级到更高版本的Linux。

英文:

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.

huangapple
  • 本文由 发表于 2014年6月13日 12:08:08
  • 转载请务必保留本文链接:https://go.coder-hub.com/24197542.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定