From:             michal at logix dot cz
Operating system: Linux, glibc 2.3.2
PHP version:      4CVS-2004-04-19 (stable)
PHP Bug Type:     Apache2 related
Bug description:  Apache crashes upon SIGHUP when PHP module is loaded

Description:
------------
Apache 2.0.49 and PHP 4.3.6 (as well as lates CVS snapshot).

When everything is up and running I remove one of the Apache's logfiles
(e.g. ~www/logs/access_log) and tell Apache to recreate it by calling
"killall -HUP httpd". 

Apache immediately crashes with the following in error_log:

[Mon Apr 19 15:26:08 2004] [notice] SIGHUP received.  Attempting to
restart
[Mon Apr 19 15:26:08 2004] [notice] seg fault or similar nasty error
detected in the parent process

When I disable loading of the PHP module in httpd.conf everything works
just fine. When I downgrade to PHP 4.3.4 it works as well.

Reproduce code:
---------------
Compile Apache 2.0.49 with 
./configure --prefix=/home/www --enable-http \
--enable-so --enable-usertrack

and PHP 4.3.6 with:
./configure --prefix=/home/www/php \
--with-apxs2=/home/www/bin/apxs

Install and run.

Make any request, remove ~www/logs/access_log and run 
'killall -HUP httpd'

Expected result:
----------------
access_log should be recreated

Actual result:
--------------
This appears in the error_log:

[Mon Apr 19 15:26:08 2004] [notice] SIGHUP received.  Attempting to
restart
[Mon Apr 19 15:26:08 2004] [notice] seg fault or similar nasty error
detected in the parent process

-- 
Edit bug report at http://bugs.php.net/?id=28061&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28061&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28061&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28061&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28061&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28061&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28061&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28061&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28061&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28061&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28061&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28061&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28061&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28061&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28061&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28061&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28061&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28061&r=float

Reply via email to