-
Notifications
You must be signed in to change notification settings - Fork 429
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
Fail with "Error: No such file or directory (os error 2)" #553
Comments
py-spy accesses the files in the mount (mount, not user) namespace of the target process (that's the In this case py-spy decided that libpython.so is needed (because the Python is built with |
Not exists "/proc/219292/root/tmp/minarca-jail-ku6ln2cg/opt/rdiff-backup-2.0/libpython3.7m.so.1.0" "/tmp/minarca-jail-ku6ln2cg" the the root of the container Looking at /proc/: exe is a symlink to the executable. root is also a symlink to a path. So the real file is
|
@Jongy Is the information provided help you write a fix ? |
Not quite yet but we're getting there. py-spy attempts to access the path based on what it reads from Let's try to walk it one by one - to have all data. Please run all these commands so we can see the exact files & directories along the way:
replace 219292 with the PID of the process, if it changed. |
Here the extra command I also ran:
|
I managed to reproduce the problem locally. Interesting.
This is the fix that needs to be implemented in py-spy. It can be generalized to - instead of stripping the I might have the time to fix it in py-spy soon but cannot promise. |
Ho, I forgot about this issue. |
Sorry for the long delay, this issue slip my mind and I only need py-spy once in a while. Thans changes you made seams accurate with my analysis too and is working for my requirement. Thanks |
I'm trying to use py-spy on a python process already running
py-spy dump -p 219292
.That process make use of user name space. That probably explain why py-spy is failing.
Running with strace:
/tmp/minarca-jail-ku6ln2cg/opt/rdiff-backup-2.0/libpython3.7m.so.1.0
doesn't exists. It's probably only mounted in the namespaceThe text was updated successfully, but these errors were encountered: