From:             suzuki dot kp at gmail dot com
Operating system: Linux
PHP version:      5.2.9
PHP Bug Type:     Scripting Engine problem
Bug description:  Test Zend/tests/bug30707.phpt Fails

Description:
------------
Test Zend/tests/bug30707.phpt Fails on 5.2.9.

This test has been failing since at least 5.2.6 version.

Program received signal SIGSEGV, Segmentation fault.
zend_do_fcall_common_helper_SPEC (execute_data=0x7fffffffbbf0) at
/usr/src/packages/BUILD/php-5.2.6/Zend/zend_vm_execute.h:135
135             if (EX(function_state).function->common.fn_flags &
(ZEND_ACC_ABSTRACT|ZEND_ACC_DEPRECATED)) {
(gdb) bt
#0  zend_do_fcall_common_helper_SPEC (execute_data=0x7fffffffbbf0) at
/usr/src/packages/BUILD/php-5.2.6/Zend/zend_vm_execute.h:135
#1  0x0000000000657704 in execute (op_array=0xb39e78) at
/usr/src/packages/BUILD/php-5.2.6/Zend/zend_vm_execute.h:92
#2  0x00000000006349e1 in zend_execute_scripts (type=8, retval=0xb3a5a8,
file_count=3) at /usr/src/packages/BUILD/php-5.2.6/Zend/zend.c:1215
#3  0x00000000005f21cf in php_execute_script (primary_file=0x7fffffffe1e0)
at /usr/src/packages/BUILD/php-5.2.6/main/main.c:2026
#4  0x00000000006a6d0e in main (argc=2, argv=0x7fffffffe3c8) at
/usr/src/packages/BUILD/php-5.2.6/sapi/cli/php_cli.c:1146
(gdb) p *(execute_data)
$11 = {opline = 0xb3a5a8, function_state = {function_symbol_table =
0xb3d810, function = 0x0, reserved = {0x43755fce0d4c3be9, 0xb39f90, 0x0, 
      0x614740}}, fbc = 0x0, op_array = 0xb39e78, object = 0x0, Ts =
0x7fffffffba70, CVs = 0x7fffffffba50, original_in_execution = 0 '\0', 
  symbol_table = 0x9e6f28, prev_execute_data = 0x0, old_error_reporting =
0x0}


fbc was zero and thats getting set into function at :

Breakpoint 2, ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0x7fffffffbbf0) at
/usr/src/packages/BUILD/php-5.2.6/Zend/zend_vm_execute.h:321
321             EX(function_state).function = EX(fbc);



Reproduce code:
---------------
Zend/tests/bug30707.phpt

Actual result:
--------------
Segmentation fault.

-- 
Edit bug report at http://bugs.php.net/?id=48050&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=48050&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=48050&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=48050&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=48050&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48050&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48050&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48050&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48050&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48050&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48050&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48050&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48050&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48050&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48050&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48050&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48050&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48050&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48050&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48050&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48050&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48050&r=mysqlcfg

Reply via email to