python-ptrace
python-ptrace copied to clipboard
python-ptrace is a Python binding of ptrace library.
The implementation ```python class PTraceProcess: ... def isTraced(self): if not HAS_PROC: self.notImplementedError() stat = readProcessStat(self.pid) return (stat.state == 'T') ``` is checking for `T`, but that is for stopped by...
Let assume I have this code (it is incomplete): ``` pid = createChild(arguments, False, env) dbg = PtraceDebugger() process = dbg.addProcess(pid, is_attached) process.cont() ``` There seems to be no way...
Trying to _analyze() or display() a ProcessSignal of type SIGSEGV raised by a "RET" condition currently raises an Exception, as the current instruction handler has no detection for the RET...
Hi, I'm trying to track the process containerd, but I always get no output. I used the following command, which did not produce any output: `sudo python3 strace.py -f -p...
Optimize `process.getreg(...)` by avoiding `ptrace_getregs` call.
~~- Rework documentation test so that `$ pytest` catches https://github.com/vstinner/python-ptrace/pull/70/commits/27f14722679fd0f7e01eee11b68e7122fec2a459.~~ - Added `strace.py` tests for directory `tests/crash` (must check if they do not break tox tests added by https://github.com/vstinner/python-ptrace/pull/70). ```bash...
Hi, I had added ppc64le(Linux on Power) support on travis-ci in the branch and looks like its been successfully added. I believe it is ready for the final review and...
In cases when \0 was found at index position less than max_size, `truncated` should be False. Maybe 'if' condition could be also changed, but I wanted to keep it small.
When system has set a large limit of opened file descriptors, then the function createChild is getting slow, because it tries to close all descriptors up to that limit. On...
This patch has been rejected but I'm still using it and this pull request will serve a new discussion. From the stacktrace below you can see that it's `debugger.quit()` procedure...