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: kern-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
	netbsd-bugs%netbsd.org@localhost
Subject: Re: kern/52117: ptrace(2) PTRACE_FORK fails on some platforms
Date: Tue, 28 Mar 2017 10:04:40 +0200

 Can you please describe this better?
 
 What are the steps to reproduce the issue? Which part of the atf test
 output is relevant to this PR?
 
 After digging through the source I guess you have to do:
 
 cd /usr/tests/kernel
 atf-run t_ptrace_waitpid
 
 and watch :
 
 tc-start: 1490688009.793401, signal6
 tc-so:Before forking process PID=2969
 tc-so:Before calling PT_TRACE_ME from child 2722
 tc-so:Parent process PID=2969, child's PID=2722
 tc-so:Before calling waitpid() for the child
 tc-so:Before raising Stopped (signal) from child
 tc-so:Enable PTRACE_FORK in EVENT_MASK for the child 2722
 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
 
 [.. long pause untill timeout..]
 
 and a fixed kernel would not pause here?
 
 Martin
 


Home | Main Index | Thread Index | Old Index