Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Cause:
When strace is used, waitpid without __WCLONE or __WALL option waits for children created by clone
Consequence:
Fix:
don't suspend process calling waitpid
Result:
don't suspend process calling waitpid
Created attachment 467767[details]
reproducer
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: 6.0
Release Number: GA
Architecture: x86_64
Kernel Version: 2.6.32-71.el6.x86_64
Related Package Version: strace-4.5.19-1.6.el6.x86_64
Related Middleware/Application: none
Drivers or hardware or architecture dependency:
none
How reproducible:
Always
Step to Reproduce:
I attach a reproducer: testpro.c
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: RHEL6.1
Errata Request: async errata for 6.0.z
Hotfix Request: No
Additional Info:
This issue happens to RHEL5.6alpha too. I will make new ticket for this
issue
for RHEL5.6alpha too.
- The sosreport file is attached.
sosreport-rhel60GA-Intel64-20101101093400-e832.tar.xz
(The md5sum is: cb2aaf4acbd4d683e22eca73e9b7e832)
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
Cause:
Consequence:
Fix:
Result:
Technical note updated. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
Diffed Contents:
@@ -1,7 +1,10 @@
Cause:
+When strace is used, waitpid without __WCLONE or __WALL option waits for children created by clone
Consequence:
Fix:
+don't suspend process calling waitpid
-Result:+Result:
+don't suspend process calling waitpid
An advisory 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 therefore 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-2011-0338.html
Created attachment 467767 [details] reproducer 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: 6.0 Release Number: GA Architecture: x86_64 Kernel Version: 2.6.32-71.el6.x86_64 Related Package Version: strace-4.5.19-1.6.el6.x86_64 Related Middleware/Application: none Drivers or hardware or architecture dependency: none How reproducible: Always Step to Reproduce: I attach a reproducer: testpro.c 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: RHEL6.1 Errata Request: async errata for 6.0.z Hotfix Request: No Additional Info: This issue happens to RHEL5.6alpha too. I will make new ticket for this issue for RHEL5.6alpha too. - The sosreport file is attached. sosreport-rhel60GA-Intel64-20101101093400-e832.tar.xz (The md5sum is: cb2aaf4acbd4d683e22eca73e9b7e832)