Apache exits when sent SIGUSR1

From: Date: Thu, 24 Feb 2000 18:24:47 +0000
Subject: Apache exits when sent SIGUSR1
Groups: php.version4 
Request: Send a blank email to php-version4+get-10887@lists.php.net to get a copy of this message
Suddenly when trying the absolute latest CVS w/ Thies' patch for configuration-parser.y, httpd can't handle SIGUSR1 any more. Instead of restarting gracefully (apachectl graceful) the root-httpd process exits, leaving its' orphaned children. It appears that upon receiving SIGUSR1, httpd starts rereading it's configuration files and then exits. Error log report below: Below are: 1) error_log output from the incident 2) the last few lines from "strace", attached to the root httpd process when it receives SIGUSR1. Perhaps this has nothing to do with PHP? I was always able to use "apachectl graceful" before going from apache-1.3.9/PHP-4.0b2 to apache-1.3.11/PHP-4.0b4+ /Johan Ekenberg error_log output: ========================================================= [Thu Feb 24 18:45:11 2000] [notice] SIGUSR1 received. Doing graceful restart critical_begin() failed: Invalid argument critical_begin() failed: Invalid argument [Thu Feb 24 18:45:18 2000] [notice] Apache/1.3.11 (Unix) mod_perl/1.21 PHP/4.0b4pl1 mod_ssl/2.5.0 OpenSSL/0.9.4 configured -- resuming normal operations [Thu Feb 24 18:45:18 2000] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec) [Thu Feb 24 18:45:18 2000] [alert] Child 24505 returned a Fatal error... Apache is exiting! critical_begin() failed: Identifier removed critical_begin() failed: Identifier removed critical_begin() failed: Identifier removed ========================================================= last lines of strace -p <http-pid> upon receiving SIGUSR1 rereads config, then: ========================================================= open("/usr/local/apache/logs/httpd.lock.23287", O_WRONLY|O_CREAT|O_EXCL, 0644) = 3 fcntl(3, F_DUPFD, 15) = 21 close(3) = 0 unlink("/usr/local/apache/logs/httpd.lock.23287") = 0 sigaction(SIGSEGV, {0x8188660, [], SA_ONESHOT}, NULL) = 0 sigaction(SIGBUS, {0x8188660, [], SA_ONESHOT}, NULL) = 0 sigaction(SIGABRT, {0x8188660, [], SA_ONESHOT}, NULL) = 0 sigaction(SIGILL, {0x8188660, [], SA_ONESHOT}, NULL) = 0 sigaction(SIGTERM, {0x8188760, [], 0}, NULL) = 0 sigaction(SIGINT, {0x8188760, [], 0}, NULL) = 0 sigaction(SIGXCPU, {SIG_DFL}, NULL) = 0 sigaction(SIGXFSZ, {SIG_DFL}, NULL) = 0 sigaction(SIGPIPE, {SIG_IGN}, NULL) = 0 sigaction(SIGHUP, {0x8188770, [HUP USR1], 0}, NULL) = 0 sigaction(SIGUSR1, {0x8188770, [HUP USR1], 0}, NULL) = 0 time(NULL) = 951414318 write(15, "[Thu Feb 24 18:45:18 2000] [noti"..., 153) = 153 time(NULL) = 951414318 write(15, "[Thu Feb 24 18:45:18 2000] [noti"..., 101) = 101 wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], WNOHANG, NULL) = 24507 time(NULL) = 951414318 fork() = 24631 wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], WNOHANG, NULL) = 24506 time(NULL) = 951414318 fork() = 24632 wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 15], WNOHANG, NULL) = 24505 time(NULL) = 951414318 write(15, "[Thu Feb 24 18:45:18 2000] [aler"..., 93) = 93 _exit(15) = ? =============================================

« previous php.version4 (#10887) next »