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: 2021-06-22 12:18 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: hugo at domibay dot es Assigned: cmb (profile)
Status: Closed Package: APC (PECL)
PHP Version: 5.5.17 OS: CentOS 6.5
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hugo at domibay dot es
New email:
PHP Version: OS:

 

 [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
 [2021-06-22 12:18 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-06-22 12:18 UTC] cmb@php.net
The bug tracker of APCu has been moved to Github[1].  If you stll
experience this issue with the latest APCu release (5.1.20),
please report the issue there.

[1] <https://github.com/krakjoe/apcu/issues>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 01:01:28 2024 UTC