-
-
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
On Ubuntu 22.04 (dev build), bpftrace installs without errors but doesn't work #2168
Comments
Update: on Ubuntu 20.04 LTS, all works as documented. |
Hi, I tried Ubuntu 22.04 from the official Vagrant box and the file's there. My tracefs mounts:
|
I had the same problem in Ubuntu 22.04, but it was solved by installing |
ajor/bpftrace#50, I have meet such problem on Ubuntu 22.04@_@ |
@lxyscls I'm not sure if these issues are related, but for the ajor/bpftrace#50 one I've proposed a fix here: #2292 |
@zhihaop - how did you install |
@kobi-ca You can install In short, the following script may help to install echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse
deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe multiverse
deb http://ddebs.ubuntu.com $(lsb_release -cs)-proposed main restricted universe multiverse" | \
sudo tee -a /etc/apt/sources.list.d/ddebs.list
sudo apt install ubuntu-dbgsym-keyring
sudo apt update
sudo apt install bpftrace-dbgsym |
thanks @zhihaop - I'll give it a shot! |
FWIW you will no longer need debug syms (really just symbols) after the next release. See #2264 |
I believe that this is now resolved and can be closed. |
I have same issue on latest Ubuntu 22.04 @ WSL2
|
Hi @inliquid , did you try following the steps outlined in #2168 (comment) ? Also starting in bpftrace v0.16 it is no longer necessary to install bpftrace with symbols. |
Thanks @danobi! So would it be correct to say that that preferred way is to uninstall Ubuntu's v0.14.0 of |
What reproduces the bug?
My system is a dev build of Ubuntu 22.04
bpftrace installs OK per README.md:
There are errors that match this, having to do with not mounting the debug filesystem, or with mounting it in an unexpected location. I checked this; the file system is present and mounted at the expected place:
Then I checked the structure of the filesystem. The requisite directory "tracing" is there, but the structure below that is not as expected.
From which I conclude I am either missing some required package, or that the structure of debugfs has changed.
bpftrace --info
Next steps
For my purposes, I will back down to 20.04 LTS, but if there are pending changes to the structure of debugfs, I wanted to provide a heads-up.
The text was updated successfully, but these errors were encountered: