-
Notifications
You must be signed in to change notification settings - Fork 431
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
py-spy 0.1.9 fails when started inside docker container #68
Comments
thanks for the bug report! I've managed to reproduce this - it's caused by some code that was added so that you can profile from the host os into processes running in a docker container. I will have a fix out shortly |
We were trying to change the namespace even when it wasn't necessary, causing issues like #68. Fix by comparing the target processes namespace to ours by reading the softlinks appropiately, and also just logging a warning if we failed to set the namespace if we failed for any reason.
fixed in v0.1.10 |
same issue in kubernetes pod |
@lovepocky did you launch your container with the SYS_PTRACE capability enabled? https://github.com/benfred/py-spy/#how-do-i-run-py-spy-in-kubernetes If you didn't launch with the SYS_PTRACE capability, you can still trace the process from the host os |
I have added
and get |
Same here. With |
When py-spy is installed and launched from inside docker container,
py-spy==0.1.9
fails, whereas previous versionpy-spy==0.1.8
worked (SYS_PTRACE capability is set for container).The text was updated successfully, but these errors were encountered: