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>
Status: RESOLVED FIXED    
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):
kernel-2.6.20-1.3045.fc7.x86_64
(on FC6 system)

How reproducible:
Always.

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:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=235521
Comment 1 Jan Kratochvil 2007-09-19 20:20:18 UTC
It is already fixed by Roland McGrath for some time:
  https://bugzilla.redhat.com/show_bug.cgi?id=235521#c4