This seems to be an issue with golang itself.
When the tracee is not our child process, and/or ptrace attribute is not set to true, we lose control to the tracee immediately.
The reason: PtraceAttach and PtraceGetRegs are from different processes/threads
This seems to be an issue with golang itself. When the tracee is not our child process, and/or
ptrace
attribute is not set totrue
, we lose control to the tracee immediately.The reason:
PtraceAttach
andPtraceGetRegs
are from different processes/threads