cmd/compile: incorrect stack trace for nil dereference in inlined function #27201
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
I believe that the stack trace for panics that occur when computing arguments to an inlined function are incorrectly attributed to the inlined function. I'm not sure if this is a known / expected consequence of inlining, but it caused a lot of confusion to see a line identified where a nil dereference is impossible.
What version of Go are you using (
go version
)?Go 1.10.3
Does this issue reproduce with the latest release?
Yes, it still exists in Go 1.11rc1
What did you do?
https://play.golang.org/p/V5EzYYYSDjz
What did you expect to see?
A panic with this stack trace, identifying the line of the nil dereference:
What did you see instead?
Incorrect attribution to an innocent function.
The text was updated successfully, but these errors were encountered: