Bug #81453 [Opn->Csd]: JIT (tracing mode only): Undefined array key
| From: | krakjoe@php.net | Date: | Mon, 04 Oct 2021 08:34:04 +0000 |
| Subject: | Bug #81453 [Opn->Csd]: JIT (tracing mode only): Undefined array key | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-237008@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=81453&edit=1
ID: 81453
Updated by: krakjoe@php.net
Reported by: julien dot boudry at gmail dot com
Summary: JIT (tracing mode only): Undefined array key
-Status: Open
+Status: Closed
Type: Bug
Package: JIT
Operating System: Windows and Linux
PHP Version: 8.1.0RC2
-Assigned To:
+Assigned To: krakjoe
Block user comment: N
Private report: N
New Comment:
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
http://www.php.net/downloads.php
Previous Comments:
------------------------------------------------------------------------
[2021-10-03 13:43:43] julien dot boudry at gmail dot com
Not happening anymore with 8.1.0RC3
------------------------------------------------------------------------
[2021-09-17 14:52:06] julien dot boudry at gmail dot com
(Without any connection or action create this incredible mess with JIT. https://github.com/julien-boudry/Condorcet/commit/859c71c
)
------------------------------------------------------------------------
[2021-09-17 13:06:54] julien dot boudry at gmail dot com
Description:
------------
Happens only with JIT tracing mode (which is the default): working well in "function"
mode, without JIT, and with or without opcache extension.
Impossible (for me) to reproduce in a simple PHP example. But I got the commit when the bug begin,
and it's absolutely absurd. I hope that can help.
Test script:
---------------
#(ideal with Docker official images)
git clone https://github.com/julien-boudry/Condorcet.git
cd Condorcet
#(not necessary today)
git checkout 859c71c
# Working fine
php Dev/bugs/JitBug.php
# OR
php -dzend_extension=opcache -dopcache.enable_cli=1 Dev/bugs/JitBug.php
# OR
php -dzend_extension=opcache -dopcache.enable_cli=1 -dopcache.jit_buffer_size=100M
-dopcache.jit=function Dev/bugs/JitBug.php
# Failing
php -dzend_extension=opcache -dopcache.enable_cli=1 -dopcache.jit_buffer_size=100M
-dopcache.jit=tracing Dev/bugs/JitBug.php
# (the previous commit)
git checkout b3c8df1
# Retry the same commands and everything working fine
Expected result:
----------------
No error
Actual result:
--------------
Warning: Undefined array key...
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81453&edit=1