PHP 8.0.16 opcache segfault on Linux amd64
Description
I'm using PHP 8.0.16 CLI on Docker in Amazon Linux 2. Today I saw some core dump files. I checked quickly and saw this;
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/local/bin/php artisan horizon:work redis-horizon --name=default --supervis'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fa4733af870 in ?? ()
(gdb) bt
#0 0x00007fa4733af870 in ?? ()
#1 0x00005632f239d351 in ?? ()
#2 0x00005632f239d506 in ?? ()
#3 <signal handler called>
#4 0x00007fa4773b1bf7 in munmap () at ../sysdeps/unix/syscall-template.S:117
#5 0x00007fa4744e5dc3 in ?? () from /usr/local/lib/php/extensions/no-debug-non-zts-20200930/opcache.so
#6 0x00007fa4744e309e in zend_shared_alloc_shutdown () from /usr/local/lib/php/extensions/no-debug-non-zts-20200930/opcache.so
#7 0x00005632f22be890 in php_module_shutdown ()
#8 0x00005632f2049bb3 in ?? ()
#9 0x00007fa4772dfd0a in __libc_start_main (main=0x5632f20497c0, argc=15, argv=0x7ffd0d386b88, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7ffd0d386b78) at ../csu/libc-start.c:308
#10 0x00005632f204a32a in _start ()
The code hasn't changed. Just get the new PHP version. Also, I checked the memory limits, everything seems perfect.
PHP ini file looks like this;
/usr/local/etc/php/conf.d/docker-php-ext-opcache.ini,
opcache.blacklist_filename => no value => no value
opcache.consistency_checks => 0 => 0
opcache.dups_fix => Off => Off
opcache.enable => On => On
opcache.enable_cli => On => On
opcache.enable_file_override => Off => Off
opcache.error_log => no value => no value
opcache.file_cache => no value => no value
opcache.file_cache_consistency_checks => On => On
opcache.file_cache_only => Off => Off
opcache.file_update_protection => 2 => 2
opcache.force_restart_timeout => 180 => 180
opcache.huge_code_pages => Off => Off
opcache.interned_strings_buffer => 8 => 8
opcache.jit => 1255 => 1255
opcache.jit_bisect_limit => 0 => 0
opcache.jit_blacklist_root_trace => 16 => 16
opcache.jit_blacklist_side_trace => 8 => 8
opcache.jit_buffer_size => 100M => 100M
opcache.jit_debug => 0 => 0
opcache.jit_hot_func => 127 => 127
opcache.jit_hot_loop => 64 => 64
opcache.jit_hot_return => 8 => 8
opcache.jit_hot_side_exit => 8 => 8
opcache.jit_max_exit_counters => 8192 => 8192
opcache.jit_max_loop_unrolls => 8 => 8
opcache.jit_max_polymorphic_calls => 2 => 2
opcache.jit_max_recursive_calls => 2 => 2
opcache.jit_max_recursive_returns => 2 => 2
opcache.jit_max_root_traces => 1024 => 1024
opcache.jit_max_side_traces => 128 => 128
opcache.jit_prof_threshold => 0.005 => 0.005
opcache.lockfile_path => /tmp => /tmp
opcache.log_verbosity_level => 1 => 1
opcache.max_accelerated_files => 10000 => 10000
opcache.max_file_size => 0 => 0
opcache.max_wasted_percentage => 5 => 5
opcache.memory_consumption => 128 => 128
opcache.opt_debug_level => 0 => 0
opcache.optimization_level => 0x7FFEBFFF => 0x7FFEBFFF
opcache.preferred_memory_model => no value => no value
opcache.preload => no value => no value
opcache.preload_user => no value => no value
opcache.protect_memory => Off => Off
opcache.record_warnings => Off => Off
opcache.restrict_api => no value => no value
opcache.revalidate_freq => 2 => 2
opcache.revalidate_path => Off => Off
opcache.save_comments => On => On
opcache.use_cwd => On => On
opcache.validate_permission => Off => Off
opcache.validate_root => Off => Off
opcache.validate_timestamps => On => On
PHP Version
PHP 8.0.16
Operating System
Linux version 4.14.256-197.484.amzn2.x86_64 (gcc version 7.3.1 20180712 (Red Hat 7.3.1-13) (GCC)) #1 SMP Tue Nov 30 00:17:50 UTC 2021
A stack backtrace with debug symbols might be more helpful.
@enesgur Are you still experiencing this issue? Would it be possible to provide a backtrace with symbols? https://bugs.php.net/bugs-generating-backtrace.php
Unfortunately I don't experiencing this issue anymore. I upgraded php version. @iluuu1994
That sounds like a good thing :slightly_smiling_face: Maybe it was fixed by some other bug fix. In cause you experience it again feel free to comment on this issue and we'll reopen it. Thanks for getting back to us!