Edit report at https://bugs.php.net/bug.php?id=79535&edit=1
ID: 79535
User updated by: roland at nextendweb dot com
Reported by: roland at nextendweb dot com
Summary: PHP crashes with specific opcache.optimization_level
-Status: Feedback
+Status: Open
Type: Bug
Package: opcache
Operating System: Windows, Linux
PHP Version: 7.3.17
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
I didn't originally used xdebug and xdebug was only on a single server installed. I was able to
reproduce this crash on 3 different server and on two xdebug was not installed. So I do not think it
is xdebug related.
If I added opcache_reset() to my index.php it was good all the time. After removed, it crashed.
Previous Comments:
------------------------------------------------------------------------
[2020-04-29 16:35:18] cmb@php.net
Ah, but file_cache is not enabled in your case!
Can you please try with a recent PHP version on Windows, and
provide a *debug* backtrace, see
<https://bugs.php.net/bugs-generating-backtrace-win32.php>.
------------------------------------------------------------------------
[2020-04-29 16:32:24] cmb@php.net
When file_cache is enabled, and you switch Xdebug on and off,
crashes are to be expected. That issue has already been reported
as bug #75886.
------------------------------------------------------------------------
[2020-04-29 15:39:44] roland at nextendweb dot com
Xdebug is disabled when this crash happens.
Here is the phpinfo() related to opcache:
opcache.blacklist_filename no value
opcache.consistency_checks 0
opcache.dups_fix Off
opcache.enable On
opcache.enable_cli Off
opcache.enable_file_override Off
opcache.error_log no value
opcache.file_cache no value
opcache.file_cache_consistency_checks 1
opcache.file_cache_fallback 1
opcache.file_cache_only 0
opcache.file_update_protection 2
opcache.force_restart_timeout 60
opcache.interned_strings_buffer 8
opcache.log_verbosity_level 1
opcache.max_accelerated_files 8192
opcache.max_file_size 0
opcache.max_wasted_percentage 5
opcache.memory_consumption 512
opcache.mmap_base no value
opcache.opt_debug_level 0
opcache.optimization_level 0xfffffbbf
opcache.preferred_memory_model no value
opcache.protect_memory 0
opcache.restrict_api no value
opcache.revalidate_freq 10
opcache.revalidate_path Off
opcache.save_comments 1
opcache.use_cwd On
opcache.validate_permission Off
opcache.validate_timestamps On
------------------------------------------------------------------------
[2020-04-29 15:34:52] cmb@php.net
Just to be sure: are there Xdebug and file_cache(_fallback)
involved?
------------------------------------------------------------------------
[2020-04-29 11:22:45] roland at nextendweb dot com
I'm not sure if it help, but changing:
protected function newFormatter() {
return new $className;
}
to
protected function newFormatter() {
return new Compressed;
}
seems to solve the issue, but it might be unrelated...
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=79535
--
Edit this bug report at https://bugs.php.net/bug.php?id=79535&edit=1