New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
syscall: test failures on CentOS #19296
Comments
505 is my uid/gid on my environment. Then |
@mattn Your test when running as root passes for me on Ubuntu Trusty but fails with When I run Go tip on CentOS the syscall tests all pass, whether I run them as a normal user or as root. The original poster is clearly running as root (probably a bad idea). When I run the syscall tests as root with
So apparently on my CentOS 7 system the test detects that the test will fail, but on the OP's it does not. The test is simply whether @tencert Does Can you show us the output of |
I can't reproduce when running as root on CentOS 7.3.1611 (Core). I did need to fix the test a bit first. I sent CL 48191. |
CL https://golang.org/cl/48191 mentions this issue. |
Usually this test is skipped (on builders and when not root), so people are unlikely to see this error. Updates #19296 Change-Id: I3acb81260034dad8776c305f83d7cbac4b718e75 Reviewed-on: https://go-review.googlesource.com/48191 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
I'm sorry. I've already deleted vagrant guest that I executed the command. Now I tried this on centos7 just created, but this is not reproduced. |
Okay, will close this for now. Thanks. |
Testing packages.
ok sync/atomic 0.017s
--- FAIL: TestCloneNEWUSERAndRemapRootDisableSetgroups (0.00s)
exec_linux_test.go:81: Cmd failed with err fork/exec /usr/bin/whoami: invalid argument, output:
--- FAIL: TestCloneNEWUSERAndRemapRootEnableSetgroups (0.00s)
exec_linux_test.go:81: Cmd failed with err fork/exec /usr/bin/whoami: invalid argument, output:
--- FAIL: TestEmptyCredGroupsDisableSetgroups (0.00s)
exec_linux_test.go:129: fork/exec /usr/bin/whoami: invalid argument
--- FAIL: TestGroupCleanupUserNamespace (0.00s)
exec_linux_test.go:238: Cmd failed with err fork/exec /usr/bin/id: invalid argument, output:
FAIL
FAIL syscall 0.057s
ok testing 1.130s
2017/02/27 10:18:18 Failed: exit status 1
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.2.1511 (Core)
Release: 7.2.1511
Codename: Core
The text was updated successfully, but these errors were encountered: