This will explain how to debug segmentation faults caused by mod_php.
strace, truss, kdump/ktrace on httpd children and you will probably see the php filename causing the issue
- Set CoreDumpDirectory on one of
the crashing systems
- if possible, choose only one system since writing core files can cause a lot of load
Make sure you have debugging symbols. On Redhat/CentOS you will need to install -debuginfo RPM (for apache/httpd AND php/mod_php)
echo 1 > /proc/sys/fs/suid_dumpable
set OpenGPGCheck = no in /etc/abrt/abrt-action-save-package-data.conf
gdb httpd core.1234
and examine the
opline tips for php/gdb
In my case (and the one below) op1 started with a null byte, so you needed to run:
And you will get the php file name and, probably, the function which is causing the issue.