From:             artur dot kotyrba at gmail dot com
Operating system: Gentoo Linux 64 bit
PHP version:      5.3CVS-2008-08-19 (CVS)
PHP Bug Type:     Reproducible crash
Bug description:  Exception/Dynamic Function Call crash

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


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

Reply via email to