-
Notifications
You must be signed in to change notification settings - Fork 18k
syscall: TestUnshare failure #22391
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
Comments
Ignore it, it’s not important for building a bootstrap compiler.
… On 23 Oct 2017, at 20:06, dvn ***@***.***> wrote:
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go1.4-bootstrap-20170531
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH=""
GORACE=""
GOROOT="/tmp/go"
GOTOOLDIR="/tmp/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
What did you do?
./all.bash
What did you expect to see?
Build successful
What did you see instead?
ok net/internal/socktest 0.002s
ok net/mail 0.005s
ok net/rpc 0.013s
ok net/rpc/jsonrpc 0.014s
ok net/smtp 0.021s
ok net/textproto 0.003s
ok net/url 0.005s
ok os 0.261s
ok os/exec 0.114s
ok os/signal 4.243s
ok os/user 0.002s
ok path 0.008s
ok path/filepath 0.006s
ok reflect 0.101s
ok regexp 0.097s
ok regexp/syntax 0.217s
ok runtime 17.272s
ok runtime/debug 0.006s
ok runtime/internal/atomic 0.134s
ok runtime/internal/sys 0.002s
ok runtime/pprof 1.236s
ok runtime/pprof/internal/protopprof 0.018s
ok runtime/trace 2.405s
ok sort 0.042s
ok strconv 0.318s
ok strings 0.075s
ok sync 0.137s
ok sync/atomic 0.031s
--- FAIL: TestUnshare (0.00s)
exec_linux_test.go:177: Cmd failed with err fork/exec /bin/cat: operation not permitted, output:
FAIL
FAIL syscall 0.020s
ok testing 1.575s
ok testing/quick 0.050s
ok text/scanner 0.002s
ok text/tabwriter 0.003s
ok text/template 0.204s
ok text/template/parse 0.030s
ok time 2.343s
ok unicode 0.003s
ok unicode/utf16 0.014s
ok unicode/utf8 0.005s
ok vendor/golang_org/x/crypto/chacha20poly1305 0.029s
ok vendor/golang_org/x/crypto/chacha20poly1305/internal/chacha20 0.002s
ok vendor/golang_org/x/crypto/curve25519 0.014s
ok vendor/golang_org/x/crypto/poly1305 0.017s
ok vendor/golang_org/x/net/http2/hpack 0.005s
ok vendor/golang_org/x/net/idna 0.004s
ok vendor/golang_org/x/net/lex/httplex 0.013s
ok cmd/addr2line 0.506s
ok cmd/api 0.006s
ok cmd/asm/internal/asm 0.154s
ok cmd/asm/internal/lex 0.003s
ok cmd/compile 3.621s
ok cmd/compile/internal/gc 6.388s
ok cmd/compile/internal/ssa 0.244s
ok cmd/compile/internal/syntax 0.026s
ok cmd/compile/internal/test 0.002s [no tests to run]
ok cmd/cover 0.858s
ok cmd/doc 0.064s
ok cmd/fix 0.008s
ok cmd/go 34.673s
ok cmd/gofmt 0.035s
ok cmd/internal/goobj 0.002s
ok cmd/internal/obj 0.002s
ok cmd/internal/obj/arm64 0.002s
ok cmd/internal/obj/x86 0.014s
ok cmd/link 1.782s
ok cmd/nm 0.373s
ok cmd/objdump 0.966s
ok cmd/pack 0.911s
ok cmd/trace 0.004s
ok cmd/vendor/golang.org/x/arch/arm/armasm 0.004s
ok cmd/vendor/golang.org/x/arch/ppc64/ppc64asm 0.003s
ok cmd/vendor/golang.org/x/arch/x86/x86asm 0.108s
ok cmd/vet 1.219s
ok cmd/vet/internal/cfg 0.003s
2017/10/23 09:03:09 Failed: exit status 1
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I was not clear in my initial issue... I'm using the bootstrap compiler to build go1.8.3 |
|
Trying to understand what you mean here... Are you just suggesting I download the 1.8.x binary instead of trying to build it from source?
I have read, and followed that documentation, but that is for building go1.4, which I have already done successfully. I will try running make.bash in the 1.8.3 checkout, and post the results of that, but that's not what the documentation says to do. |
Okay, that wasn't very clear. Now it's clear. No need to mention go1.4-bootstrap: you are seeing test failures when running |
Running make.bash in the 1.8.3 checkout succeeded. Though, I think this is just because it doesn't run the tests. |
Can you try running |
Yes, I have tried that, and the test still fails. |
So this is also failing on the current go release. Nice, thanks for the report. Labelling this as NeedsInvestigation. |
If you are on linux/amd64: yes. There's no need to compile the toolchain by yourself. Actually you should download the go1.9.1 binary, there's no reason to use an old version. |
I need to build Go from source for my use-case, and specifically version 1.8.3. This is for a project, in which 1.8.3 has been extensively tested, and verified to work properly. |
Then it's fine to build from source. But even then, you don't need go1.4. You can use a go1.9.1 binary to bootstrap. |
I don't want to bootstrap with an unverifiable, and currently (in my case) non-reproducible binary. I was doing my best to avoid this discussion, however. :) |
This is almost certainly #17206, which is fixed in the 1.9 release. The fix was to simply ignore the error, as it is apparently unavoidable on certain systems, so for 1.8.3 that is what you should do. Closing because we aren't going to fix this in 1.8.3. |
No problem. Let's keep this thread about the go1.9.1 syscall test failure you reported, then. |
Sorry, I missed that this was apparently seen in 1.9.1. I don't see how that is possible, but I'll reopen. Please tell us precisely what you do when building with 1.9.1, and precisely what happened. Thanks. |
Here's a pretty large excerpt of the results from running all.bash in the go1.9.1 checkout.
|
This is top few lines after running ./all.bash:
|
Thanks. So on 1.9.1 you are getting different errors. I guess there may be more places in syscall/exec_linux_test.go where we need to check for "operation not permitted". Are you running this inside as container, as root? If so you are likely running into #21379, which has been fixed for the future 1.10 release. |
Yes, I am running it in a docker container, as root. My apologies for not mentioning this sooner. |
Thanks. I'm inclined to close this a dup of number #21379. It doesn't indicate any problem with your build, just a problem with the test. |
Yes, I think that's right. Let me try running make.all in master, which should work. |
All tests passed on master 9d3d370. Thanks for the help. |
What version of Go are you using (
go version
)?I'm using
go1.4-bootstrap-20170531
to build 1.8.3Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
./all.bash
What did you expect to see?
Build successful
What did you see instead?
The text was updated successfully, but these errors were encountered: