Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 539506 - [4.7] wait4 blocks on non-existing pid
[4.7] wait4 blocks on non-existing pid
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel (Show other bugs)
4.7
All Linux
urgent Severity urgent
: rc
: ---
Assigned To: Oleg Nesterov
Petr Beňas
: ZStream
Depends On:
Blocks: 532951 555869 567321
  Show dependency treegraph
 
Reported: 2009-11-20 07:25 EST by Andreas Schwab
Modified: 2015-01-04 17:59 EST (History)
18 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
If a process was using ptrace() to trace a multi-threaded process, and that multi-threaded process dumped its core, the process performing the trace could hang in wait4(). This issue could be triggered by running "strace -f" on a multi-threaded process that was dumping its core, resulting in the strace command hanging.
Story Points: ---
Clone Of: 532951
: 567321 (view as bug list)
Environment:
Last Closed: 2011-02-16 10:45:41 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:0263 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux 4.9 kernel security and bug fix update 2011-02-16 10:14:55 EST

  None (edit)
Comment 1 Andreas Schwab 2009-11-20 07:27:30 EST
 2221 pts/3    S+     0:00      |   \_ ./strace -o trace -f /root/thread3
 2222 pts/3    Dl+    0:00      |       \_ /root/thread3
 2223 pts/3    Z+     0:00      |           \_ [thread3] <defunct>
# strace -p 2221
Process 2221 attached - interrupt to quit
wait4(2420,  <unfinished ...>
Process 2221 detached
# ps 2420
  PID TTY      STAT   TIME COMMAND
Comment 2 Chris Ward 2009-11-30 05:49:14 EST
This issue is blocking the release of a 4.8.z kernel. What is the recommended course of action?

Ron, using an imported RHTS from RHTS it was discovered that the 4.8.z kernel exhibits what appears to be a regression. I'm not certain though of what nvr it was re-introduced.
Comment 3 Michal Nowak 2009-11-30 06:08:45 EST
This bug blocks strace 4.8.z erratum RHBA-2009:9039.

This bug is not a regression, it always used to be like this but: without this fix we won't reliably fix bug 532951 (RHBA-2009:9039).
Comment 4 Vitaly Mayatskikh 2009-12-14 07:21:07 EST
Posted to RHKL today. I agree with Michal, this is not a regression.
Comment 5 RHEL Product and Program Management 2010-01-05 09:50:23 EST
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.
Comment 6 Linda Wang 2010-01-08 00:02:51 EST
There are heavy discussion about Vitaly's patch on rkml, and since
Vitaly is on pto 'til 1/13, Oleg has kind enough to take over
the discussion and preparing a new patch for this issue.

He was able to get help to test out his new patch, but given the 
complexity of the code paths, during testing, new issue
was revealed. Therefore he is currently looking into the new issue.

Therefore, move the bug back to ASSI state.
Comment 14 Vivek Goyal 2010-01-19 16:06:43 EST
Committed in 89.19.EL . RPMS are available at http://people.redhat.com/vgoyal/rhel4/
Comment 31 Petr Beňas 2010-11-19 06:35:43 EST
Reproduced in 89.18.EL and verified in 89.19.EL.
Comment 33 Douglas Silas 2011-01-30 17:56:08 EST
    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:
If a process was using ptrace() to trace a multi-threaded process, and that multi-threaded process dumped its core, the process performing the trace could hang in wait4(). This issue could be triggered by running "strace -f" on a multi-threaded process that was dumping its core, resulting in the strace command hanging.
Comment 34 errata-xmlrpc 2011-02-16 10:45:41 EST
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/RHSA-2011-0263.html

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