-
Notifications
You must be signed in to change notification settings - Fork 18k
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
runtime: docker build failure with go-1.6.2/musl libc on armhf #16081
Comments
What is a bit strange is that it built earlier, with go1.6.1, but after upgrading to go1.6.2 it no longer builds. What is more strange is that i have downgraded various times and now it no longer build with go 1.6.1 either. I get different error messages with different go versions and different docker versions. All seems to be related memory management. building docker 1.11.1 with go-1.6.2:
buidling docker 1.11.1 with go 1.6.1:
building docker-1.11.2 with go-1.6.2:
|
You probably got lucky. Try reducing the amount of parallelism with the -P flag. |
Good idea. I asssume you mean with
|
one interesting thing is that it seems to always happen in |
Try go 1.7beta1, usable address space should have been increased in that version. |
i did try to backport commit e6ec820 to 1.6 but it did not help. (or my conflict resolving was done bad). I am building In any case, i will need some kind of workaround since this made it to alpine linux 3.4-stable branch (due to success with |
This error means that the runtime set up a bitmap describing all memory in the range These adjustments could be the result of mmap randomization, which I believe is more aggressive in newer kernels. What are the values of As was mentioned above, this should be fixed in the upcoming 1.7 release by https://golang.org/cl/20471. But we are not going to backport that to the 1.6 release series. |
@ianlancetaylor sounds correct. This is a kernel patched with PaX which has a randmmap feature. Setting pax softmode makes it build. I also tested go1.7beta1 and it also works like it should. |
OK, thanks for trying it out. This doesn't sound like something we should touch in Go 1.6. Closing as fixed in 1.7. |
this works around problem when building docker golang/go#16081
this works around problem when building docker golang/go#16081 (cherry picked from commit e7dca0f)
Please answer these questions before submitting your issue. Thanks!
go version
)?go version go1.6.2 linux/arm
go env
)?Alpine Linux edge.
Linux ncdev-edge-armhf 4.1.15-0-grsec #1-Alpine SMP Wed Dec 16 15:13:43 GMT 2015 armv7l Linux
On wandboard quad with 2G ram and 4G swap.
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
tried to build docker-1.11.2 as:
Full build script is found here: http://git.alpinelinux.org/cgit/aports/tree/community/docker/APKBUILD#n62
docker sucessfully built.
The text was updated successfully, but these errors were encountered: