php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78713 segfaults with opcache.preload
Submitted: 2019-10-21 14:08 UTC Modified: 2019-10-22 14:59 UTC
From: remi@php.net Assigned: dmitry (profile)
Status: Closed Package: opcache
PHP Version: 7.4.0RC4 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: remi@php.net
New email:
PHP Version: OS:

 

 [2019-10-21 14:08 UTC] 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 ()



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-10-21 14:28 UTC] remi@php.net
-Summary: mod_php segfaults with opcache.preload +Summary: segfaults with opcache.preload
 [2019-10-21 14:30 UTC] 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-22 06:34 UTC] 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-22 11:20 UTC] dmitry@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: dmitry
 [2019-10-22 11:20 UTC] dmitry@php.net
This may be fixed using ffi.preload directive

https://github.com/php/php-src/pull/4842
 [2019-10-22 14:59 UTC] dmitry@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 03 13:01:28 2024 UTC