+++ 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