-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
cmd/go: 'go install -buildmode=shared -linkshared' overwrites files in GOROOT/pkg #28553
Comments
Kindly paging @bcmills @randall77 @ianlancetaylor. |
The bug here is that we're trying to write to I'm not sure what the fix is, though. CC @jayconrod |
As a workaround, if you make |
I think This bit concerns me though:
I was able to reproduce this in the
PC=0x45b201 m=0 sigcode=0 |
Change https://golang.org/cl/208482 mentions this issue: |
Instead of installing shared libraries to GOROOT/pkg, clone the necessary files into a new GOROOT and run there. Given that we now have a build cache, ideally we should not need to install into GOROOT/pkg at all, but we can't fix that during the 1.14 code freeze. Updates #28387 Updates #28553 Updates #30316 Change-Id: I83084a8ca29a5dffcd586c7fccc3f172cac57cc6 Reviewed-on: https://go-review.googlesource.com/c/go/+/208482 Run-TryBot: Bryan C. Mills <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Jay Conrod <[email protected]>
How reasonable would it be to have Go write to |
How about if it's trying to write the same value to the file as what's in the file ( |
Obsoleted by #47788 |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?Ubuntu 18.04, go 1.11.1 installed with godep
go env
OutputWhat did you do?
I'm trying to build simplest library in
shared
mode linked against shared std.What did you expect to see?
Compiled shared my library.
What did you see instead?
It never finishes compilation of mylibrary, and eats slowly whole memory of my computer.
The text was updated successfully, but these errors were encountered: