-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
panic: runtime error: index out of range #1572
Comments
Does the bug happen with go 1.10 or with "the latest version" of go? What's the latest version of Go: 1.12 or a build from master? If you are using |
@aarzilli , thanks for your reply!
I tried latest version of go but failed to debug with some error, I am not sure whether the error is exactly same or not, will post the error message later.
I got the latest go 1.12.5 from here: https://golang.org/dl/, cause it failed, so I fall back to use the
I don't understand here, I always use |
@aarzilli , you can get the binary from there, Thanks a lot for your help on this! |
My understanding is this issue should be a project specific issue. I used to build the binary with go 1.12, and the project has the cache make the binary is still based on the go1.12, but the go delve is build with the different go version, so the issue occurs. I don't think I have figured out the root cause, cause I don't know how to get rid of the cache in order to re-generate the binary, but I have tried to build it is another way so that cache is invalid and Close this unless I find another clue or issue. Thanks for help! |
|
Childless compile units would confuse loadDebugInfoMaps. No test because I don't know what causes go to invoke GNU As in such a way that it produces a childless compile unit. Fixes go-delve#1572
Childless compile units would confuse loadDebugInfoMaps. No test because I don't know what causes go to invoke GNU As in such a way that it produces a childless compile unit. Fixes go-delve#1572
…1574) Childless compile units would confuse loadDebugInfoMaps. No test because I don't know what causes go to invoke GNU As in such a way that it produces a childless compile unit. Fixes go-delve#1572
…1574) Childless compile units would confuse loadDebugInfoMaps. No test because I don't know what causes go to invoke GNU As in such a way that it produces a childless compile unit. Fixes go-delve#1572
Please answer the following before submitting your issue:
Note: Please include any substantial examples (debug session output,
stacktraces, etc) as linked gists.
What version of Delve are you using ($Id: 068e2451004e95d0b042e5257e34f0f08ce01466 $
dlv version
)?Delve Debugger
Version: 1.2.0
Build:
What version of Go are you using? (
go version
)?go version go1.10.4 linux/amd64
What operating system and processor architecture are you using?
I am trying to debug a static bianry, the debug used to be work, but doesn't work now, what I did is upgrade go to latest version, and I reverted it back after I saw the error. I can debug successfully with a simple go binary instead.
# dlv exec ...
The text was updated successfully, but these errors were encountered: