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.

Bug 1467402

Summary: rotatelogs: creation of zombie processes when -p is used
Product: Red Hat Enterprise Linux 7 Reporter: Hung <hpham>
Component: httpdAssignee: Luboš Uhliarik <luhliari>
Status: CLOSED ERRATA QA Contact: Maryna Nalbandian <mnalband>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.3CC: bnater, dmasirka, jhouska, jkejda, jorton, luhliari
Target Milestone: rcKeywords: Patch, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: httpd-2.4.6-70.el7 Doc Type: Bug Fix
Doc Text:
Previously, when the ErrorLog directive used the rotatelogs command with the "-p" option, rotatelogs created zombie processes for the program specified with the "-p" option. This bug has been fixed, and zombie processes are no longer created in the described situation.
Story Points: ---
Clone Of:
: 1498020 (view as bug list) Environment:
Last Closed: 2018-04-10 14:45:22 UTC Type: Bug
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:    
Bug Blocks: 1403212, 1420851, 1465904, 1466370, 1473612, 1498020    

Description Hung 2017-07-03 16:43:37 UTC
Description of problem: Rotatelogs creates zombie processes for program specified in -p flag


Version-Release number of selected component (if applicable): httpd-2.4.6-45.el7_3.4.x86_64


How reproducible: Always


Steps to Reproduce:
Change ErrorLog directive to use rotatelogs command with -p flag. For example:

  ErrorLog "|/usr/sbin/rotatelogs -l -p /bin/gzip -f -L /var/log/httpd/error_log /tmp/error%h 100B"


Actual results: Results in defunct/zombie gzip process

Additional info: 
The problem is a duplicate to the one reported in RHEL 6 httpd : https://bugzilla.redhat.com/show_bug.cgi?id=1401694

The problem appears to be addressed in Apache 2.4.10 :
*) rotatelogs: Avoid creation of zombie processes when -p is used on
Unix platforms. [Joe Orton]
http://archive.apache.org/dist/httpd/CHANGES_2.4.10

Comment 4 Jan Houska 2017-07-19 14:14:48 UTC
The same problem reported in 
https://bugzilla.redhat.com/show_bug.cgi?id=1451333.  It seems that this bug is a duplicate.

Comment 8 Luboš Uhliarik 2017-10-03 08:35:15 UTC
*** Bug 1451333 has been marked as a duplicate of this bug. ***

Comment 14 errata-xmlrpc 2018-04-10 14:45:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0826