|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74716 Opcode crash 32bit nts php-cgi.exe on busy site.
Submitted: 2017-06-08 18:59 UTC Modified: 2019-05-19 04:22 UTC
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:3 (100.0%)
From: vbgamer45 at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: opcache
PHP Version: 7.1.5 OS: Windows 2012
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2017-06-08 18:59 UTC] vbgamer45 at gmail dot com
I have two very busy windows servers 2012 and 2008 and the opcode cache seems to fail over time and leads to it crashing and unexpected PHP behavior such as scripts executing running out of memory.

Using PHP 7.1.5 64bit nts running as Fast CGI under Apache. I have had to disable the opcode cache on my busiest server where it would help the most. 

I get bunch of windows event viewer logs such as

Windows event viewer

Faulting application name: php-cgi.exe, version:, time stamp: 0x59121ec5
Faulting module name: php_opcache.dll, version:, time stamp: 0x59122237
Exception code: 0xc0000005
Fault offset: 0x0000eeaa
Faulting process id: 0x2814
Faulting application start time: 0x01d2dd94eddefaf1
Faulting application path: C:\php\php-cgi.exe
Faulting module path: C:\php\ext\php_opcache.dll
Report Id: 80b75dfe-4988-11e7-80ba-002590270887
Faulting package full name: 
Faulting package-relative application ID: 

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

Problem signature:
P1: php-cgi.exe
P3: 59121ec5
P4: php_opcache.dll
P6: 59122237
P7: c0000005
P8: 0000eeaa

PHP.ini Settings
opcache.enable = 1
opcache.use_cwd = 1
opcache.file_cache = "c:/php/opcode"
opcache.mmap_base = 0x20000000


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-06-08 19:53 UTC] vbgamer45 at gmail dot com
-Summary: Opcode crash 64bit nts php-cgi.exe on busy site. +Summary: Opcode crash 32bit nts php-cgi.exe on busy site.
 [2017-06-08 19:53 UTC] vbgamer45 at gmail dot com
Just remembered these two servers had php 32bit
 [2017-08-15 17:10 UTC] codemonkey at qoqoro dot com
We have observed similar crashes with PHP 7.1.6, 7.1.7 and 7.1.8 on Windows 7, Windows Server 2008 R2 and Server 2012. Disabling the PHP opcode cache appears to help.
 [2019-05-07 16:21 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2019-05-07 16:21 UTC]
Well, PHP-7.1 will not receive any normal bug fixes, so the
question is whether you experience these issues with any of the
actively supported[1] PHP versions also.

If so, please try one of the snapshots[2] which include a possible
fix in a test environemnt (these are dev versions which are not
meant for production).

[1] <>
[2] <>
 [2019-05-19 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-2021 The PHP Group
All rights reserved.
Last updated: Wed Aug 04 15:01:24 2021 UTC