Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 454156 - utrace: stop-attach-then-wait testcase FAILs
Summary: utrace: stop-attach-then-wait testcase FAILs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 9
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Roland McGrath
QA Contact: Fedora Extras Quality Assurance
URL: http://sources.redhat.com/cgi-bin/cvs...
Whiteboard:
Depends On:
Blocks: 454157 456342
TreeView+ depends on / blocked
 
Reported: 2008-07-05 16:43 UTC by Jan Kratochvil
Modified: 2008-10-24 13:03 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-10-24 13:03:03 UTC


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.