Bug 4330 - utrace: ptrace operations should work on child in job control stop
Summary: utrace: ptrace operations should work on child in job control stop
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 1496
  Show dependency treegraph
 
Reported: 2007-04-06 18:52 UTC by Jan Kratochvil
Modified: 2007-09-19 20:20 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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