Edit report at https://bugs.php.net/bug.php?id=55704&edit=1

 ID:                 55704
 Updated by:         larue...@php.net
 Reported by:        j dot amend at gmail dot com
 Summary:            php_flag engine off crashes apache
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Apache2 related
 Operating System:   Gentoo linux
 PHP Version:        5.4SVN-2011-09-19 (snap)
 Block user comment: N
 Private report:     N

 New Comment:

this is so weird, since in the frame #0, the arkey is an invalid pointer, but 
it 
shoud be exactlly same as the name in #1, since I can not reproduce this in my 
environ,  could you do me a favor and try to find out the reason for how could 
this var be damaged?

you can try  to use gdb httpd, make a break point "b real_value_hnd", then exam 
it 
step by step, thanks


Previous Comments:
------------------------------------------------------------------------
[2011-09-20 13:43:29] j dot amend at gmail dot com

I just tried it with php5.4-201109192030 on my Mac (Apache/2.2.17, Mac OS X 
10.6.7) with the same result.

#0  0x00000001012e9e72 in _zend_hash_add_or_update (ht=0x10087d118, arKey=0x18 
<Address 0x18 out of bounds>, nKeyLength=7, pData=0x7fff5fbff350, nDataSize=24, 
pDest=0x0, flag=1) at /Users/Grayling/php5.4-201109192030/Zend/zend_hash.c:268
#1  0x000000010139a944 in real_value_hnd (cmd=0x7fff5fbff820, 
dummy=0x10087d118, name=0x100890f58 "engine", value=<value temporarily 
unavailable, due to optimizations>, status=2) at 
/Users/Grayling/php5.4-201109192030/sapi/apache2handler/apache_config.c:73
#2  0x000000010139a9dd in real_flag_hnd (cmd=0x7fff5fbff820, dummy=0x10087d118, 
arg1=0x100890f58 "engine", arg2=0x100890f60 "off", status=2) at 
/Users/Grayling/php5.4-201109192030/sapi/apache2handler/apache_config.c:98
#3  0x0000000100003595 in invoke_cmd ()
#4  0x00000001000047d8 in ap_walk_config_sub ()
#5  0x000000010000488b in ap_walk_config ()
#6  0x0000000100005ddd in ap_process_config_tree ()
#7  0x000000010000a26a in main ()

------------------------------------------------------------------------
[2011-09-16 08:30:13] larue...@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.4-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

I can not reproduce this in my environ, plz test with the svn-snap plz, thanks

------------------------------------------------------------------------
[2011-09-15 20:48:23] j dot amend at gmail dot com

Description:
------------
Since PHP 5.4 alpha 2 (alpha 1 still worked), apache crashes with a 
segmentation fault if "php_flag engine off" is anywhere in my apache 
configuration files.

Test script:
---------------
httpd.conf:
...
php_flag engine off
...

Expected result:
----------------
PHP is disabled in whatever context "php_flag engine off" is used.

Actual result:
--------------
Apache crashes with a segmentation fault, even for a configtest (apache2 -t).

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff04ddff9 in _zend_hash_add_or_update () from 
/usr/lib64/apache2/modules/libphp5.so


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55704&edit=1

Reply via email to