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

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

josharian opened this issue May 2, 2017 · 1 comment


Copy link

@josharian 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
Copy link

@odeke-em 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
@andybons andybons modified the milestones: Go1.13, Go1.14 Jul 8, 2019
@rsc rsc modified the milestones: Go1.14, Backlog Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants