ID:               48050
 Updated by:       [email protected]
 Reported By:      suzuki dot kp at gmail dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Scripting Engine problem
 Operating System: Linux
 PHP Version:      5.2.6


Previous Comments:
------------------------------------------------------------------------

[2009-04-30 05:00:23] suzuki dot kp at gmail dot com

Yes, this is fixed in the above source. 

Thanks
Suzuki

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

[2009-04-23 16:43:11] [email protected]

Please try using this CVS snapshot:

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

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



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

[2009-04-22 14:49:07] suzuki dot kp at gmail dot com

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 this bug report at http://bugs.php.net/?id=48050&edit=1

Reply via email to