Bug 454156

Summary: utrace: stop-attach-then-wait testcase FAILs
Product: [Fedora] Fedora Reporter: Jan Kratochvil <jan.kratochvil>
Component: kernelAssignee: Roland McGrath <roland>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 9CC: dvlasenk, kernel-mgr, lpoetter
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/tests/ptrace-tests/tests/stop-attach-then-wait.c?cvsroot=systemtap
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-24 13:03:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 454157, 456342    

Description Jan Kratochvil 2008-07-05 16:43:56 UTC
Description of problem:
Process SIGSTOPs, debugger PTRACE_ATTACHes it, first WAITPID(,,0) returns
SIGSTOP but second WAITPID(,,0) returns SIG_0 (that one should be waiting).

Version-Release number of selected component (if applicable):
FAIL:
F-8 kernel-2.6.25.9-40.fc8.i686
F-9 kernel-2.6.25.6-55.fc9.x86_64
F-9 kernel-2.6.25.9-76.fc9.x86_64
PASS:
kernel-vanilla-2.6.25.6-55.vanilla.fc9.x86_64
kernel-vanilla-2.6.25-0.101.rc4.git3.fc8.x86_64

How reproducible:
Always.

Steps to Reproduce:
wget -O stop-attach-then-wait.c
http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/tests/ptrace-tests/tests/stop-attach-then-wait.c?cvsroot=systemtap;
gcc -o stop-attach-then-wait stop-attach-then-wait.c -Wall -ggdb2 -D_GNU_SOURCE;
./stop-attach-then-wait; echo $?

Actual results:
1

Expected results:
0

Additional info:
Upstream bugreport post:
https://www.redhat.com/archives/utrace-devel/2008-June/msg00021.html

Comment 1 Chuck Ebbert 2008-10-24 02:57:37 UTC
Is this fixed in 2.6.26.6-79.fc9?

Comment 2 Denys Vlasenko 2008-10-24 12:26:48 UTC
Yes, it's fixed in 2.6.26.6-79.fc9.