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

build: debug information for bazel-built binaries have truncated paths in cgo packages #137718

Open
rickystewart opened this issue Dec 18, 2024 · 1 comment
Labels
A-build-system C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. T-dev-inf

Comments

@rickystewart
Copy link
Collaborator

rickystewart commented Dec 18, 2024

Setting a breakpoint in a cgo-enabled package works differently than one without cgo. Without cgo, the file paths are sensible (e.g. pkg/path/to/file.go), but with cgo, they are truncated (just file.go). This may be an issue with one of our patches to rules_go.

Internal discussion

Epic: CRDB-17171

Jira issue: CRDB-45718

@rickystewart rickystewart added C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. A-build-system T-dev-inf labels Dec 18, 2024
Copy link

blathers-crl bot commented Dec 18, 2024

Hi @rickystewart, please add branch-* labels to identify which branch(es) this C-bug affects.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-build-system C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. T-dev-inf
Projects
None yet
Development

No branches or pull requests

1 participant