Skip to content
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

cmd/compile: missing line numbers with cgo pragmas #20214

josharian opened this Issue May 2, 2017 · 1 comment


None yet
4 participants
Copy link

josharian commented May 2, 2017

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 enter pragcgo in the compiler, but it never gets recorded in pragcgobuf. Not sure how much work would be required to thread it through from there.

@josharian josharian added this to the Go1.10 milestone May 2, 2017

@mdempsky mdempsky modified the milestones: Go1.10, Go1.11 Nov 30, 2017

@ianlancetaylor ianlancetaylor modified the milestones: Go1.11, Go1.12 Jun 30, 2018


This comment has been minimized.

Copy link

odeke-em commented Feb 4, 2019

Hello @josharian unfortunately we didn't get to work on this for Go1.12 but moving this to Go1.13. It would be great if perhaps you could craft up a standalone reproduction for this issue (sure you posted up steps for how to reproduce this with a presumed setup but it would be great for anyone to pickup code, inputs and expectations). Thank you.

@odeke-em odeke-em modified the milestones: Go1.12, Go1.13 Feb 4, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.