Topic: CentOS 6 - Apache2.2 PHP5.6 segfault in zend_hash_clean
CentOS updated the openssl libraries yesterday, which may or may not be relevant. Since the change, I've been having lots of segfaults. I told Apache to give me core dumps, and a stack trace shows..
Core was generated by `/usr/sbin/httpd'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007fa8219d39d4 in zend_hash_clean () from /etc/httpd/modules/libphp5.so
Missing separate debuginfos, use: debuginfo-install httpd-2.2.15-56.el6.centos.3.x86_64
(gdb) where
#0 0x00007fa8219d39d4 in zend_hash_clean () from /etc/httpd/modules/libphp5.so
#1 0x00007fa8219bb5eb in zend_cleanup_function_data () from /etc/httpd/modules/libphp5.so
#2 0x00007fa8219d3623 in zend_hash_reverse_apply () from /etc/httpd/modules/libphp5.so
#3 0x00007fa8219b743b in ?? () from /etc/httpd/modules/libphp5.so
#4 0x00007fa8219c6332 in zend_deactivate () from /etc/httpd/modules/libphp5.so
#5 0x00007fa821963952 in php_request_shutdown () from /etc/httpd/modules/libphp5.so
#6 0x00007fa821a6c8e7 in ?? () from /etc/httpd/modules/libphp5.so
#7 0x00007fa82d314fa0 in ap_run_handler ()
#8 0x00007fa82d31885e in ap_invoke_handler ()
#9 0x00007fa82d323fb0 in ap_process_request ()
#10 0x00007fa82d320df8 in ?? ()
#11 0x00007fa82d31cac8 in ap_run_process_connection ()
#12 0x00007fa82d328d3d in ?? ()
#13 0x00007fa82d329049 in ?? ()
#14 0x00007fa82d329ccc in ap_mpm_run ()
#15 0x00007fa82d300a80 in main ()
My gdb skills are non-existent.
It's the same spot in each core dump. I am now in guessing mode.. so I've rebooted the machine, run ldconfig, restarted httpd. The machine is not short of memory.
It's not happening on my other machine which runs the same systems, but is less busy.
So basically help!