|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77620 Opcache crashes on require file containing large array
Submitted: 2019-02-14 17:32 UTC Modified: 2021-07-08 14:09 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: kieran at miami-nice dot co dot uk Assigned: cmb (profile)
Status: Duplicate Package: opcache
PHP Version: 7.1.26 OS: Windows
Private report: No CVE-ID: None
 [2019-02-14 17:32 UTC] kieran at miami-nice dot co dot uk
This may be a duplicate of (stackoverflow), but unlike that issue I cannot replicate on Ubuntu.

The test case was generated on Bitnami WAMP with AWS Windows 2019 Base image, and backtrace generated using

The issue only occurs in browser, if you load the test script via CLI it works as expected. 

I was also unable to replicate the issue on Ubuntu 18.04 with PHP 7.1.26 or 7.2.15...

Test script:

Actual result:
PHP_OPCACHE!ZEND_SSA_CHECK_SCC_VAR+21DIn httpd__PID__3728__Date__02_14_2019__Time_04_59_15PM__290__Second_Chance_Exception_C00000FD.dmp the assembly instruction at php_opcache!zend_ssa_check_scc_var+21d in C:\Bitnami\wampstack-7.1.26-0\php\ext\php_opcache.dll from The PHP Group has caused a stack overflow exception (0xC00000FD) when trying to write to memory location 0x19e83ff8 on thread 3


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-06-14 12:38 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: sjon
 [2019-06-14 12:38 UTC]
I've attempted to reproduce this using valgrind and a debug-build of 7.1.26 with opcache enabled, but it works fine and reports no leaks.

If this is still an issue please provide more information
 [2019-06-23 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.
 [2019-06-28 16:39 UTC] kieran at miami-nice dot co dot uk
Unable to reopen this... keeps saying "You aren't allowed to change a bug to that state."


I can still replicate this on AWS t3.medium instance running Windows Server 2019 Base:

1. Install bitnami 7.2.19 image
2. Add test script
3. Load

Apache then crashes and trace shows php_opcache.dll caused stackoverflow.
 [2019-06-28 17:00 UTC]
-Status: No Feedback +Status: Re-Opened
 [2019-06-29 13:09 UTC]
Looks like a duplicate of bug #76844.
 [2020-08-16 09:09 UTC]
-Assigned To: sjon +Assigned To:
 [2021-07-08 14:09 UTC]
-Status: Re-Opened +Status: Duplicate -Assigned To: +Assigned To: cmb
 [2021-07-08 14:09 UTC]
Closing as duplicate of bug #76844.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 16 12:01:28 2024 UTC