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: incorrect arguments of prlimit64 syscall on linux #17606
Labels
Milestone
Comments
rakyll
changed the title
Linux: syscall.prlimit: incorrect arguments of prlimit64 syscall
syscall: incorrect arguments of prlimit64 syscall on linux
Oct 26, 2016
/cc @ianlancetaylor |
quentinmit
added
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
labels
Nov 7, 2016
It looks like only the names of the arguments are wrong; the calls do actually pass the right thing. |
@quentinmit, ah, great. That's reassuring. Sent https://golang.org/cl/32889 |
CL https://golang.org/cl/32889 mentions this issue. |
CL https://golang.org/cl/32912 mentions this issue. |
gopherbot
pushed a commit
to golang/sys
that referenced
this issue
Nov 8, 2016
Update golang/go#17606. Change-Id: I922525561d81a8b7d805729028825953424f6ecc Reviewed-on: https://go-review.googlesource.com/32912 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rob Pike <r@golang.org>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version devel +7124056 Mon Oct 24 19:29:18 2016 +0000 linux/amd64
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/user/gopath"
GORACE=""
GOROOT="/home/user/go"
GOTOOLDIR="/home/user/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build394839699=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
What did you do?
I look at Go sources and see incorrect argument passing to sys_prlimit64 Linux syscall:
https://github.com/golang/go/blob/master/src/syscall/zsyscall_linux_386.go#L767
https://github.com/golang/go/blob/master/src/syscall/zsyscall_linux_amd64.go#L767
etc
What did you expect to see?
newlimit
MUST be passed first,old
must be passed next.see Linux kernel source tree for example:
What did you see instead?
see above
The text was updated successfully, but these errors were encountered: