-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Attaching uprobes with special characters in function names fails #2388
Closed
stevenjohnstone opened this issue
Oct 12, 2022
· 1 comment
· Fixed by #2390 or fengjixuchui/bpftrace#3
Closed
Attaching uprobes with special characters in function names fails #2388
stevenjohnstone opened this issue
Oct 12, 2022
· 1 comment
· Fixed by #2390 or fengjixuchui/bpftrace#3
Labels
bug
Something isn't working
Comments
stevenjohnstone
added a commit
to stevenjohnstone/go-bpf-gen
that referenced
this issue
Oct 12, 2022
Your patch looks good, could you submit it as a PR? Thanks! |
stevenjohnstone
added a commit
to stevenjohnstone/bpftrace
that referenced
this issue
Oct 13, 2022
bpf objects may only have names containing alphanumeric characters, '.' and '_'. Golang programs, in particular, have symbol names which cause problems e.g. "os.(*File).Read". Fixes bpftrace#2388.
viktormalik
pushed a commit
that referenced
this issue
Oct 14, 2022
bpf objects may only have names containing alphanumeric characters, '.' and '_'. Golang programs, in particular, have symbol names which cause problems e.g. "os.(*File).Read". Fixes #2388.
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What reproduces the bug?
Using version
bpftrace v0.16.0-20-g720b
try to attach to a uprobe to a golang function e.g.This fails with
With strace I see
It looks like there are symbols in
prog_name="crypto/rand.(*d
which will be rejected.The last working revision seems to be 5ab53fa, just before changes to replace bcc loading with libbpf.
This patch fixes the issue for me:
bpftrace --info
The text was updated successfully, but these errors were encountered: