Bug 4330

Summary: utrace: ptrace operations should work on child in job control stop
Product: frysk Reporter: Jan Kratochvil <jan>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 1496    

Description Jan Kratochvil 2007-04-06 18:52:46 UTC
Opened by Jan Kratochvil (jan.kratochvil@redhat.com)  	 on 2007-04-06 13:46
EST  	[reply]  	   Private

Description of problem:
Found a regression against kernel.org in RH kernels utrace based implementation
of ptrace(2).

Version-Release number of selected component (if applicable):
(on FC6 system)

How reproducible:

Steps to Reproduce:
1. gcc -o stopkills stopkills.c -Wall -ggdb3
2. ./stopkills

Actual results:
./stopkills: PTRACE_DETACH: No such process

Expected results:
(nothing; exit code 0)

Additional info:
ptrace (PTRACE_CONT, child_pid, NULL, (void *) SIGSTOP);
ptrace (PTRACE_DETACH, child_pid, NULL, NULL);
PTRACE_DETACH fails by ESRCH on the utrace kernels.

Red Hat bug:
Comment 1 Jan Kratochvil 2007-09-19 20:20:18 UTC
It is already fixed by Roland McGrath for some time: