httpd invalid pointer in libphp7

asked 2017-09-11 07:45:51 -0500

I've been using Fedora 25 for a few months now on a server at my work. It has run fine, until about a month ago. Now, roughly once a week, I am getting an invalid pointer error which brings httpd down. I've done some testing, including disabling http2 (which seemed to be the general consensus for the error), But to no avail.

It is essentially this:

[Mon Sep 11 03:35:04.107929 2017] [lbmethod_heartbeat:notice] [pid 16726] AH02282: No slotmem from mod_heartmonitor
*** Error in `/usr/sbin/httpd': free(): invalid pointer: 0x0000564b40b9a810 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x791bb)[0x7f55e0ee71bb]
/lib64/libc.so.6(+0x8282a)[0x7f55e0ef082a]
/lib64/libc.so.6(cfree+0x4c)[0x7f55e0ef425c]
/etc/httpd/modules/libphp7.so(+0xc6831)[0x7f55d1ec4831]
/etc/httpd/modules/libphp7.so(zend_error+0x2bd)[0x7f55d1ec6737]
/etc/httpd/modules/libphp7.so(zend_register_module_ex+0x2db)[0x7f55d204af7b]
/etc/httpd/modules/libphp7.so(php_load_extension+0x10e)[0x7f55d1f87cce]
/etc/httpd/modules/libphp7.so(zend_llist_apply+0x1e)[0x7f55d203796e]
/etc/httpd/modules/libphp7.so(+0x1ecd2a)[0x7f55d1fead2a]
/etc/httpd/modules/libphp7.so(php_module_startup+0x70e)[0x7f55d1fe2c4e]
/etc/httpd/modules/libphp7.so(+0x2dccc5)[0x7f55d20dacc5]
/etc/httpd/modules/libphp7.so(+0x2dd850)[0x7f55d20db850]
/usr/sbin/httpd(ap_run_post_config+0x63)[0x564b3f729de3]
/usr/sbin/httpd(main+0x962)[0x564b3f7062d2]
/lib64/libc.so.6(__libc_start_main+0xf1)[0x7f55e0e8e401]
/usr/sbin/httpd(_start+0x2a)[0x564b3f70647a]

Now it seems like that's coming from lib_heartbeat? So I could disable that. But I believe Apache uses that module for load balancing the actual server processes?

Other, potentially pertinent information:

Server version: Apache/2.4.27 (Fedora)
Server built:   Jul 17 2017 13:12:07

And:

Loaded Modules:
 core_module (static)
 so_module (static)
 http_module (static)
 access_compat_module (shared)
 actions_module (shared)
 alias_module (shared)
 allowmethods_module (shared)
 auth_basic_module (shared)
 auth_digest_module (shared)
 authn_anon_module (shared)
 authn_core_module (shared)
 authn_dbd_module (shared)
 authn_dbm_module (shared)
 authn_file_module (shared)
 authn_socache_module (shared)
 authz_core_module (shared)
 authz_dbd_module (shared)
 authz_dbm_module (shared)
 authz_groupfile_module (shared)
 authz_host_module (shared)
 authz_owner_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cache_module (shared)
 cache_disk_module (shared)
 cache_socache_module (shared)
 data_module (shared)
 dbd_module (shared)
 deflate_module (shared)
 dir_module (shared)
 dumpio_module (shared)
 echo_module (shared)
 env_module (shared)
 expires_module (shared)
 ext_filter_module (shared)
 filter_module (shared)
 headers_module (shared)
 include_module (shared)
 info_module (shared)
 log_config_module (shared)
 logio_module (shared)
 macro_module (shared)
 mime_magic_module (shared)
 mime_module (shared)
 negotiation_module (shared)
 remoteip_module (shared)
 reqtimeout_module (shared)
 request_module (shared)
 rewrite_module (shared)
 setenvif_module (shared)
 slotmem_plain_module (shared)
 slotmem_shm_module (shared)
 socache_dbm_module (shared)
 socache_memcache_module (shared)
 socache_shmcb_module (shared)
 status_module (shared)
 substitute_module (shared)
 suexec_module (shared)
 unique_id_module (shared)
 unixd_module (shared)
 userdir_module (shared)
 version_module (shared)
 vhost_alias_module (shared)
 watchdog_module (shared)
 dav_module (shared)
 dav_fs_module (shared)
 dav_lock_module (shared)
 lua_module (shared)
 mpm_prefork_module (shared)
 proxy_module (shared)
 lbmethod_bybusyness_module (shared)
 lbmethod_byrequests_module (shared)
 lbmethod_bytraffic_module (shared)
 lbmethod_heartbeat_module (shared)
 proxy_ajp_module (shared)
 proxy_balancer_module (shared)
 proxy_connect_module (shared)
 proxy_express_module (shared)
 proxy_fcgi_module (shared)
 proxy_fdpass_module (shared)
 proxy_ftp_module (shared)
 proxy_http_module (shared)
 proxy_hcheck_module (shared)
 proxy_scgi_module (shared)
 proxy_wstunnel_module (shared)
 ssl_module (shared)
 systemd_module (shared)
 cgi_module (shared)
 dnssd_module (shared)
 proxy_http2_module (shared)
 php7_module (shared)
edit retag flag offensive close merge delete

Comments

Try to disable mod_php and use php-fpm instead.

remi gravatar imageremi ( 2017-09-12 23:38:41 -0500 )edit