php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80275 opcache.jit crashes with some values
Submitted: 2020-10-23 09:31 UTC Modified: 2021-10-03 04:22 UTC
Votes:5
Avg. Score:3.8 ± 1.6
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:3 (100.0%)
From: celestinoxp at hotmail dot com Assigned: cmb (profile)
Status: No Feedback Package: JIT
PHP Version: 8.0Git-2020-10-23 (snap) OS: Windows 10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: celestinoxp at hotmail dot com
New email:
PHP Version: OS:

 

 [2020-10-23 09:31 UTC] 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.




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-23 11:02 UTC] 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 15:08 UTC] celestinoxp at hotmail dot com
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:  &
 [2020-10-23 15:16 UTC] celestinoxp at hotmail dot com
When close xampp, have one other report...

Report for xampp-control__PID__1588__Date__10_21_2020__Time_04_10_26PM__765__First chance exception 0X0000071A.dmp


Faulting Thread




Entry point   xampp_control!TMethodImplementationIntercept+225c00 
Create time   21/10/2020 15:39:46 
Time spent in user mode   0 Days 0:0:5.906 
Time spent in kernel mode   0 Days 0:0:28.468 






    Arg 1

    Arg 2

    Arg 3

    Arg 4

  Source

KERNELBASE!RaiseException+62     000071a     0000001     0000000     0000000    
rpcrt4!RpcpRaiseException+27     0000000     019fc3c     6672c6c     000071a    
rpcrt4!RpcRaiseException+16     000071a     6691326     0000000     0000000    
rpcrt4!NdrpRaisePipeException+15     0000000     0000000     0000000     0000000    
rpcrt4!NdrReceive+a2     0000000     0000000     0fa26e0     0000000    
rpcrt4!NdrLastAsyncReceive+30     fd573e4     0000000     0912c50     0fa26e0    
rpcrt4!NdrpCompleteAsyncClientCall+8a     019fd34     fd57244     0fa26b0     0fa26e0    
rpcrt4!Ndr64pCompleteAsyncCall+66     019fd34     0fa26b0     019fd38     19f6222    
rpcrt4!RpcAsyncCompleteCall+2c     0fa26e0     019fd34     0fa26b0     0fa26b0    
winsta!CWaitItem::Callback+32     19f6180     19f6156     091a8c8     19f6130    
winsta!CWindowNotification::Callback+a     091a8c8     19f6130     019fd68     66940e5    
winsta!CWaitItem::staticNotificationCallback+26     0fa26e0     0000000     0000000     091a8c8    
rpcrt4!CALL::IssueNotificationMain+5c     0000005     0fa2704     0fa26e0     0000000    
rpcrt4!CCALL::IssueNotification+29     0000000     6671a70     091a8c8     019fdb0    
rpcrt4!LRPC_CCALL::AbortCall+69     000071a     091a8c8     66719a0     090d910    
rpcrt4!LRPC_BIND_CCALL::ActualCancelCall+8e     000000a     0918dc0     091a778     090d910    
rpcrt4!LRPC_CCALL::ActualCancelCall+2a     000000a     0918dc0     091a778     090d910    
rpcrt4!LRPC_BASE_CCALL::CancelCall+ad     091a8c8     6671770     0fa2714     019fe28    
rpcrt4!LRPC_BASE_CCALL::CancelAsyncCall+a1     0000001     0fa26b0     0000000     0fa2728    
rpcrt4!RpcAsyncCancelCall+6b     0fa26e0     0000001     0fb7f8e     0fa26b0    
winsta!CWaitItem::StopWait+a3     0000001     0fa26b0     0fa2a78     19f5f8a    
winsta!CWindowNotification::StopWait+26     0000000     0fa26b0     0fa26b0     19f5e5c    
winsta!CWindowNotification::RemoveWindowNotificationFromList+39     067e86c     0000001     0000001     047047e    
winsta!CWindowNotification::DeleteWindowNotification+a8     0000001     2689c10     019fed8     4a62a3a    
winsta!WinStationUnRegisterConsoleNotification+15     0000000     047047e     0000634     019ff18    
wtsapi32!WTSUnRegisterSessionNotification+3a     047047e     05ff8f8     2689c10     05ffafc    
xampp_control!TMethodImplementationIntercept+19a8d0     019ff60     0409a82     019ff38     0688cdc    
xampp_control+9a74     019ff70     0688cdc     0688cdc     029b000    
xampp_control+9ebd     029b000     6546340     019ffdc     74d7c24    
kernel32!BaseThreadInitThunk+19     029b000     14baa23     0000000     0000000    
ntdll!__RtlUserThreadStart+2f     fffffff     74f8fd9     0000000     0000000    
ntdll!_RtlUserThreadStart+1b     0688cdc     029b000     0000000     8746341    




Exception Information


In xampp-control__PID__1588__Date__10_21_2020__Time_04_10_26PM__765__First chance exception 0X0000071A.dmp the assembly instruction at KERNELBASE!RaiseException+62 in C:\Windows\System32\KERNELBASE.dll from Microsoft Corporation
This exception originated from rpcrt4!RpcpRaiseException.  has caused an unknown exception (0x0000071a) on thread 0

This exception originated from rpcrt4!RpcpRaiseException+27. 

Module Information 

Image Name: C:\Windows\System32\KERNELBASE.dll   Symbol Type:  PDB 
Base address: 0x00905a4d   Time Stamp:  Wed Aug 26 05:29:11 2026  
Checksum: 0x00000000   Comments:   
COM DLL: False   Company Name:  Microsoft Corporation 
ISAPIExtension: False   File Description:  Windows NT BASE API Client DLL 
ISAPIFilter: False   File Version:  10.0.18362.1139 (WinBuild.160101.0800) 
Managed DLL: False   Internal Name:  Kernelbase.dll 
VB DLL: False   Legal Copyright:  © Microsoft Corporation. All rights reserved. 
Loaded Image Name:  KERNELBASE.dll   Legal Trademarks:   
Mapped Image Name:     Original filename:  Kernelbase.dll 
Module name:  KERNELBASE   Private Build:   
Single Threaded:  False   Product Name:  Microsoft® Windows® Operating System 
Module Size:  2 MBytes   Product Version:  10.0.18362.1139 
Symbol File Name:  c:\symbols\wkernelbase.pdb\92A69A10B0D42F11B049B4F0725BADEE1\wkernelbase.pdb   Special Build:  &
 [2020-10-23 17:14 UTC] celestinoxp at hotmail dot com
In windows report:

Origem
Apache HTTP Server

Resumo
Deixou de funcionar

Data
‎23/‎10/‎2020 18:09

Estado
Relatório enviado

Descrição
Caminho de Aplicação Com Falha:	C:\xampp\apache\bin\httpd.exe

Assinatura do problema
Nome do Evento de Problema:	APPCRASH
Nome da Aplicação:	httpd.exe
Versão da Aplicação:	2.4.46.0
Carimbo de Data/Hora da Aplicação:	5f76f6fc
Nome do Módulo com Falhas:	php_opcache.dll
Versão do Módulo com Falhas:	8.0.0.0
Carimbo de Data/Hora do Módulo com Falhas:	5f9219d0
Código de exceção:	c0000005
Desvio de Exceção:	0000000000130838
Versão do SO:	10.0.18363.2.0.0.768.101
ID de Região:	2070
Informações Adicionais 1:	4b52
Informações Adicionais 2:	4b52de579ead5c3b6567623a6307dcb7
Informações Adicionais 3:	7ecd
Informações Adicionais 4:	7ecd4add1fb1d401d8cc3ef0dfa9dd46

Informações adicionais sobre o problema
ID de Registo:	347c2487bb2c60e88a50466abedd3d7d (1896092867405626749)
 [2020-11-21 11:33 UTC] ondrej at mirtes dot cz
Probably related (Composer crashes on Windows with JIT 1255): https://github.com/composer/composer/issues/9512
 [2021-07-21 12:22 UTC] nikic@php.net
Possibly this is the same issue as fixed by https://github.com/php/php-src/commit/ef77d3c89f3ca7750b78a7974ebb82d8b116506f.
 [2021-09-22 12:13 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-09-22 12:13 UTC] cmb@php.net
Is this fixed in PHP 8.0.10?
 [2021-10-03 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 06:01:29 2024 UTC