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: Getrlimit test failures in docker on armv7 / aarch64 #38604
Comments
It runs fine on other arches (x86, x86_64, ppc64le, s390x) |
Does the following C program print the resource limits or also fail with an error?
|
That works, yes:
|
@ianlancetaylor any thoughts? |
Can you run both the C program and the Go program under |
This is the golang test that is failing (I show the last part of the output of the process that is calling getrlimit)
|
Change https://golang.org/cl/230339 mentions this issue: |
Thanks for the info. Can you see if https://golang.org/cl/230339 fixes the problem for you? |
@ianlancetaylor Yes, I can confirm this patch fixes the issue, all tests succeed now. |
Change https://golang.org/cl/230478 mentions this issue: |
Do the same as CL 230339 did for package syscall: Reportedly some Docker images accept the prlimit64 system call, used by syscall.prlimit, but prohibit the getrlimit and setrlimit system calls. Updates golang/go#38604 Change-Id: I4fc9197d7b037c2f375e50b149701316a36023f3 Reviewed-on: https://go-review.googlesource.com/c/sys/+/230478 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reportedly some Docker images accept the prlimit64 system call, used by syscall.prlimit, but prohibit the getrlimit and setrlimit system calls. Fixes golang#38604 Change-Id: I91ff9370450b4869098cc8e335bbb7b863060508 Reviewed-on: https://go-review.googlesource.com/c/go/+/230339 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
For the curious, the root cause of this denial is a bug in |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, 1.14.2 still failes
What operating system and processor architecture are you using (
go env
)?Alpine Linux in docker on Alpine Linux on armv7 / aarch64
go env
OutputWhat did you do?
Build golang and run the test suite in a docker container on either armv7 or aarch64
See our APKBUILD for details
What did you expect to see?
Test suite pass
What did you see instead?
Build log
This doesn't happen when we build / run the test suite in a privileged container.
The text was updated successfully, but these errors were encountered: