You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmd/compile: -gcflags='all=-N -l'" with Delve and large functions causes compiler error: bvbulkalloc too big #29829
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?
@agnivade same error with 1.11.4. I moved to beta to see if it was fixed. Seems related to the issues below so I moved to beta to see if there was a fix.
#26560 #26552
issue 26552 says that the fix is getting punted to 1.13
You guys know about a temporary fix in the mean time?
[...] you might try reorganizing your code. Use a slice as the underlying data structure and copy it into a map in an init function. Presumably that code is autogenerated so it might require only a small change to the generator.
changed the title [-]go compiler when used with delve or "go build -gcflags='all=-N -l'"produces an error. [/-][+]cmd/compile: -gcflags='all=-N -l'" with Delve and large functions causes compiler error: bvbulkalloc too big[/+]on Jan 22, 2019
Activity
pyrofolium commentedon Jan 19, 2019
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?
agnivade commentedon Jan 19, 2019
Does it work with 1.11.4 ?
ALTree commentedon Jan 19, 2019
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
-N -lwith really big functions (>1000s lines) with many many variables in them.pyrofolium commentedon Jan 19, 2019
@agnivade same error with 1.11.4. I moved to beta to see if it was fixed. Seems related to the issues below so I moved to beta to see if there was a fix.
#26560
#26552
issue 26552 says that the fix is getting punted to 1.13
You guys know about a temporary fix in the mean time?
ALTree commentedon Jan 19, 2019
See #26560 (comment)
[-]go compiler when used with delve or "go build -gcflags='all=-N -l'"produces an error. [/-][+]cmd/compile: -gcflags='all=-N -l'" with Delve and large functions causes compiler error: bvbulkalloc too big[/+]gopherbot commentedon Feb 22, 2019
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.)