php.net |  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
Votes:3
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
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: vbgamer45 at gmail dot com
New email:
PHP Version: OS:

 

 [2017-06-08 18:59 UTC] vbgamer45 at gmail dot com
Description:
------------
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: 7.1.5.0, time stamp: 0x59121ec5
Faulting module name: php_opcache.dll, version: 7.1.5.0, 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
P2: 7.1.5.0
P3: 59121ec5
P4: php_opcache.dll
P5: 7.1.5.0
P6: 59122237
P7: c0000005
P8: 0000eeaa
P9: 
P10: 

PHP.ini Settings
[opcache]
opcache.enable = 1
opcache.interned_strings_buffer=32
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
opcache.memory_consumption=128
opcache.max_accelerated_files=10000
opcache.max_wasted_percentage=10
opcache.validate_timestamps=1
opcache.use_cwd = 1
opcache.file_cache = "c:/php/opcode"
opcache.mmap_base = 0x20000000




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2019-05-07 16:21 UTC] cmb@php.net
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] <https://www.php.net/supported-versions.php>
[2] <https://windows.php.net/downloads/snaps/ostc/opcache-aslr/>
 [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-2020 The PHP Group
All rights reserved.
Last updated: Thu Oct 22 13:01:24 2020 UTC