lmacken / pyrasite

Inject code into running Python processes
http://pyrasite.com
GNU General Public License v3.0
2.8k stars 219 forks source link

pyrasite-shell does not work on Ubuntu 18.04.1 #76

Open Euphorbium opened 5 years ago

Euphorbium commented 5 years ago

nothing happens when I try to attach to a running python process with pyrasite-shell.

when running pyrasite --verbose <PID> hello.py I get:

b'0x00007f02ce561ff7 in ?? ()\n'
b'\nwarning: Could not load vsyscall page because no executable was specified\nNo symbol table is loaded.  Use the "file" command.\nNo symbol table is loaded.  Use the "file" command.\nNo symbol table is loaded.  Use the "file" command.\n'
abc19899 commented 4 years ago

@Euphorbium I meet a question simaliar with you. Maybe you can try my fix: https://github.com/abc19899/pyrasite/tree/develop

boltronics commented 4 years ago

@abc19899 Thank-you. This also got pyrasite-shell running for me on Debian Buster.

dineshdharme commented 3 years ago

The above fix mentioned by @abc19899 didn't work for me.

I made changes as mentioned in this comment below. Finally that worked.

https://github.com/lmacken/pyrasite/issues/75#issuecomment-432480361

I am on Ubuntu 18.04 GNU gdb (Ubuntu 8.1.1-0ubuntu1) 8.1.1

gerritholl commented 3 years ago

For me pyrasite-shell was hanging on Python 3.9, apparently due to missing gdb. Downgrading to Python 3.8 and conda install gdb resolved the problem (I could not conda install gdb on Python 3.9).