Sporadic opcache crash with apache and php-cgi.exe
Personne n'a encore pris cette issue.
- Langage dominant
- C
- Étoiles
- 40.4k
- Forks
- 8.2k
- Merge moyen
- 2 j 13 h
- PR mergées (30 j)
- 96
Description
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
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par examiner le fichier de vidage sur incident de php-cgi.exe et le PDF d’analyse fournis, puis étudiez le chemin opcache utilisé avec Apache sous Windows pour les différentes versions de PHP 8.2 et la configuration indiquées. La tâche sera considérée comme terminée lorsqu’une cause reproductible aura été identifiée et qu’une résolution vérifiée du plantage sporadique de php_opcache.dll aura été documentée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- apache, php
- Domaine
- backend, operating-systems, performance
- Type d'issue
- Bug
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100