php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80886 php7.dll crash
Submitted: 2021-03-18 22:27 UTC Modified: 2021-03-24 18:36 UTC
From: alex at ndros dot com Assigned: cmb (profile)
Status: Wont fix Package: WinCache (PECL)
PHP Version: 7.4.16 OS: Windows 2019
Private report: No CVE-ID: None
 [2021-03-18 22:27 UTC] alex at ndros dot com
Description:
------------
Hello,

We get this crash every now and then. Our website goes off, and IISRESET solves the problem.

Crash logs on Event Viewer:

Faulting application name: php-cgi.exe, version: 7.4.16.0, time stamp: 0x603e46d3
Faulting module name: php7.dll, version: 7.4.16.0, time stamp: 0x603e532e
Exception code: 0xc0000005
Fault offset: 0x0000000000030f79
Faulting process id: 0x3414
Faulting application start time: 0x01d71c44e3b1e861
Faulting application path: C:\Program Files\PHP\v7.4\php-cgi.exe
Faulting module path: C:\Program Files\PHP\v7.4\php7.dll
Report Id: db844a3d-a7e5-400d-a68b-26986c3cdc12
Faulting package full name: 
Faulting package-relative application ID: 


Fault bucket 1691750742657522897, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: php-cgi.exe
P2: 7.4.16.0
P3: 603e46d3
P4: php7.dll
P5: 7.4.16.0
P6: 603e532e
P7: c0000005
P8: 0000000000030f79
P9: 
P10: 



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-03-18 22:47 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-03-18 22:47 UTC] cmb@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
 [2021-03-19 12:01 UTC] alex at ndros dot com
Hi,

Here's the dump from a crash we had today:


Report for php-cgi.exe_210319_075908.dmp


Type of Analysis Performed Crash Analysis 
Machine Name  
Operating System Windows Server - 17763 
Number Of Processors  
Process ID 2536 
Process Image C:\Program Files\PHP\v7.4\php-cgi.exe 
Command Line "C:\Program Files\PHP\v7.4\php-cgi.exe" 
System Up-Time 10 day(s) 11:48:07 
Process Up-Time 02:18:01 
Processor Type X64 
Process Bitness 64-Bit 



Faulting Thread

Entry point   php_cgi!mainCRTStartup 
Create time   19/3/2021 5:41:07 πμ 
Time spent in user mode   0 Days 0:3:36.953 
Time spent in kernel mode   0 Days 0:1:29.62 






    Arg 1

    Arg 2

    Arg 3

    Arg 4

  Source

php_wincache!get_module+a483     0000215`3ab48b78     0000000`00000000     0000000`00038b78     0000000`00000063    
php_wincache!get_module+954d     0000000`00000228     0000000`00000000     0000215`3a226968     0000000`00000063    
php_wincache!get_module+3c13     0000000`00000000     00000ca`577fb9e1     0000000`00000000     00000ca`577fba98    
php_wincache!get_module+3095     0000215`3ab180b0     0000215`3d8c77f8     0000215`3d8c7701     00000ca`577fba90    
php_wincache+1278     0000000`00001505     00000ca`577fbb00     0000000`00000000     0000000`00000000    
php_opcache!persistent_stream_open_function+86 [c:\php-snap-build\php74\vc15\x64\php-7.4.16\ext\opcache\zendaccelerator.c @ 2252 + 10]     0000000`00000000     00000ca`577fbb49     0000215`00000056     0000000`00000000   c:\php-snap-build\php74\vc15\x64\php-7.4.16\ext\opcache\zendaccelerator.c @ 2252 + 10 
php7!zend_include_or_eval+2e9 [c:\php-snap-build\php74\vc15\x64\php-7.4.16\zend\zend_execute.c @ 4262 + 21]     0000215`39467000     0000000`00000000     0000215`39413b20     0000000`00000001   c:\php-snap-build\php74\vc15\x64\php-7.4.16\zend\zend_execute.c @ 4262 + 21 
php7!ZEND_INCLUDE_OR_EVAL_SPEC_CV_HANDLER+40 [c:\php-snap-build\php74\vc15\x64\php-7.4.16\zend\zend_vm_execute.h @ 37775]     0000215`39413b20     0000000`00000000     0000000`00130000     0000215`39467000   c:\php-snap-build\php74\vc15\x64\php-7.4.16\zend\zend_vm_execute.h @ 37775 
php7!execute_ex+2f [c:\php-snap-build\php74\vc15\x64\php-7.4.16\zend\zend_vm_execute.h @ 53655 + f]     0000215`39413020     0000000`00000000     0000000`00130000     0000000`00000008   c:\php-snap-build\php74\vc15\x64\php-7.4.16\zend\zend_vm_execute.h @ 53655 + f 
php7!zend_execute+152 [c:\php-snap-build\php74\vc15\x64\php-7.4.16\zend\zend_vm_execute.h @ 57958]     0000000`00000000     00000ca`577fcd10     0000000`00000000     0000000`00000008   c:\php-snap-build\php74\vc15\x64\php-7.4.16\zend\zend_vm_execute.h @ 57958 
php7!zend_execute_scripts+a1 [c:\php-snap-build\php74\vc15\x64\php-7.4.16\zend\zend.c @ 1680]     0000215`00000008     0000000`00000000     0000000`00000003     0000000`00000000   c:\php-snap-build\php74\vc15\x64\php-7.4.16\zend\zend.c @ 1680 
php7!php_execute_script+259 [c:\php-snap-build\php74\vc15\x64\php-7.4.16\main\main.c @ 2623]     0000000`00000001     0000000`00000001     0000000`00000000     0000000`00000000   c:\php-snap-build\php74\vc15\x64\php-7.4.16\main\main.c @ 2623 
php_cgi!main+15d1 [c:\php-snap-build\php74\vc15\x64\php-7.4.16\sapi\cgi\cgi_main.c @ 2599]     0000000`00000000     0000000`00000000     0007ff9`437fb570     0000000`00000000   c:\php-snap-build\php74\vc15\x64\php-7.4.16\sapi\cgi\cgi_main.c @ 2599 
php_cgi!__scrt_common_main_seh+10c [d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288 + 22]     0000000`00000000     0000000`00000000     0000000`00000000     0000000`00000000   d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288 + 22 
kernel32!BaseThreadInitThunk+14     0000000`00000000     0000000`00000000     0000000`00000000     0000000`00000000    
ntdll!RtlUserThreadStart+21     0000000`00000000     0000000`00000000     0000000`00000000     0000000`00000000    




Exception Information


PHP_WINCACHE!GET_MODULE+A483WARNING - DebugDiag was not able to locate debug symbols for \php_wincache.dll, so the information below may be incomplete.

In php-cgi.exe_210319_075908.dmp the assembly instruction at php_wincache!get_module+a483 in C:\Program Files\PHP\v7.4\ext\php_wincache.dll from Microsoft Corp. has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000000 on thread 0




Module Information 

Image Name: C:\Program Files\PHP\v7.4\ext\php_wincache.dll   Symbol Type:  Export 
Base address: 0x00000003`00905a4d   Time Stamp:  Thu Jan 23 04:52:21 2020  
Checksum: 0x00000000`00000000   Comments:   
COM DLL: False   Company Name:  Microsoft Corp. 
ISAPIExtension: False   File Description:  Windows Cache Extension for PHP 
ISAPIFilter: False   File Version:  2.0.0.8 
Managed DLL: False   Internal Name:   
VB DLL: False   Legal Copyright:  Copyright Β© 2016 Microsoft Corp. All Rights Reserved. 
Loaded Image Name:  php_wincache.dll   Legal Trademarks:   
Mapped Image Name:     Original filename:  php_wincache.dll 
Module name:  php_wincache   Private Build:   
Single Threaded:  False   Product Name:  Windows Cache Extension2.0 for PHP 7.4 
Module Size:  152 KBytes   Product Version:  2.0 
Symbol File Name:  php_wincache.dll   Special Build:  &
 [2021-03-19 12:03 UTC] alex at ndros dot com
So this looks related to Wincache.

Please note that we're using 4 worker processes on the server (two for each application pool).
 [2021-03-19 12:52 UTC] alex at ndros dot com
-Status: Feedback +Status: Assigned
 [2021-03-19 12:52 UTC] alex at ndros dot com
Hi, since we're getting this several times per day, for now we have disabled WinCache.
 [2021-03-19 12:52 UTC] alex at ndros dot com
-Status: Assigned +Status: Open
 [2021-03-19 12:52 UTC] alex at ndros dot com
opening
 [2021-03-19 13:02 UTC] cmb@php.net
-Status: Open +Status: Assigned
 [2021-03-19 13:02 UTC] cmb@php.net
Thanks for the stack backtrace.  Indeed, that looks like a
WinCache issue.  I'll try to have a closer look.
 [2021-03-24 18:33 UTC] cmb@php.net
-Status: Assigned +Status: Wont fix -Package: *General Issues +Package: WinCache
 [2021-03-24 18:33 UTC] cmb@php.net
I just got word from the extension maintainers that no more
bugfixes are planned.  Consider to run without WinCache.
 [2021-03-24 18:36 UTC] alex at ndros dot com
hmm, how come?

Wincache will be abandoned?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC