]> granicus.if.org Git - strace/commit
Fix handling of unexpected tracees when PTRACE_SEIZE is not in use
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 6 Aug 2017 13:27:07 +0000 (13:27 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 6 Aug 2017 13:27:07 +0000 (13:27 +0000)
commit7a35b711df127664e7430b2644ae92c75f3d5f67
treeeb62aa1de616c3c77e322f2ef50ffbd70b78620f
parent10360644ca04c2da5b767b981e1dd0004cde85e2
Fix handling of unexpected tracees when PTRACE_SEIZE is not in use

* strace.c (maybe_allocate_tcb) <WIFSTOPPED(status) && !followfork>:
The expected ptrace stop signal in case of !use seize is not
syscall_trap_sig but SIGSTOP.  An idea of using PTRACE_GETSIGINFO to
distinguish signal stops that should be re-injected from other kinds
of stops didn't work out due to kernel implementation peculiarities
of initial ptrace-stop.
strace.c