NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/52117: ptrace(2) PTRACE_FORK fails on some platforms



The following reply was made to PR kern/52117; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/52117: ptrace(2) PTRACE_FORK fails on some platforms
Date: Tue, 28 Mar 2017 10:19:26 +0200

 On Tue, Mar 28, 2017 at 10:04:40AM +0200, Martin Husemann wrote:
 > tc-so:Before resuming the child process where it left off and without signal to be sent
 > tc-so:Before calling waitpid() for the child
 
 Can you please comment the tests some more as well?
 
 There are multiple forks, but when the waitpid() happens only one of them
 is still alive, like:
 
 tc-start: 1490688991.212638, signal6
 tc-so:Before forking process PID=3246
 tc-so:Before calling PT_TRACE_ME from child 3957
 tc-so:Before raising Stopped (signal) from child
 tc-so:Parent process PID=3246, child's PID=3957
 tc-so:Before calling waitpid() for the child
 tc-so:Enable PTRACE_FORK in EVENT_MASK for the child 3957
 tc-so:Before resuming the child process where it left off and without signal to be sent
 tc-so:Before calling waitpid() for the child
 
  PID TTY    STAT     TIME COMMAND
 3246 pts/7  I     0:00.01 t_ptrace_waitpid -r/tmp/atf-run.IcYGNS/tcr -s/usr/tests/kernel -vunprivileged-user signal6:body 
 3465 pts/7  ZX    0:00.00 (t_ptrace_waitpid)
 3957 pts/7  IX    0:00.00 t_ptrace_waitpid -r/tmp/atf-run.IcYGNS/tcr -s/usr/tests/kernel -vunprivileged-user signal6:body 
 
 so it would be helpfull if the "Before calling waitpid()" message would
 mention the pid, and some comment in the test explain what the other child
 is about and what its state should be now (and why you double fork at all).
 
 Martin
 


Home | Main Index | Thread Index | Old Index