Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php 8.4.5 crashed when opcache is enable - segfault #18147

Open
Neurozone opened this issue Mar 26, 2025 · 1 comment
Open

php 8.4.5 crashed when opcache is enable - segfault #18147

Neurozone opened this issue Mar 26, 2025 · 1 comment

Comments

@Neurozone
Copy link

Neurozone commented Mar 26, 2025

Description

System:
php 8.4.5
rocky linux 9.5
php-fpm with nginx
Wordpress 6.7.2

When activating opcache I got the following error:

Mar 26 11:09:00 backup kernel: php-fpm[134188]: segfault at 565d635706d8 ip 00005654f1cde13b sp 00007ffc17ce3150 error 4 in php-fpm[5654f1a00000+342000] likely on CPU 0 (core 0, socket 0)
Mar 26 11:09:00 backup kernel: Code: 0f 1e fa 41 54 53 48 83 ec 18 48 8b 46 08 8b 57 0c 4c 8b 67 10 09 c2 48 63 d2 41 8b 1c 94 83 fb ff 74 6c 48 c1 e3 05 4c 01 e3 <48> 3b 73 18 75 3b 48 83 c4 18 48 89 d8 5b 41 5c c3 0f 1f 40 00 48
Mar 26 11:09:00 backup systemd[1]: Started Process Core Dump (PID 134247/UID 0).
Mar 26 11:09:00 backup systemd-coredump[134248]: Process 134188 (php-fpm) of user 986 dumped core.#012#012Stack 
trace of thread 134188:#012
#0  0x00005654f1cde13b zend_hash_find_known_hash (php-fpm + 0x4de13b)#012
#1  0x00005654f1cca90d execute_ex (php-fpm + 0x4ca90d)#012#2  0x00005654f1c722e2 zend_call_function (php-fpm + 0x4722e2)#012
#3  0x00005654f1c72735 zend_call_known_function (php-fpm + 0x472735)#012
#4  0x00005654f1b13074 spl_perform_autoload (php-fpm + 0x313074)#012
#5  0x00005654f1c7149d zend_lookup_class_ex (php-fpm + 0x47149d)#012
#6  0x00005654f1c72b66 zend_fetch_class_by_name (php-fpm + 0x472b66)#012
#7  0x00005654f1c942d7 ZEND_NEW_SPEC_CONST_UNUSED_HANDLER (php-fpm + 0x4942d7)#012
#8  0x00005654f1cc3680 execute_ex (php-fpm + 0x4c3680)#012
#9  0x00005654f1cc1715 zend_execute (php-fpm + 0x4c1715)#012
#10 0x00005654f1d28e44 zend_execute_script (php-fpm + 0x528e44)#012
#11 0x00005654f1bc1a18 php_execute_script_ex (php-fpm + 0x3c1a18)#012
#12 0x00005654f1a46aa3 main (php-fpm + 0x246aa3)#012
#13 0x00007efff26295d0 __libc_start_call_main (libc.so.6 + 0x295d0)#012
#14 0x00007efff2629680 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x29680)#012
#15 0x00005654f1a488f5 _start (php-fpm + 0x2488f5)#012ELF object binary architecture: AMD x86-64

no jit, just enabling opcache

I'm not sure if it's related to Wordpress or not (didn't find any ticket related on their bug trac)

PHP Version

PHP 8.4.5

Operating System

Rocky Linux 9.5

@iluuu1994
Copy link
Member

Hi @Neurozone. This stack trace isn't very telling.

  • Do you have any 3rd party extensions loaded (even if disabled) (e.g. xdebug, redis, etc.)
  • Can you reliably reproduce this crash?
  • Can you try running the affected endpoint with Valgrind, with these two environment variables set:
export USE_ZEND_ALLOC=0
export ZEND_DONT_UNLOAD_MODULES=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants