x/debug/cmd/viewcore: NPE in readDebugInfo #44757
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
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?
Use
viewcore
as of golang/debug@6a9ae25 on these filesI instrumented
readDebugInfo
and basically it was looking up the empty string in the map here and then crashing:It works with this invocation:
(I got that string from
fmt.Println(p.files)
above.What did you expect to see?
I would've either expected an error asking me to set
--exe
or, better, it auto-inferring the executable name correctly.What did you see instead?
An opaque NPE.
The text was updated successfully, but these errors were encountered: