Bug 80264 - strace -f breaks WNOHANG
strace -f breaks WNOHANG
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: strace (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Roland McGrath
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2002-12-23 11:29 EST by Mike Gahagan
Modified: 2007-11-30 17:06 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-01-10 18:07:04 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
tarball of strace output and ksh test script. (28.98 KB, application/octet-stream)
2002-12-23 11:33 EST, Mike Gahagan
no flags Details
strace-4.4.cvs20021221rh-1 on 8.0 (12.19 KB, application/octet-stream)
2002-12-23 13:07 EST, Mike Gahagan
no flags Details
tarball showing failure with strace-4.4.cvs20021221rh-1 (24.58 KB, application/octet-stream)
2002-12-23 13:09 EST, Mike Gahagan
no flags Details

  None (edit)
Description Mike Gahagan 2002-12-23 11:29:05 EST
Description of problem:

Strace -f will break with programs that use the wait4 system call (aka waitpid
or wait3) with the WNOHANG flag when they have live children.

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

strace-4.3-2 (comes with AS 2.1)
(problem exists w/ 7.x and 8.0)

How reproducible:

Always. AT&T's ksh is a reliable reproducer.

Steps to Reproduce:
1.Install AT&T ksh and any version of strace from above.
2.Run attached test script.
Actual results:

See attached

Expected results:

strace should be able to follow processes.

Additional info:
Comment 1 Mike Gahagan 2002-12-23 11:32:10 EST
AT&T's ksh93 is available from www.kornshell.com
Comment 2 Mike Gahagan 2002-12-23 11:33:16 EST
Created attachment 88867 [details]
tarball of strace output and ksh test script.
Comment 3 Mike Gahagan 2002-12-23 13:07:42 EST
Created attachment 88868 [details]
strace-4.4.cvs20021221rh-1 on 8.0

same failure as before
Comment 4 Mike Gahagan 2002-12-23 13:09:35 EST
Created attachment 88869 [details]
tarball showing failure with strace-4.4.cvs20021221rh-1
Comment 5 Roland McGrath 2002-12-26 20:40:03 EST
I am confused.  There is no sign of the bug in the attachments here.
The failure mode before was that strace interfered with the normal functioning
of ksh, indicated by the "Warning: error(s) creating ..." message produced from
the script.  Those messages do not appear in your transcripts attached here.
Please state explicitly for the record what criteria you are applying when
you say that there is still a bug here.  
Comment 6 Roland McGrath 2003-01-10 18:07:04 EST
Version 4.4.91-1 should work fine.
Comment 7 John Flanagan 2003-12-19 12:57:54 EST
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.


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