You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's wrong / what should be happening instead: PTRACE_SEIZE should work similarly to PTRACE_ATTACH (which does work). Per the man page:
PTRACE_SEIZE (since Linux 3.4)
Attach to the process specified in pid, making it a tracee of
the calling process. Unlike PTRACE_ATTACH, PTRACE_SEIZE does
not stop the process.
This prevents rr from working, and I'm sure it impacts other programs as well.
Reacted by therealkenc, Roozbeh, Nick Korsakov, Eugene Lubarsky, X, mantori, Brendan Roy, Danila Malyutin, Evan Tann, Maik Riechert and 15 more
Hi Getting error while using frida python inside wsl 2:
Using python 3.8.10 in ubuntu
➜ testbed ./fuzz.py
Traceback (most recent call last):
File "./fuzz.py", line 62, in
session = frida.attach(pid)
File "/home/raj/.local/lib/python3.8/site-packages/frida/init.py", line 62, in attach
return get_local_device().attach(target, **kwargs)
File "/home/raj/.local/lib/python3.8/site-packages/frida/core.py", line 26, in wrapper
return f(*args, **kwargs)
File "/home/raj/.local/lib/python3.8/site-packages/frida/core.py", line 156, in attach
return Session(self._impl.attach(self._pid_of(target)))
frida.NotSupportedError: unexpected error while attaching to process with pid 634 (PTRACE_SEIZE returned 'Invalid argument')
Activity
therealkenc commentedon Aug 6, 2020
Thanks for the excellent repro on
PTRACE_SEIZE, since you weren't thanked earlier (we don't get enough of them). Better in WSL2.vishwaraj101 commentedon Mar 29, 2022
Hi Getting error while using frida python inside wsl 2:
Using python 3.8.10 in ubuntu
➜ testbed ./fuzz.py
Traceback (most recent call last):
File "./fuzz.py", line 62, in
session = frida.attach(pid)
File "/home/raj/.local/lib/python3.8/site-packages/frida/init.py", line 62, in attach
return get_local_device().attach(target, **kwargs)
File "/home/raj/.local/lib/python3.8/site-packages/frida/core.py", line 26, in wrapper
return f(*args, **kwargs)
File "/home/raj/.local/lib/python3.8/site-packages/frida/core.py", line 156, in attach
return Session(self._impl.attach(self._pid_of(target)))
frida.NotSupportedError: unexpected error while attaching to process with pid 634 (PTRACE_SEIZE returned 'Invalid argument')