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

From: Date: Fri, 23 Oct 2020 15:16:43 +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-229883@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:

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:  &


Previous Comments:
------------------------------------------------------------------------
[2020-10-23 15:08:03] 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 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 (#229883) next »