Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265547 - apache processes hanging in state "graceful finishing" after graceful restart - patch available
Summary: apache processes hanging in state "graceful finishing" after graceful restart...
Status: RESOLVED DUPLICATE of bug 231913
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-09 12:49 UTC by Marcel Meckel
Modified: 2009-07-05 16:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel Meckel 2009-04-09 12:49:20 UTC
apache processes keep hanging in state "graceful finishing" after issueing a

  /etc/init.d/apache2 reload

The problem is well knows to apache and a patch is available.

Please see

  https://issues.apache.org/bugzilla/show_bug.cgi?id=42829

for further reference and

  http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/server/mpm/prefork/prefork.c?r1=739608&r2=739607&pathrev=739608

for the patch which needs to be applied in gentoos ebuild.

Reproducible: Always

Steps to Reproduce:
1. start apache, do some requests
2. /etc/init.d/apache2 reload
3. http://localhost/server-status
Actual Results:  
processes in state "G" piling up.

in combination with mod_php and php connecting to a database like mysql you might have many mysql threads open in state "sleep" because of the apache/mod_php process not being shutdown.
Comment 1 Marcel Meckel 2009-04-09 13:08:50 UTC
I manually patched my installtion of www-servers/apache-2.2.9-r1 with the mentioned patch but the problem seems to persist :(

[Thu Apr 09 15:06:35 2009] [notice] Graceful restart requested, doing restart
[Thu Apr 09 15:06:35 2009] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)

Comment 2 Marcel Meckel 2009-04-14 16:27:11 UTC
As mentioned in the bug report the problem only occurs if apache is listening on more than one socket, e.g. port 80 and 443.
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2009-07-05 16:13:41 UTC
i have added the mentioned patch to 2.2.11-r1, otherwise this is probably a duplicate of bug 231913

*** This bug has been marked as a duplicate of bug 231913 ***