-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: internal compiler error: fault (due to long string) #1700
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
If you want to fix this, feel free. I think you will find that many things will not work very well if you try to use data literals > 2GB in size. Owner changed to @rsc. Status changed to HelpWanted. |
Owner changed to @lvdlvd. |
Owner changed to builder@golang.org. |
go version go1.6 linux/amd64 Building the above program works with a 1GB string OK. However, its maximum resident set size was 62GB. A build containing a 2GB string was killed by the kernel when the system ran out of memory (104GB). |
The current go toolchain doesn't support more than 2GB
of static data (including instructions) on amd64 anyway.
|
With Go 1.9, I used https://play.golang.org/p/Hc8V87IGvU in order to create a 2.1 gig Go file (dominated by the giant string). When I tried to compile it, I got this:
Those are coming from the linker. I am now looking into what the next steps are to prevent sending input that is too big to the linker, so that we give a useful error message. |
Change https://golang.org/cl/74330 mentions this issue: |
by gynvael@google.com:
The text was updated successfully, but these errors were encountered: