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) strace-4.4cvs20021217rh-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. 3. Actual results: See attached Expected results: strace should be able to follow processes. Additional info:
AT&T's ksh93 is available from www.kornshell.com
Created attachment 88867 [details] tarball of strace output and ksh test script.
Created attachment 88868 [details] strace-4.4.cvs20021221rh-1 on 8.0 same failure as before
Created attachment 88869 [details] tarball showing failure with strace-4.4.cvs20021221rh-1
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.
Version 4.4.91-1 should work fine.
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. http://rhn.redhat.com/errata/RHBA-2003-294.html