lmacken / pyrasite

Inject code into running Python processes

Home Page:http://pyrasite.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyrasite-shell causes segmentation fault in Python 3

mehrdad-h opened this issue · comments

Using $pyrasite-shell <PID> in python 3 causes the running process (<PID>) to face a segmentation fault. The only exception is when both the running process and pyrasite-shell are executed with sudo. Any solutions or workaround?

commented

the same problem

Not a solution, but I can find out the cause is a thread start.

Injecting this code with pyrasite as root and the target as nonroot causes the same issue:

import threading
def f(): pass
threading.Thread(target=f).start()

I think it wasn't like this before.

Probably the same bug: running with --output localterm causes segmentation fault too.