Re: com php-src: Fix bug #73654: NEWS ext/opcache/Optimizer/zend_optimizer.c ext/opcache/tests/bug73654.phpt
| From: | Nikita Popov | Date: | Wed, 07 Dec 2016 09:39:01 +0000 |
| Subject: | Re: com php-src: Fix bug #73654: NEWS ext/opcache/Optimizer/zend_optimizer.c ext/opcache/tests/bug73654.phpt | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-96239@lists.php.net to get a copy of this message | ||
On Wed, Dec 7, 2016 at 7:10 AM, Dmitry Stogov <dmitry@zend.com> wrote:
> Hi Nikita,
>
>
> The fix is wrong or incomplete. It keeps VERIFY_RETURN_TYPE instruction
> that uses uninitialized TMP.
>
>
> $ sapi/cli/php -d opcache.opt_debug_level=0x20000
> ../ext/opcache/tests/bug73654.phpt
>
>
> xyz: ; (lines=2, args=0, vars=0, tmps=1)
> ; (after optimizer)
> ; /home/dmitry/php/php-master/ext/opcache/tests/bug73654.phpt:11-13
> L0: VERIFY_RETURN_TYPE T0
> L1: RETURN string("xyz")
>
> $ USE_ZEND_ALLOC=0 valgrind sapi/cli/php ../ext/opcache/tests/bug73654.
> phpt
>
>
> ==19018== Conditional jump or move depends on uninitialised value(s)
> ==19018== at 0x866CE38: _get_zval_ptr_tmp (zend_execute.c:192)
> ==19018== by 0x868B867: ZEND_VERIFY_RETURN_TYPE_SPEC_TMP_UNUSED_HANDLER
> (zend_vm_execute.h:14373)
> ==19018== by 0x8672D44: execute_ex (zend_vm_execute.h:429)
> ==19018== by 0x8672DF9: zend_execute (zend_vm_execute.h:474)
> ==19018== by 0x8626F9D: zend_execute_scripts (zend.c:1474)
> ==19018== by 0x85B5AE6: php_execute_script (main.c:2531)
> ==19018== by 0x86E2560: do_cli (php_cli.c:994)
> ==19018== by 0x86E31CC: main (php_cli.c:1387)
>
Thanks, I'll check it later.
Nikita