runtime: runtime.FuncForPC().FileLine() returns an incorrect line #50397
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
reproduces for all go versions including and after go 1.7
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/XxgAqT0Ds1j
What did you expect to see?
I expected the entry for HelloBad() to print the line where it is defined but instead it prints the line where it returns
The functions should not be inlined due to the //go:noinline directives.
Disabling go compiler optimizations via
go run -gcflags -N
is a workaround.The text was updated successfully, but these errors were encountered: