From:             php at grooky dot com
Operating system: RedHat 9
PHP version:      4.3.3RC1
PHP Bug Type:     Reproducible crash
Bug description:  Apache 2 Segfault when receiving a signal

Description:
------------
Apache 2 root process core when it received a signal (for example HUP or
USR1 at logrotation) when php module loaded.

Bug is reproductible at least with Apache 2.0.44 .45 .46 or .47 and with
php 4.3.1, 4.3.2, 4.3.3RC1, CVS-STABLE.

Bug is reproductible with linux 2.4.20 or 2.4.21 but NOT with the standard
RedHat 9 kernel.

To reproduce the segfault :
kill -HUP "pid of apache root process"
apachectl graceful

Error log show : "[notice] seg fault or similar nasty error detected in
the parent process"

Reproduce code:
---------------
php configure : ./configure --enable-debug --with-mysql --with-ldap
--with-gettext --enable-force-cgi-redirect
--with-apxs2=/tmp/apache2/bin/apxs --enable-track-vars
--with-config-file-path=/etc

standard php.ini

As apache core only with any custom kernel I tried (but not with redHat
one), here is my kernel configuration :
My kernel configuration :
http://www.grooky.com/linux.config

I found few people on newgroup's archive with exaclty the same segfault.
None got solution.

Expected result:
----------------
Expected result : apache should reload it's configration

Actual result:
--------------
(gdb) bt
#0  0x26a5cc20 in sapi_initialize_empty_request (tsrm_ls=0x8b776452) at
/usr/src/php-4.3.3RC1/main/SAPI.c:424
#1  0x26a57210 in php_module_startup (sf=0x26ad5e20,
additional_modules=0x26ad6100, num_additional_modules=1)
    at /usr/src/php-4.3.3RC1/main/main.c:1094
#2  0x26a93fdb in php_apache2_startup (sapi_module=0x26ad5e20) at
/usr/src/php-4.3.3RC1/sapi/apache2handler/sapi_apache2.c:297
#3  0x26a9410b in php_apache_server_startup (pconf=0x80da508,
plog=0x81165f8, ptemp=0x811d810, s=0x26ad5e20)
    at /usr/src/php-4.3.3RC1/sapi/apache2handler/sapi_apache2.c:396
#4  0x08094240 in ap_run_post_config (pconf=0x80da508, plog=0x81165f8,
ptemp=0x811d810, s=0x80de450) at config.c:131
#5  0x080986e2 in main (argc=3, argv=0x5db89cd4) at main.c:649
#6  0x267dba07 in __libc_start_main () from /lib/i686/libc.so.6

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

Reply via email to