#24567 [Opn->Fbk]: Apache 2 Segfault when receiving a signal
ID: 24567
Updated by: sniper@php.net
Reported By: php at grooky dot com
-Status: Open
+Status: Feedback
-Bug Type: Reproducible crash
+Bug Type: Apache2 related
Operating System: RedHat 9
PHP Version: 4.3.3RC1
New Comment:
I can't reproduce this (I have kernel 2.4.19 SMP).
What is the version of the stock RH kernel this works with?
Previous Comments:
------------------------------------------------------------------------
[2003-07-09 15:34:47] php at grooky dot com
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 this bug report at http://bugs.php.net/?id=24567&edit=1
Thread (9 messages)