-
Notifications
You must be signed in to change notification settings - Fork 220
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
pyrasite-shell hangs on Arch Linux #75
Comments
This change to injector.py fixed the issue for me. |
This appears to be detached from |
My python application is run by user A. When I try to use pyrasite-shell, it reminds me of running it by user root and I do that. Then, Permission denies comes out which means the application needed to be injected can not open the inject code( you can see the pyrasite code. it makes a tmp file by mkstemp which leads to only the creator can read this file. So, the application can not read.). Then I try to make pyrasite-shell run by user A . I fix it. |
@lmacken can you look into diamond-lizard@d1e2301 commit? It really helps to get pyrasite working on Ubuntu 18.04 too with some alternate python versions. |
Hi @lmacken, found this issue while searching for the same error. Getting it on an Ubuntu 18.04 Docker container and the commit @irmatov mentions fixes it for me. That said, Docker's default security policies don't allow ptrace, which is needed by gdb, which is needed by pyrasite. What made it work for me was to do |
By the way if anyone wants to pip-install the "fixed" version, remember pip supports installing from git repos, so you can point it to the fixed fork like so: pip install git+https://github.com/diamond-lizard/pyrasite.git |
Still does not work on recent arch. Installed both pip pyrasite and the git version. gdb is also installed. Cannot connect to any of my running python processes:
gdb version is 10.1 |
Tried to run it as well, got the following output after enabling verbose mode:
|
anyone fix this ? |
Any one who is collaborator can help to click this: I'm trying to create a merge request, but failed with:
|
It works pretty well on Ubuntu 18.04. However, when I run
pyrasite-shell <pid>
on Arch Linux, I got the following errors:May I know how to resolve this issue? Thanks.
The text was updated successfully, but these errors were encountered: