From: nightstorm at tlen dot pl Operating system: Arch Linux 64-bit PHP version: 5.2CVS-2009-05-27 (snap) PHP Bug Type: Reproducible crash Bug description: Exception + nested functions + classes crash PHP 5.2
Description: ------------ This an extended version of the code I've sent for bug #48408 that also crashes both PHP 5.2.9 and the latest snapshot of PHP 5.2 (with different debug backtrace). The same script crashes also the latest PHP 5.3-dev snapshot but generates a different backtrace. The information about the environment: - The script was run from PHP Command-Line Interface - No extra patches or modifications were used (pure snapshot) - No debugging symbols were used. - Operating system: Arch Linux x86_64. The problem may be related to http://bugs.php.net/bug.php?id=48408 as the reproduce code is similar. Reproduce code: --------------- See: http://media.zyxist.com/snippets/exception_segfault1.phps Expected result: ---------------- "Exception thrown" Actual result: -------------- Core was generated by `/usr/local/php/bin/php exception_segfault1.php'. Program terminated with signal 11, Segmentation fault. [New process 12255] #0 zend_do_fcall_common_helper_SPEC (execute_data=0x7fff56fcab90) at /usr/src/php-5.2-dev/Zend/zend_vm_execute.h:289 289 if (RETURN_VALUE_USED(ctor_opline)) { (gdb) backtrace #0 zend_do_fcall_common_helper_SPEC (execute_data=0x7fff56fcab90) at /usr/src/php-5.2-dev/Zend/zend_vm_execute.h:289 #1 0x0000000000704cd4 in execute (op_array=0x7feb4ee45b90) at /usr/src/php-5.2-dev/Zend/zend_vm_execute.h:92 #2 0x00000000006e2741 in zend_execute_scripts (type=8, retval=0x51, file_count=3) at /usr/src/php-5.2-dev/Zend/zend.c:1134 #3 0x00000000006a020f in php_execute_script (primary_file=0x7fff56fcd200) at /usr/src/php-5.2-dev/main/main.c:2025 #4 0x0000000000754afe in main (argc=2, argv=0x7fff56fcd3e8) at /usr/src/php-5.2-dev/sapi/cli/php_cli.c:1162 -- Edit bug report at http://bugs.php.net/?id=48409&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48409&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48409&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48409&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48409&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48409&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48409&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48409&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48409&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48409&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48409&r=support Expected behavior: http://bugs.php.net/fix.php?id=48409&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48409&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48409&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48409&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48409&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48409&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48409&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48409&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48409&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48409&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48409&r=mysqlcfg
