Description of problem: The ps command sometimes crashes with the "double free or corruption" glibc error. Version-Release number of selected component (if applicable): procps-3.2.3-8.9 How reproducible: Can't reproduce Steps to Reproduce: 1. run "ps -e -o user -o pid -o ppid -o args" Actual results: Abort. Expected results: Normal run. Additional info: We are not able to reproduce the behaviour, however the reproducer in the customer's environment is the very same as in the bug #487700 and so is the fix (already tested and confirmed by the customer). This is essentially a request to include the fix for bug #487700 also in the RHEL-4 procps.
Created attachment 359778 [details] Backported patch from bug #487700 Tested and confirmed to fix the problem by the customer.
We're seeing this bug as well on RHEL 4.8 with procps-3.2.3-8.17, and the reproducer from Bug 487700 works for us as well (and it didn't work the first few times, so if it's not working for you just keep trying it). So please do include the fix in RHEL4's procps.
Bug 487700 comment 6 has a reproducer for this.
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,8 @@ Cause: - +Uncomplete condition in ps. Consequence: - +ps crashes due to access to wrong memory Fix: - +Added additional condition. -Result:+Result: +ps doesn't crash now.
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,8 +1 @@ -Cause: +Previously, an incomplete condition in ps could cause it to access the wrong memory. Due to this behavior, ps could fail and unexpectedly close. This update adds a condition in the code, and ps no longer fails.-Uncomplete condition in ps. -Consequence: -ps crashes due to access to wrong memory -Fix: -Added additional condition. -Result: -ps doesn't crash now.
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-0249.html