php / php/php-src

Sporadic opcache crash with apache and php-cgi.exe

未关闭
#11,549 11 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Bug Extension: opcache OS: Windows Status: Needs Triage
主要语言
C
星标
40.4k
派生
8.1k
平均合并
2 天 13 小时
30 天内合并 PR
96

描述

Description

We recently updated our Project from PHP 7.1.6 to 8.2. Since the switch we are sporadically experiencing opcache crashes.
With PHP 7.1.6 we did not experience any opcache issues. The server hardware and opcache configuration stayed the same.

In the windows event log we see the following:

Faulting application name: php-cgi.exe, version: 8.2.3.0, time stamp: 0x63eb5a8b
Faulting module name: php_opcache.dll, version: 8.2.3.0, time stamp: 0x62949a01
Exception code: 0xc0000005
Fault offset: 0x00000000000100b3
Faulting process id: 0x1e568
Faulting application start time: 0x01d9a3013fdeff1f
Faulting application path: D:\wap\php\php-8.2.3-nts-Win32-vs16-x64\php-cgi.exe
Faulting module path: D:\wap\php\php-8.2.3-nts-Win32-vs16-x64\ext\php_opcache.dll
Faulting package full name:
Faulting package-relative application ID:

The opcache config is loogking like this (php.ini):

[opcache]
opcache.enable=1
opcache.enable_cli=0
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.use_cwd=1
opcache.validate_timestamps=1
opcache.revalidate_path=1
opcache.save_comments=1
opcache.file_cache=D:\wap\php\opcache

I also tried PHP 8.2.7 with Apache VS17 and had the same problem.

Crash dump and analysis pdf:
php-cgi.exe_230623_.zip
opcache-crash-analysis_php-cgi.exe_230623_.pdf

PHP Version

8.2.3 NTS

Operating System

Windows Server 2019; Apache httpd 2.4.56-win64-VS16

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先查看提供的 php-cgi.exe 崩溃转储和分析 PDF,然后针对所列的 PHP 8.2 版本及配置,调查 Windows 上与 Apache 配合使用的 opcache 路径。完成的标准是找出一个可复现的原因,并记录针对 php_opcache.dll 偶发崩溃的经验证解决方案。

由索引模型根据 Issue 内容生成。

评估

技术栈
apache, php
领域
backend, operating-systems, performance
Issue 类型
缺陷
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。