Bug #80275 [Com]: opcache.jit crashes with some values

From: Date: Fri, 23 Oct 2020 15:08:03 +0000
Subject: Bug #80275 [Com]: opcache.jit crashes with some values
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229881@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80275&edit=1

 ID:                 80275
 Comment by:         celestinoxp at hotmail dot com
 Reported by:        celestinoxp at hotmail dot com
 Summary:            opcache.jit crashes with some values
 Status:             Open
 Type:               Bug
 Package:            JIT
 Operating System:   Windows 10
 PHP Version:        8.0Git-2020-10-23 (snap)
 Block user comment: N
 Private report:     N

 New Comment:

After following the steps to generate a backtrace, without a compiler on windows, I got the results
... They are a little different from the screenshot on the instructions page to do the backtrace.

I will try to send some information that I think is important ... if necessary I am willing to send
debug files via email.


RESULTS when trying open phpmyadmin with opcache.jit=1255:

PHP_OPCACHE!ZEND_JIT_TRACE_EXIT_IS_HOT+68In httpd.exe_201021_154021.dmp the assembly instruction at
php_opcache!zend_jit_trace_exit_is_hot+68 in C:\xampp\php\ext\php_opcache.dll from The PHP Group has
caused an access violation exception (0xC0000005) when trying to read from memory location
0x0000001d on thread 153

Image Name: C:\xampp\php\ext\php_opcache.dll   Symbol Type:  PDB 
Base address: 0x00000003`00905a4d   Time Stamp:  Fri Oct 23 00:46:24 2020  
Checksum: 0x00000000`00000000   Comments:  Thanks to Andi Gutmans, Zeev Suraski, Stanislav Malyshev,
Dmitry Stogov, Xinchen Hui 
COM DLL: False   Company Name:  The PHP Group 
ISAPIExtension: False   File Description:  Opcache 
ISAPIFilter: False   File Version:  8.0.0-dev 
Managed DLL: False   Internal Name:  OPCACHE extension 
VB DLL: False   Legal Copyright:  Copyright © The PHP Group 
Loaded Image Name:  php_opcache.dll   Legal Trademarks:  PHP 
Mapped Image Name:     Original filename:  php_opcache.dll 
Module name:  php_opcache   Private Build:   
Single Threaded:  False   Product Name:  PHP 
Module Size:  1,76 MBytes   Product Version:  8.0.0-dev 
Symbol File Name:  c:\users\celes\downloads\php-debug-pack-8.0.0-dev-win32-vs16-x64\php_opcache.pdb 
 Special Build:  &


Previous Comments:
------------------------------------------------------------------------
[2020-10-23 11:02:17] cmb@php.net

It would be helpful if you provide a stack backtrace[1] of the
crash.

[1] <https://bugs.php.net/bugs-generating-backtrace-win32.php>

------------------------------------------------------------------------
[2020-10-23 09:31:39] celestinoxp at hotmail dot com

Description:
------------
I´m testing some values with opcache.jit and i think exists a bug.

I commented Bug #79854 but, i think is closed and no one answers, and i can´t re-open (who can
reopen, only author?)

So, i tested some values like 1255, and 1234 and i see apache resarting with some scripts.

I'm using:
- windows 10 (64 bits).
- PHP Version 8.0.0-dev (Build date: Oct 22 2020 23:41:25).
(https://github.com/shivammathur/php-builder-windows)

Test script:
---------------
1º - in php.ini --> opcache.jit = 1255
2º - start apache --> ok
3º - open link: http://localhost/dashboard/phpinfo.php --> ok
4º - open link: http://localhost/phpmyadmin -->
apache crashes --> apache restart and link not open.
5º - refresh browser --> apache crashes --> apache restart and link not open.





------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=80275&edit=1


Thread (9 messages)

« previous php.bugs (#229881) next »