php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45858 Exception/Dynamic Function Call crash
Submitted: 2008-08-19 07:56 UTC Modified: 2009-02-19 01:00 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:0 of 0 (0.0%)
From: artur dot kotyrba at gmail dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.3CVS-2008-08-19 (CVS) OS: Gentoo Linux 64 bit
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: artur dot kotyrba at gmail dot com
New email:
PHP Version: OS:

 

 [2008-08-19 07:56 UTC] artur dot kotyrba at gmail dot com
Description:
------------
PHP compiled without debugging symbols would crash while executing the attached code.

If I recompile PHP with --enable-debug, it runs fine.


Reproduce code:
---------------
<?php
$f = 'var_dump';

function myFunc(){
  throw new Exception();
}

try {
  $f(myFunc());
} catch ( Exception $e ) {
  echo 'Exception', PHP_EOL;
}

try {
  $f(myFunc());
} catch ( Exception $e ) {
  echo 'Exception', PHP_EOL;
}

Expected result:
----------------
Exception
Exception

Actual result:
--------------
Exception
Segmentation fault

Backtrace:
#0  _zval_ptr_dtor (zval_ptr=0x7fdab0ebc080) at /home/udat/dev/zend/php5/Zend/zend.h:380
#1  0x00000000006a1bd3 in ZEND_HANDLE_EXCEPTION_SPEC_HANDLER (execute_data=0x7fdab0ebc050)
    at /home/udat/dev/zend/php5/Zend/zend_vm_execute.h:637
#2  0x000000000069a7a9 in execute (op_array=0xd7eaf0) at /home/udat/dev/zend/php5/Zend/zend_vm_execute.h:104
#3  0x0000000000671f35 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/udat/dev/zend/php5/Zend/zend.c:1197
#4  0x000000000061fd97 in php_execute_script (primary_file=0x7fffb8ff2ac0) at /home/udat/dev/zend/php5/main/main.c:2069
#5  0x00000000006ef8d6 in main (argc=2, argv=0x7fffb8ff2d28) at /home/udat/dev/zend/php5/sapi/cli/php_cli.c:1130


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-29 15:42 UTC] artur dot kotyrba at gmail dot com
I tried with http://snaps.php.net/php5.3-latest.tar.gz and result is unchanged.
 [2008-10-25 20:11 UTC] felipe@php.net
Please try using this CVS snapshot:

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

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


 [2008-11-02 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-02-11 21:27 UTC] felipe@php.net
Please try using this CVS snapshot:

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

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


 [2009-02-19 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 10:01:32 2024 UTC