PHP 4.0 Bug #7326 Updated: date causing httpd children to seg fault?
| From: | sniper@php.net | Date: | Sun, 31 Dec 2000 01:18:59 +0000 |
| Subject: | PHP 4.0 Bug #7326 Updated: date causing httpd children to seg fault? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-42705@lists.php.net to get a copy of this message | ||
ID: 7326
Updated by: sniper
Reported By: tammy@synchronis.com
Old-Status: Feedback
Status: Closed
Bug Type: Reproduceable crash
Assigned To:
Comments:
No feedback. And I can't reproduce this with PHP 4.0.4
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-11-21 04:30:23] sniper@php.net
Could you please try latest snapshot from http://snaps.php.net/
to verify this is still happening
and if it is, to provide current backtrace ?
--
---------------------------------------------------------------------------
[2000-10-18 19:51:33] tammy@synchronis.com
I am running (RedHat) Linux 2.0.36.
I am running apache 1.3.12 configured with:
./configure --prefix=/usr/local/test-apache
--enable-module=all
--enable-rule=EAPI=yes
--disable-module=ssl
--activate-module=src/modules/php4/libphp4.a
PHP4.0.1pl1 configured with:
./configure --with-mysql=/Developer/Database/mysql --with-apache=../apache_1.3.12
--enable-track-vars --with-config-file-path=/usr/local/test-apache/conf --enable-trans-sid
I get these sorts of messages in the apache error log (when not run in gdb):
[Wed Oct 18 16:38:39 2000] [notice] child pid 17013 exit signal Segmentation fault (11)
[Wed Oct 18 16:38:46 2000] [notice] child pid 17014 exit signal Segmentation fault (11)
[Wed Oct 18 16:38:47 2000] [notice] child pid 17015 exit signal Segmentation fault (11)
[Wed Oct 18 16:38:51 2000] [notice] child pid 17016 exit signal Segmentation fault (11)
[Wed Oct 18 16:38:52 2000] [notice] child pid 17017 exit signal Segmentation fault (11)
[Wed Oct 18 16:38:54 2000] [notice] child pid 17018 exit signal Segmentation fault (11)
[Wed Oct 18 16:38:55 2000] [notice] child pid 17019 exit signal Segmentation fault (11)
[Wed Oct 18 16:38:58 2000] [notice] child pid 17020 exit signal Segmentation fault (11)
[Wed Oct 18 16:38:59 2000] [notice] child pid 17022 exit signal Segmentation fault (11)
[Wed Oct 18 16:38:59 2000] [notice] child pid 17021 exit signal Segmentation fault (11)
I get this backtrace from gdb when run with '-X -f
/usr/local/test-apache/conf/httpd.conf':
(gdb) bt
#0 0x2966494f in chunk_free (ar_ptr=0x296b9420, p=0x820e0e0) at malloc.c:2959
#1 0x296647c1 in __libc_free (mem=0x820e0e8) at malloc.c:2872
#2 0x80be96d in _efree (ptr=0x820e0f4) at zend_alloc.c:216
#3 0x80c80f4 in _zval_dtor (zvalue=0x820de8c) at zend_variables.c:62
#4 0x80c3446 in _zval_ptr_dtor (zval_ptr=0x82540c0) at zend_execute_API.c:272
#5 0x80cb5c1 in zend_hash_destroy (ht=0x8253824) at zend_hash.c:544
#6 0x80c810b in _zval_dtor (zvalue=0x8253ea4) at zend_variables.c:69
#7 0x80c3446 in _zval_ptr_dtor (zval_ptr=0x81f1538) at zend_execute_API.c:272
#8 0x80cb5c1 in zend_hash_destroy (ht=0x81b6ac8) at zend_hash.c:544
#9 0x80c32ca in shutdown_executor () at zend_execute_API.c:172
#10 0x80c8abb in zend_deactivate () at zend.c:511
#11 0x80700b8 in php_request_shutdown (dummy=0x0) at main.c:661
#12 0x806e4ca in php_apache_request_shutdown ()
#13 0x811fcca in run_cleanups ()
#14 0x811e500 in ap_clear_pool ()
#15 0x811e575 in ap_destroy_pool ()
#16 0x811e4ec in ap_clear_pool ()
#17 0x812d87c in child_main ()
#18 0x812dee8 in make_child ()
#19 0x812e043 in startup_children ()
#20 0x812e630 in standalone_main ()
#21 0x812eea3 in main ()
I am running the following script:
<HTML>
<HEAD>
</HEAD>
<BODY BGCOLOR="Black" topmargin='0' leftmargin='0'
marginheight='0' marginwidth='0' TEXT="#CC6633" LINK="#FF0
000" VLINK="#FF6633" ALINK="#FF6633">
<BR>
<FONT FACE="ARIAL,HELVETICA,SANS-SERIF"><? echo date('m-d-Y T');
?></FONT>
<BR>
</BODY>
</HTML>
Pretty basic script. Shouldn't CRASH httpd children right?!
P.S. I had crashes with 4.0.2, 4.0.3 and 4.0.3pl1 as well. I reverted back to 4.0.1pl2 and the
crashes happened less often. That is when I
broke down and ran gdb on the setup. It crashes pretty consistently now every 2-3rd time the script
is called.
When I reloaded the script 25 times, I got 12 seg faults in the error_log.
E_ALL error logging is turned on and I get no warnings or anything in the php error log.
Is my simple PHP script the (valid) cause of this? Any help appreciated:)
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7326