Bug #78713 [Opn->Asn]: segfaults with opcache.preload

From: Date: Tue, 22 Oct 2019 11:20:17 +0000
Subject: Bug #78713 [Opn->Asn]: segfaults with opcache.preload
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223377@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78713&edit=1 ID: 78713 Updated by: dmitry@php.net Reported by: remi@php.net Summary: segfaults with opcache.preload -Status: Open +Status: Assigned Type: Bug Package: opcache PHP Version: 7.4.0RC4 -Assigned To: +Assigned To: dmitry Block user comment: N Private report: N New Comment: This may be fixed using ffi.preload directive https://github.com/php/php-src/pull/4842 Previous Comments: ------------------------------------------------------------------------ [2019-10-22 06:34:25] remi@php.net Sorry for previous comment segfault happens everywhere (RHEL 7, Centos 8, Fedora...) as soon as trying to preload a class using FFI as root. ------------------------------------------------------------------------ [2019-10-21 14:30:17] remi@php.net Not related to mod_php, same segfault with CLI Could be related to (old) libffi 3.0.13 on RHEL / CentOS 7 ------------------------------------------------------------------------ [2019-10-21 14:08:51] remi@php.net Description: ------------ Using opcache.preload + opcache.preload_user=apache (gdb) bt #0 0x00007ffff657b974 in __memset_sse2 () from /lib64/libc.so.6 #1 0x00007fffe74b1980 in php_request_startup () at /usr/src/debug/php-7.4.0RC4/main/main.c:1798 #2 0x00007fffe759b7ea in php_apache_request_ctor (r=r@entry=0x555556c926d0, ctx=<optimized out>) at /usr/src/debug/php-7.4.0RC4/sapi/apache2handler/sapi_apache2.c:537 #3 0x00007fffe759bf63 in php_handler () at /usr/src/debug/php-7.4.0RC4/sapi/apache2handler/sapi_apache2.c:655 #4 0x0000555555595af0 in ap_run_handler () #5 0x0000555555596039 in ap_invoke_handler () #6 0x00005555555aac4a in ap_process_async_request () #7 0x00005555555aaf32 in ap_process_request () #8 0x00005555555a70c2 in ap_process_http_connection () #9 0x000055555559f120 in ap_run_process_connection () #10 0x00007fffedc317af in child_main () from /etc/httpd/modules/mod_mpm_prefork.so #11 0x00007fffedc319ac in make_child () from /etc/httpd/modules/mod_mpm_prefork.so #12 0x00007fffedc32731 in prefork_run () from /etc/httpd/modules/mod_mpm_prefork.so #13 0x000055555557a0ce in ap_run_mpm () #14 0x0000555555572e26 in main () ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78713&edit=1

« previous php.bugs (#223377) next »