-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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/compile: -gcflags='all=-N -l'" with Delve and large functions causes compiler error: bvbulkalloc too big #29829
Comments
I'll try to reproduce the program as a smaller version later, but this is really hard to determine as the project is really large... for now this is all I got... perhaps you guys have some insight? |
Does it work with 1.11.4 ? |
AFAIK this is likely to be caused by an old and known compiler issue related to liveliness analysis. If you have a really big map literal in your code (possibly auto-generated), that's likely to be the culprit. I've also encountered this crash while fuzzing the compiler on |
See #26560 (comment)
|
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
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
)?go env
OutputWhat did you do?
ran
go build -gcflags='all=-N -l'
when I run "go build" it works but the above breaks.
Unfortunately I can't provide source code. It's closed source.
What did you expect to see?
A binary executable.
What did you see instead?
Compiler hangs for 30 minutes before exiting with this error:
The text was updated successfully, but these errors were encountered: