很多segfaults和glibc也检测到了错误

我的apache error.log有很多segfault错误:

[core:notice] [pid 16753] AH00052: child pid 4861 exit signal Segmentation fault (11) 

还有一些glibc每隔10个小时检测一次错误:

 *** glibc detected *** /usr/sbin/httpd: malloc(): corrupted unsorted chunks 2: 0x00007fcfcde5fd80 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x75dee)[0x7fcfcb7f1dee] /lib64/libc.so.6(+0x7a4b8)[0x7fcfcb7f64b8] /lib64/libc.so.6(__libc_malloc+0x5c)[0x7fcfcb7f6aac] /opt/cpanel/ea-php56/root/usr/lib64/php/modules/ioncube_loader_lin_5.6.so(+0x104f5f)[0x7fcfc2a14f5f] /opt/cpanel/ea-php56/root/usr/lib64/php/modules/ioncube_loader_lin_5.6.so(+0xd6506)[0x7fcfc29e6506] /opt/cpanel/ea-php56/root/usr/lib64/php/modules/ioncube_loader_lin_5.6.so(+0xd8352)[0x7fcfc29e8352] /opt/cpanel/ea-php56/root/usr/lib64/php/modules/ioncube_loader_lin_5.6.so(+0x74e82)[0x7fcfc2984e82] /opt/cpanel/ea-php56/root/usr/lib64/apache2/modules/libphp5.so(compile_filename+0xae)[0x7fcfc4faa6de] /opt/cpanel/ea-php56/root/usr/lib64/php/modules/ioncube_loader_lin_5.6.so(+0x72e76)[0x7fcfc2982e76] /opt/cpanel/ea-php56/root/usr/lib64/php/modules/ioncube_loader_lin_5.6.so(+0x71179)[0x7fcfc2981179] /opt/cpanel/ea-php56/root/usr/lib64/php/modules/ioncube_loader_lin_5.6.so(+0x714ff)[0x7fcfc29814ff] /opt/cpanel/ea-php56/root/usr/lib64/apache2/modules/libphp5.so(zend_call_function+0x9b0)[0x7fcfc4fcd800] /opt/cpanel/ea-php56/root/usr/lib64/apache2/modules/libphp5.so(zend_call_method+0x1c7)[0x7fcfc4ff3a07] /opt/cpanel/ea-php56/root/usr/lib64/apache2/modules/libphp5.so(+0x18c116)[0x7fcfc4ee4116] /opt/cpanel/ea-php56/root/usr/lib64/apache2/modules/libphp5.so(zend_call_function+0x929)[0x7fcfc4fcd779] /opt/cpanel/ea-php56/root/usr/lib64/apache2/modules/libphp5.so(zend_lookup_class_ex+0x255)[0x7fcfc4fcdd25] /opt/cpanel/ea-php56/root/usr/lib64/php/modules/ioncube_loader_lin_5.6.so(+0x99b95)[0x7fcfc29a9b95] /opt/cpanel/ea-php56/root/usr/lib64/php/modules/ioncube_loader_lin_5.6.so(+0x71179)[0x7fcfc2981179] /opt/cpanel/ea-php56/root/usr/lib64/php/modules/ioncube_loader_lin_5.6.so(+0x714ff)[0x7fcfc29814ff] /opt/cpanel/ea-php56/root/usr/lib64/apache2/modules/libphp5.so(zend_execute_scripts+0x18c)[0x7fcfc4fda53c] /opt/cpanel/ea-php56/root/usr/lib64/apache2/modules/libphp5.so(php_execute_script+0x2aa)[0x7fcfc4f7839a] /opt/cpanel/ea-php56/root/usr/lib64/apache2/modules/libphp5.so(+0x329c45)[0x7fcfc5081c45] /usr/sbin/httpd(ap_run_handler+0x40)[0x7fcfcd012b90] /usr/sbin/httpd(ap_invoke_handler+0xce)[0x7fcfcd01704e] /usr/sbin/httpd(ap_process_async_request+0x3fa)[0x7fcfcd02b7ea] /usr/sbin/httpd(ap_process_request+0x1f)[0x7fcfcd02b94f] /usr/sbin/httpd(+0x5c7c5)[0x7fcfcd0277c5] /usr/sbin/httpd(ap_run_process_connection+0x40)[0x7fcfcd01e250] /etc/apache2/modules/mod_mpm_prefork.so(+0x3ae4)[0x7fcfcaf6cae4] /etc/apache2/modules/mod_mpm_prefork.so(+0x3d1e)[0x7fcfcaf6cd1e] /etc/apache2/modules/mod_mpm_prefork.so(+0x4775)[0x7fcfcaf6d775] /usr/sbin/httpd(ap_run_mpm+0x4e)[0x7fcfccff3cce] /usr/sbin/httpd(main+0xbc1)[0x7fcfccfecfc1] /lib64/libc.so.6(__libc_start_main+0xfd)[0x7fcfcb79ad1d] /usr/sbin/httpd(+0x205c9)[0x7fcfccfeb5c9] 

Apache版本:

 Server version: Apache/2.4.27 (cPanel) 

PHP版本:

 ea-php-cli Copyright 2017 cPanel, Inc. PHP 5.6.31 (cli) (built: Aug 17 2017 01:08:43) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v6.1.0 (), Copyright (c) 2002-2017, by ionCube Ltd. with Zend Guard Loader v3.3, Copyright (c) 1998-2014, by Zend Technologies with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies 

我用prefork运行DSO处理程序(CGI),我有以下apache模块:

 Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_prefork_module (shared) cgi_module (shared) access_compat_module (shared) actions_module (shared) alias_module (shared) asis_module (shared) auth_basic_module (shared) authn_core_module (shared) authn_file_module (shared) authz_core_module (shared) authz_groupfile_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) deflate_module (shared) dir_module (shared) env_module (shared) expires_module (shared) filter_module (shared) headers_module (shared) imagemap_module (shared) include_module (shared) log_config_module (shared) logio_module (shared) mime_module (shared) negotiation_module (shared) proxy_module (shared) proxy_fcgi_module (shared) proxy_http_module (shared) proxy_wstunnel_module (shared) rewrite_module (shared) setenvif_module (shared) slotmem_shm_module (shared) socache_dbm_module (shared) socache_shmcb_module (shared) status_module (shared) suexec_module (shared) unique_id_module (shared) unixd_module (shared) userdir_module (shared) ssl_module (shared) bwlimited_module (shared) auth_token_module (shared) flvx_module (shared) php5_module (shared) h264_streaming_module (shared) 

什么会导致我的错误?

看起来像在离子立方体中发生故障。 话虽如此,你有一个巨大的和不同数量的模块加载到您的networking服务器,这不完全是一个稳定的配方。 您也在同一个实例上运行2个解码器。 那么出于某种原因,你也有混合的cpanel(这使得你的问题脱离主题)。

如果你真的需要所有这些模块和两个编码器,那么你应该开始在单独的实例中分割应用程序。