Bug #69949 [NEW]: microtime crashes

From: Date: Sat, 27 Jun 2015 03:25:23 +0000
Subject: Bug #69949 [NEW]: microtime crashes
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193933@lists.php.net to get a copy of this message
From: neuro at interx dot net Operating system: OSX 10.6 PHP version: 7.0.0alpha2 Package: Reproducible crash Bug Type: Bug Bug description:microtime crashes Description: ------------ php-7.0.0alpha2 ./configure --with-config-file-path=/usr/local/etc --with-apxs2=/usr/sbin/apxs --with-mysql=/usr/local --with-mssql=../freetds-0.82 --with-gd --with-freetype-dir=../freetype-2.1.10 --with-tiff-dir=/usr/local --with-zlib-dir=/usr --with-mcrypt=/usr/local --with-mhash --enable-ftp --with-zlib --with-pcre-regex --with-curl=/usr/local --enable-sockets --enable-sigchild --enable-pcntl --enable-iconv --enable-memory-limit --with-png-dir=/usr/local --disable-phar I disabled all extensions (and zend extensions) due to previous experience with PHP alphas. sh-3.2# gdb sapi/cli/php GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Mon Aug 15 16:03:10 UTC 2011) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ............... done (gdb) run ~test.php Starting program: /10.6/local/src/php-7.0.0alpha2/sapi/cli/php ~rtharp/Sites/sites/agi/webroot/index.php Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000010 zend_try_compile_cv (result=0x7fff5fbfe6c8, ast=0x101684000) at zend_compile.c:2190 2190 if (zend_string_equals_literal(name, "this")) { (gdb) bt #0 zend_try_compile_cv (result=0x7fff5fbfe6c8, ast=0x101684000) at zend_compile.c:2190 #1 0x00000001003083b5 in zend_compile_simple_var [inlined] () at /10.6/local/src/php-7.0.0alpha2/Zend/zend_compile.c:2238 #2 0x00000001003083b5 in zend_delayed_compile_var (result=0x7fff5fbfe6c8, ast=0x101684000, type=1) at zend_compile.c:7120 #3 0x00000001003086ed in zend_delayed_compile_prop (result=0x7fff5fbfe860, ast=0x101684000, type=1) at zend_compile.c:2341 #4 0x0000000100305944 in zend_compile_assign (result=0x7fff5fbfe860, ast=0x101684000) at zend_compile.c:2571 #5 0x000000010030491b in zend_compile_expr (result=0x7fff5fbfe860, ast=0x101684000) at zend_compile.c:6973 #6 0x0000000100301af1 in zend_compile_stmt (ast=0x101674188) at zend_compile.c:6939 #7 0x0000000100304f30 in zend_compile_top_stmt (ast=0x101674188) at zend_compile.c:6829 #8 0x0000000100304f1d in zend_compile_top_stmt (ast=0x101678338) at zend_compile.c:6824 #9 0x00000001002ebb77 in compile_file (file_handle=0x7fff5fbfe958, type=23528096) at zend_language_scanner.l:607 #10 0x000000010031adbe in zend_execute_scripts (type=8, retval=0x7fff5fbfec10, file_count=1606413328) at zend.c:1383 #11 0x00000001002b50f2 in php_execute_script (primary_file=0x7fff5fbff958) at main.c:2475 #12 0x00000001003afbf4 in do_cli [inlined] () at /10.6/local/src/php-7.0.0alpha2/sapi/cli/php_cli.c:967 #13 0x00000001003afbf4 in main (argc=1606416992, argv=0x7fff5fbffa60) at php_cli.c:1334 (gdb) Test script: --------------- <?php phpinfo; ?> works <?php microtime(true); ?> works <?php $loader=microtime(true); ?> doesn't <?php $loader=microtime(); ?> doesn't Expected result: ---------------- sh-3.2# /usr/local/src/php-7.0.0alpha2/sapi/cli/php test.php sh-3.2# Actual result: -------------- sh-3.2# /usr/local/src/php-7.0.0alpha2/sapi/cli/php test.php Segmentation fault sh-3.2# -- Edit bug report at https://bugs.php.net/bug.php?id=69949&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69949&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69949&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69949&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69949&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69949&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69949&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69949&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69949&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69949&r=support Expected behavior: https://bugs.php.net/fix.php?id=69949&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69949&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69949&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69949&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69949&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69949&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69949&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69949&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69949&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69949&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69949&r=mysqlcfg

« previous php.bugs (#193933) next »