-
Notifications
You must be signed in to change notification settings - Fork 256
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
Missing debug symbols for perf analysis on process inside docker container #513
Comments
I definitely have done something along those lines some years ago, but I don't have that setup available to me anymore so I don't know for sure what steps I did. But debugging this should be relatively straight forward:
This should show you where hotspot or perfparser try to access the sabine binary. Please paste it here so we can check what's happening. Also, to cross-check: You can setup docker to allow launching graphical applications therein. Can you try to do that and run the AppImage within the docker container to check whether that works better? It shouldn't be needed, but it would give us a second view into this problem. |
Should the GUI popup fast under that
without any output. I see the following processes are running:
|
I was able to successfully grab the strace with the hotspot installed via apt on my Ubuntu:
I was able to strace with the command:
for which the output was:
Does that give any insight? |
Yes, it finds some cached data over at
which is probably wrong for the given buildid? You can try to workaround this by passing an explicit But ideally you also test the latest appimage (see e.g. https://github.com/KDAB/hotspot/actions/runs/6335963163 ) and see if that one works better. If not, then there's clearly a bug here - we shouldn't try to load this file outside the sysroot imo. |
Can you please Ten, can you try and see what happens when you clear your local Regarding the |
Sorry for the late reply... it's been kinda busy here at work ;-) I don't know why, but trying to
then my hotspot GUI doesn't start and I also don't see With the hotspot version that I can install as a package on my Ubuntu Ubuntu 20.04.6 LTS, which is:
I get:
If I then do
and try again, I get:
In the second case, the Does this info help? Or do you want me to test other things? |
It is very likely that this is not a bug, but rather a problem on my side. As I did not find a forum or mailing list to ask my question, I emailed Milian Wolff and he kindly suggested me to post my problem as an issue on GitHub, hence why it is posted here.
I would like to do some performance analysis using hotspot on a process that is running inside a Docker container. I collect my perf data on the host (not in the docker container!) as follows:
where
<pid-on-host>
is the process ID on the host of the process I'm interested in (the process is/usr/sbin/sabine
inside the docker container and there it has another PID).Using
docker ps
to find the ID of my docker container, and thendocker inspect
as follows:I search for the directory that has the same contents as the root filesystem of my docker container, so that I can pass that to the
--sysroot
option of hotspot so that all symbols can be found.Then, I start hotspot with the
--sysroot
option as follows:I need
sudo
to access themerged
directory.I get the following errors in my terminal:
and more importantly, in hotspot I see that for
sabine
I have lots of missing debug symbols and I see a lot of question marks in the flamegraph:For as far as I know, my
sabine
binary has debug info in it, as can be seen withfile
(notice thewith debug_info
in the output):Would you have any idea why I still have these missing debug symbols in hotspot? Or any idea how to diagnose this further?
Some info of my host system:
Kind regards,
Bart
PS: a similar question has been asked here (but not answered): https://stackoverflow.com/questions/71685770/profile-a-process-inside-a-container-from-host-using-perf
The text was updated successfully, but these errors were encountered: