php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68227 APCu: apache processes block on service shut down
Submitted: 2014-10-14 13:22 UTC Modified: 2016-11-18 22:08 UTC
From: hugo at domibay dot es Assigned:
Status: Open Package: APC (PECL)
PHP Version: 5.5.17 OS: CentOS 6.5
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-10-14 13:22 UTC] hugo at domibay dot es
Description:
------------
Hello,

To store User Cache Variables we installed the PECL module php-pecl-apcu 4.0.6 on CentOS 6.5 with Apache 2.2 and php 5.5.17

Each time on service shut down I find errors in the log of the apache service.
[Mon Oct 13 09:00:08 2014] [warn] child process 26218 still did not exit, sending a SIGTERM
[Mon Oct 13 09:00:09 2014] [warn] child process 26219 still did not exit, sending a SIGTERM
[Mon Oct 13 09:00:09 2014] [warn] child process 26220 still did not exit, sending a SIGTERM
[Mon Oct 13 09:00:09 2014] [warn] child process 26221 still did not exit, sending a SIGTERM
[Mon Oct 13 09:00:09 2014] [warn] child process 21249 still did not exit, sending a SIGTERM
[Mon Oct 13 09:00:15 2014] [error] child process 6381 still did not exit, sending a SIGKILL
[Mon Oct 13 09:00:15 2014] [error] child process 6382 still did not exit, sending a SIGKILL
[Mon Oct 13 09:00:15 2014] [error] child process 6384 still did not exit, sending a SIGKILL
[Mon Oct 13 09:00:15 2014] [error] child process 6385 still did not exit, sending a SIGKILL
[Mon Oct 13 09:00:15 2014] [error] child process 6386 still did not exit, sending a SIGKILL
[Mon Oct 13 09:00:15 2014] [error] child process 6387 still did not exit, sending a SIGKILL
[Mon Oct 13 09:00:16 2014] [notice] caught SIGTERM, shutting down

And also during the day I find registers of errors at different times according to the use of the server.
[Tue Oct 14 11:09:29 2014] [notice] child pid 8182 exit signal Segmentation fault (11)
[Tue Oct 14 11:10:40 2014] [notice] child pid 8206 exit signal Segmentation fault (11)
[Tue Oct 14 12:15:32 2014] [notice] child pid 8199 exit signal Segmentation fault (11)
[Tue Oct 14 12:15:32 2014] [notice] child pid 14530 exit signal Segmentation fault (11)
[Tue Oct 14 12:49:37 2014] [notice] child pid 8176 exit signal Segmentation fault (11)

The Apache Error "child process XXXX still did not exit, sending a SIGKILL" does result in Orphan Apache Processes that block the system port and hinder the Apache Service from starting again.

The Apache Service restart fails and the whole Web Service stays down:
"
Stopping httpd: FAILED
Starting httpd: (98)Address already in use: make_sock: could not bind to address :::80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
FAILED
"


Test script:
---------------
These Errors are reported within the Apache log on all systems with APC y APCu installed that have web activity.

These Errors mainly manifest on days where the server is used.
Another system with the same configuration, but that is used only eventually, does not report these errors.


Expected result:
----------------
Apache Errors like "Segmentation fault (11)" or "child process 6387 still did not exit, sending a SIGKILL" should not occur.

Actual result:
--------------
The Apache Error "child process XXXX still did not exit, sending a SIGKILL" does result in Orphan Apache Processes that block the system port and hinder the Apache Service from starting again.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-18 22:08 UTC] kalle@php.net
-Summary: apache processes block on service shut down +Summary: APCu: apache processes block on service shut down -Type: Security +Type: Bug
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC