php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35137 crash with graceful restart
Submitted: 2005-11-07 12:24 UTC Modified: 2005-11-09 09:54 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: david dot micheneau at in-fusio dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.4.1 OS: solaris 9
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: david dot micheneau at in-fusio dot com
New email:
PHP Version: OS:

 

 [2005-11-07 12:24 UTC] david dot micheneau at in-fusio dot com
Description:
------------
Hi,

Every night I do a log rotation and I use the command ./bin/apachectl
graceful
Apache was down and I see the same error in logs :


It seems that the problem comes from PHP version
(http://bugs.php.net/bug.php?id=27735).

However on this server I use the oracle instant client oci8, Solaris 9,
Apache 2.0.52, PHP 4.4.1 

I've test compilation on PHP-4.4.1 --without-pcre options and i've same problem.
I've downgrade PHP version to 4.3.4 : same results.
I've downgrade Apache to 2.0.48 : and no is it ok.

I've also post a mail to users mailing list Apache.

Do you have a patch for my PHP-4.4.1 ? 

Actual result:
--------------
[Thu Nov 03 03:10:01 2005] [notice] SIGUSR1 received.  Doing graceful restart
[Thu Nov 03 03:10:02 2005] [notice] seg fault or similar nasty error detected in the parent process


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-07 15:28 UTC] sniper@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2005-11-08 10:46 UTC] david dot micheneau at in-fusio dot com
(gdb) bt
#0  0xf96eeddc in php_apache_sapi_header_handler (sapi_header=0xffbfec08, sapi_headers=0x1870a8, tsrm_ls=0x24e84e)
    at /home/hot/php-4.4.1/sapi/apache2handler/sapi_apache2.c:104
#1  0xf96a29b8 in sapi_header_op (op=SAPI_HEADER_ADD, arg=0x0, tsrm_ls=0x18a1d8) at /home/hot/php-4.4.1/main/SAPI.c:679
#2  0xf96a2608 in sapi_add_header_ex (header_line=0x0, header_line_len=0, duplicate=216 '?', replace=0 '\0', tsrm_ls=0x18a1d8)
    at /home/hot/php-4.4.1/main/SAPI.c:487
 [2005-11-08 10:56 UTC] sniper@php.net
What MPM are you using with Apache2?

 [2005-11-08 11:37 UTC] david dot micheneau at in-fusio dot com
I use MPM worker.
for information see my compilation conf :
"./configure" \
"--prefix=/opt/local/http-2.0.55" \
"--with-mpm=worker" \
"--disable-ssl" \
"--disable-auth-dbm" \
"--with-perl" \
"--disable-cgid" \
"--enable-cgi" \
"--disable-suexec" \
"--enable-vhost-alias" \
"--disable-ssl" \
"--enable-alias" \
"--enable-proxy" \
"--enable-headers" \
"--enable-sigchild" \
"--enable-rewrite" \
"--enable-so" \
 [2005-11-08 11:48 UTC] sniper@php.net
Threaded Apache2 is not really supported by PHP.
Can your reproduce this when using the prefork MPM?

 [2005-11-08 14:30 UTC] david dot micheneau at in-fusio dot com
Yes same problem with prefork MPM.
See the back trace: 

(gdb) bt
#0  0xf96eeddc in php_apache_sapi_header_handler (sapi_header=0xffbfebd8, sapi_headers=0x185248, tsrm_ls=0x24c9ee)
    at /home/hot/php-4.4.1/sapi/apache2handler/sapi_apache2.c:104
#1  0xf96a29b8 in sapi_header_op (op=SAPI_HEADER_ADD, arg=0x0, tsrm_ls=0x188378) at /home/hot/php-4.4.1/main/SAPI.c:679
#2  0xf96a2608 in sapi_add_header_ex (header_line=0x0, header_line_len=0, duplicate=120 'x', replace=0 '\0', tsrm_ls=0x188378)
    at /home/hot/php-4.4.1/main/SAPI.c:487
(gdb)
 [2005-11-08 14:37 UTC] sniper@php.net
Did you reconfigure/compile PHP? 
 [2005-11-08 15:23 UTC] david dot micheneau at in-fusio dot com
oups...sorry i forget to recompile PHP.

So a new comportment with prefork option.

[Tue Nov 08 15:20:25 2005] [error] (12)Not enough space: fork: Unable to fork new process

But we have enought space on the server:

root@longnose: /home/hot/php-4.4.1 >df -h
Syst?me de fichiers  taille utilis?  dispo capacit?  Mont? sur
/dev/md/dsk/d0         4,8G   4,2G   556M    89%    /
/proc                    0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
fd                       0K     0K     0K     0%    /dev/fd
swap                    16M    40K    16M     1%    /var/run
swap                   158M   142M    16M    90%    /tmp
/dev/md/dsk/d7          26G   5,8G    20G    23%    /data

And now it's impossible to stop Apache correctly...i've 29 httpd process before the error message in logs.
 [2005-11-08 17:04 UTC] sniper@php.net
So, what makes you think this is a PHP problem?
 [2005-11-09 08:59 UTC] david dot micheneau at in-fusio dot com
i'll try to compile with Apache-1.3...i've read an article about oracle instant client, and Apache foundation recommand to use Apache 1.3 with oci8 driver: http://www.oracle.com/technology/pub/notes/technote_php_instant.html
 [2005-11-09 09:51 UTC] david dot micheneau at in-fusio dot com
So now is it working well with Apache-1.3.34, PHP-4.4.1 and oci8.
I think really that the problem don't come from PHP.

Thanks.
 [2005-11-09 09:54 UTC] tony2001@php.net
Bogusified by user request.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 10 12:01:33 2025 UTC