cmd/compile: missing line numbers with cgo pragmas #20214
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Reproduce:
go install -race cmd/compile
,compilebench -run=SSA -cpuprofile=c
,go tool pprof -lines $(go tool -n compile) c
.Result: entries like
__tsan_read :-134217728
. That's no filename, line number underflow. Ideally it'd refer to the place where the symbol was defined. We have the position information as we enterpragcgo
in the compiler, but it never gets recorded inpragcgobuf
. Not sure how much work would be required to thread it through from there.The text was updated successfully, but these errors were encountered: