#41295 [NEW]: Crash when calling each()

From: Date: Sat, 05 May 2007 10:58:08 +0000
Subject: #41295 [NEW]: Crash when calling each()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-112280@lists.php.net to get a copy of this message
From: php at fiddaman dot net Operating system: Solaris SPARC 64-bit PHP version: 5CVS-2007-05-05 (snap) PHP Bug Type: Reproducible crash Bug description: Crash when calling each() Description: ------------ I upgraded from 5.2.1 to 5.2.2 and PHP started crashing with my application so I downloaded the latest snapshot and configured with --disable-all with the same result. Reproduce code: --------------- <?php $p = array('id'); print_r(each($p)); ?> Expected result: ---------------- Array ( [1] => id [value] => id [0] => 0 [key] => 0 ) Actual result: -------------- Starting program: /data/src/build/php5.2-200705050830/sapi/cli/php /test.php Program received signal SIGSEGV, Segmentation fault. 0x00000001001081b0 in _zval_ptr_dtor (zval_ptr=0x0) at /data/src/build/php5.2-200705050830/Zend/zend_execute_API.c:412 412 (*zval_ptr)->refcount--; (gdb) where #0 0x00000001001081b0 in _zval_ptr_dtor (zval_ptr=0x0) at /data/src/build/php5.2-200705050830/Zend/zend_execute_API.c:412 #1 0x0000000100147340 in zend_do_fcall_common_helper_SPEC ( execute_data=0xffffffff7fffeed8) at /data/src/build/php5.2-200705050830/Zend/zend_execute.h:155 #2 0x00000001001371d0 in execute (op_array=0xffffffff7ffff0b0) at /data/src/build/php5.2-200705050830/Zend/zend_vm_execute.h:92 #3 0x0000000100116b18 in zend_execute_scripts (type=3576176, retval=0x0, file_count=3457024) at /data/src/build/php5.2-200705050830/Zend/zend.c:1134 #4 0x00000001000cdac8 in php_execute_script (primary_file=0x0) at /data/src/build/php5.2-200705050830/main/main.c:1794 #5 0x00000001001a53f8 in main (argc=0, argv=0x0) at /data/src/build/php5.2-200705050830/sapi/cli/php_cli.c:1130 -- Edit bug report at http://bugs.php.net/?id=41295&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41295&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41295&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41295&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41295&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41295&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41295&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41295&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41295&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41295&r=support Expected behavior: http://bugs.php.net/fix.php?id=41295&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41295&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41295&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41295&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41295&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41295&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41295&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41295&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41295&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41295&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41295&r=mysqlcfg

« previous php.bugs (#112280) next »