You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/04/14 12:20:53 UTC

DO NOT REPLY [Bug 39311] New: - Apache Crashes On several Graceful Restart requests coinciding in time with lot's of HTTP-requests

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39311>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39311

           Summary: Apache Crashes On several Graceful Restart requests
                    coinciding in time with lot's of HTTP-requests
           Product: Apache httpd-2
           Version: 2.0.50
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: ovchinnikov@slavgrad.ru


When several Graceful Restart requests (in my case, due to Log rotaiton) 
coincide with many HTTP-requests Apache crashes with the following message in 
error log:
[Thu Apr 13 13:03:40 2006] [notice] Graceful restart requested, doing restart
[Thu Apr 13 13:03:40 2006] [emerg] (2)No such file or directory: Couldn't 
initialize cross-process lock in child
[Thu Apr 13 13:03:41 2006] [notice] Apache/2.0.50 (FreeBSD) PHP/4.3.6 
configured -- resuming normal operations
[Thu Apr 13 13:03:41 2006] [alert] Child 99131 returned a Fatal 
error...\nApache is exiting!

It seems to be race condition and heavily reproducible.
More detailed description is provided on:
http://mail-archives.apache.org/mod_mbox/httpd-dev/200403.mbox/%
3c20040314201218.GB22315@clove.org%3e

We updated server to version 2.0.55, but source code analysis 
(file /server/mpm/prefork/prefork.c), reviewing of CHANGES file and bugzilla 
shows that bug is unfixed 

Our Server OS is FreeBSD 4.9;
Apache is running standart config with 6 virtual hosts

The simpliest path to patch is to change line 489 
of /server/mpm/prefork/prefork.c (v 2.0.55)
from
clean_child_exit(APEXIT_CHILDFATAL);
to
clean_child_exit(APEXIT_CHILDSICK);

I'm not Unix programmer, so didn't check the effect, consider it a suggestion

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 39311] - Apache Crashes On several Graceful Restart requests coinciding in time with lot's of HTTP-requests

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39311>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39311


james@nyi.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2.0.55                      |2.2.3




------- Additional Comments From james@nyi.net  2007-02-28 10:23 -------
I use graceful restarting to do log rotation and this is the first time I came
across this. I guess the race condition in the new version only comes up rarely?

[root@web2 ~]# tail -f -n 50 /var/log/httpd-error.log
...
[Wed Feb 28 13:00:01 2007] [notice] Graceful restart requested, doing restart
[Wed Feb 28 13:00:01 2007] [emerg] (2)No such file or directory: Couldn't
initialize cross-process lock in child (/var/run/accept.lock.39428) (5)
[Wed Feb 28 13:00:01 2007] [warn] (22)Invalid argument: Failed to enable the
'httpready' Accept Filter
[Wed Feb 28 13:00:01 2007] [notice] Apache configured -- resuming normal operations
[Wed Feb 28 13:00:01 2007] [alert] Child 37499 returned a Fatal error... Apache
is exiting!
[Wed Feb 28 13:00:56 2007] [warn] pid file /var/run/httpd.pid overwritten --
Unclean shutdown of previous Apache run?
[Wed Feb 28 13:00:56 2007] [notice] Apache configured -- resuming normal operations

[root@web2 ~]# httpd -v
Server version: Apache/2.2.3
Server built:   Sep 13 2006 14:13:54


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 39311] - Apache Crashes On several Graceful Restart requests coinciding in time with lot's of HTTP-requests

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39311>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39311


ovchinnikov@slavgrad.ru changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |critical
            Version|2.0.50                      |2.0.55




------- Additional Comments From ovchinnikov@slavgrad.ru  2006-05-04 05:16 -------
We updated server to 2.0.55 and today got the same error and server crash.
Here's our error log:

[Thu May 04 00:04:30 2006] [notice] Graceful restart requested, doing restart
[Thu May 04 00:04:30 2006] [emerg] (2)No such file or directory: Couldn't 
initialize cross-process lock in child
[Thu May 04 00:04:32 2006] [notice] Apache/2.0.55 (FreeBSD) PHP/4.3.6 
configured -- resuming normal operations
[Thu May 04 00:04:32 2006] [alert] Child 26695 returned a Fatal error... Apache 
is exiting!


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 39311] - Apache Crashes On several Graceful Restart requests coinciding in time with lot's of HTTP-requests

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39311>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39311





------- Additional Comments From axelseaa@modevia.com  2007-09-27 07:16 -------
After several graceful restarts after logrotate, we sporadically get:

[Wed Sep 26 03:00:02 2007] [notice] Graceful restart requested, doing restart
[Wed Sep 26 03:00:02 2007] [error] (9)Bad file descriptor: apr_socket_accept:
(client socket)
[Wed Sep 26 03:00:02 2007] [error] (9)Bad file descriptor: apr_socket_accept:
(client socket)
Syntax error on line 101 of /etc/apache2/server-tuning.conf:
Invalid command 'BrowserMatch', perhaps misspelled or defined by a module not
included in the server configuration
[Wed Sep 26 03:10:02 2007] [warn] pid file /var/run/httpd2.pid overwritten --
Unclean shutdown of previous Apache run?
[Wed Sep 26 03:10:02 2007] [notice] Apache/2.2.3 (Linux/SUSE) configured --
resuming normal operations


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 39311] - Apache Crashes On several Graceful Restart requests coinciding in time with lot's of HTTP-requests

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39311>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39311


axelseaa@modevia.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |axelseaa@modevia.com




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org