php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48050 Test Zend/tests/bug30707.phpt Fails
Submitted: 2009-04-22 14:49 UTC Modified: 2009-04-30 08:47 UTC
From: suzuki dot kp at gmail dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.2.6 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: suzuki dot kp at gmail dot com
New email:
PHP Version: OS:

 

 [2009-04-22 14:49 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-23 16:43 UTC] jani@php.net
Please try using this CVS snapshot:

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

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


 [2009-04-30 05:00 UTC] suzuki dot kp at gmail dot com
Yes, this is fixed in the above source. 

Thanks
Suzuki
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Dec 04 13:00:01 2025 UTC