Skip to content

OPCache crashing in PHP 8.2.8, fine in 8.2.6 #11963

Closed
@Prochy

Description

@Prochy

Description

Hi,

Unfortunately, We don't have a reproducible example as we don't know steps how to replicate it but I have a hope you could find something from the dumps we provide.
We upgraded PHP from 8.0.x to 8.2.8 and we start noticing that OPCache crashes regularly every 3-6 hours and then it starts crashing for several minutes and it get back after several tens minutes it gets back to alive and starts working again.
At the moment, when it starts happening the server starts returning 500 Status code.

I tested go back with PHP to 8.2.6 and there was no issue so far (running for 4 days) so I believe the issue have to be between 8.2.6 - 8.2.8.

At first sight, I thought it's the same issue as #8143, but probably not as there is a version 8.1.3 and the downgrade to 8.2.6 wouldn't fix the issue.

Dumps

Event log:

Faulting application name: php-cgi.exe, version: 8.2.8.0, time stamp: 0x64a440d9
Faulting module name: php_opcache.dll, version: 8.2.8.0, time stamp: 0x64a44549
Exception code: 0xc0000005
Fault offset: 0x0000000000014715
Faulting process id: 0x530
Faulting application start time: 0x01d9ce899081bdca
Faulting application path: F:\...php-cgi.exe
Faulting module path: F:\...php_opcache.dll
Report Id: b695b13a-2949-4895-9020-e81c2c6a3e13
Faulting package full name: 
Faulting package-relative application ID: 

Call stack

php_opcache.dll!zend_accel_inheritance_cache_find(_zend_inheritance_cache_entry * entry, _zend_class_entry *) Line 2264
php_opcache.dll!zend_accel_inheritance_cache_get(_zend_class_entry * ce, _zend_class_entry * parent, _zend_class_entry * * traits_and_interfaces) Line 2305
php8.dll!zend_do_link_class(_zend_class_entry * ce, _zend_string * lc_parent_name, _zend_string * key) Line 2925
php8.dll!zend_bind_class_in_slot(_zval_struct * class_table_slot, _zval_struct * lcname, _zend_string * lc_parent_name) Line 1124
php8.dll!do_bind_class(_zval_struct * lcname, _zend_string * lc_parent_name) Line 1159
php8.dll!ZEND_DECLARE_CLASS_SPEC_CONST_HANDLER(_zend_execute_data * execute_data) Line 5420
php8.dll!execute_ex(_zend_execute_data * ex) Line 55835
php8.dll!zend_call_function(_zend_fcall_info * fci, _zend_fcall_info_cache * fci_cache) Line 948
php8.dll!zend_call_known_function(_zend_function * fn, _zend_object * object, _zend_class_entry * called_scope, _zval_struct * retval_ptr, unsigned int param_count, _zval_struct * params, _zend_array * named_params) Line 1042
php8.dll!spl_perform_autoload(_zend_string * class_name, _zend_string * lc_name) Line 446
php8.dll!zend_lookup_class_ex(_zend_string * name, _zend_string * key, unsigned int flags) Line 1207
php8.dll!zend_fetch_class_by_name(_zend_string * class_name, _zend_string * key, unsigned int fetch_type) Line 1704
php8.dll!ZEND_NEW_SPEC_CONST_UNUSED_HANDLER(_zend_execute_data * execute_data) Line 10277
php8.dll!execute_ex(_zend_execute_data * ex) Line 55835
php8.dll!zend_execute(_zend_op_array * op_array, _zval_struct * return_value) Line 60410
php8.dll!zend_execute_scripts(int type, _zval_struct * retval, int file_count, ...) Line 1828
php8.dll!php_execute_script(_zend_file_handle * primary_file) Line 2542
php-cgi.exe!main(int argc, char * * argv) Line 2531

PHP Version

PHP 8.2.8

Operating System

Windows Server 2019

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions