<div dir="ltr">In trying to find the location of a valid instance of PyInterpreterState in the virtual memory of a running Python (3.6) application (using process_vm_read on Linux), I have noticed that I can only rely on _PyThreadState_Current.interp at the very beginning of the execution. If I try to attach to a running Python process, then _PythreadState_Current.interp doesn't seem to point to anything useful to derive the currently running threads and the frame stacks for each of them. This makes me wonder about the purpose of this symbol in the .dynsym section. Apart from a brute force approach for finding a valid PyInterpreterState, is there a more reliable approach for the version of Python that I'm targeting?<div><br></div><div>Thanks,</div><div>Gabriele<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div style="text-align:right"><div style="text-align:right"><br></div><i><span style="font-family:georgia,serif"></span></i></div></div></div></div>