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

Open
josharian opened this issue May 2, 2017 · 1 comment
Open

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

josharian opened this issue May 2, 2017 · 1 comment
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

Comments

@josharian
Copy link
Contributor

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 added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jun 30, 2018
@ianlancetaylor ianlancetaylor modified the milestones: Go1.11, Go1.12 Jun 30, 2018
@odeke-em
Copy link
Member

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
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
Status: Triage Backlog
Development

No branches or pull requests

7 participants