Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 663547

Summary: [5.7] When strace is used, waitpid() without __WCLONE or __WALL option waits for children created by clone().
Product: Red Hat Enterprise Linux 5 Reporter: Max Matveev <makc>
Component: straceAssignee: Andreas Schwab <schwab>
Status: CLOSED WONTFIX QA Contact: qe-baseos-tools-bugs
Severity: urgent Docs Contact:
Priority: high    
Version: 5.7CC: alanm, bgollahe, cww, ebachalo, makc, mnowak, moshiro, myamazak, nmurray, pmuller, roland
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 661748 Environment:
Last Closed: 2011-09-02 16:48:08 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: 661748    
Bug Blocks:    

Description Max Matveev 2010-12-16 06:17:52 UTC
+++ This bug was initially created as a clone of Bug #661748 +++

Description of Problem:
Usually, waitpid() waits for children created by clone() only when
__WCLONE or __WALL option is present.
However, when strace is used, waitpid() without __WCLONE or __WALL option
waits for children created by clone().

Version-Release number of selected component:
Red Hat Enterprise Linux Version Number: 5.6
Release Number: beta
Architecture: x86_64
Kernel Version: kernel-2.6.18-229.el5
Related Package Version: strace-4.5.18-5.el5_5.5
Related Middleware/Application: none 

Drivers or hardware or architecture dependency:
none

How reproducible:
Always

Step to Reproduce:
Use testpro.c from 661748.

1. Compile the above target program (testpro.c):
# gcc -g -o testpro testpro.c

2. Execute test program with strace command:
# strace -f -o log ./testpro

Actual Results:
Parent process suspends.

Expected Results:
Parent process does not suspend.

Summary of actions taken to resolve issue: none

Location of diagnostic data: none

Hardware configuration:
Model: PRIMERGY TX300S4
CPU Info: Intel Xeon CPU 1.86GHz x 2
Memory Info: 4GB
Hardware Component Information: none
Configuration Info: none


Business Impact:
Middleware and/or application programmer cannot debug or investigate
their programs.

Target Release: RHEL5.7
Errata Request: No
Hotfix Request: No


Additional Info:

The following change by roland@redhat fixes the problem:
http://strace.git.sourceforge.net/git/gitweb.cgi?p=strace/strace;a=commit;h=54e931fb858410644f61885b4b36fc20320e1fc6

Comment 8 Brian Gollaher 2011-09-02 16:48:08 UTC
Closing this bug as no longer required by customer.