This will explain how to debug segmentation faults caused by mod_php.

  1. use
    strace, truss, kdump/ktrace
    on httpd children and you will probably see the php filename causing the issue

  2. Set CoreDumpDirectory on one of the crashing systems

  3. Make sure you have debugging symbols. On Redhat/CentOS you will need to install -debuginfo RPM (for apache/httpd AND php/mod_php)
  4. echo 1 > /proc/sys/fs/suid_dumpable
  5. set OpenGPGCheck = no in /etc/abrt/abrt-action-save-package-data.conf

  6. Run
    gdb httpd core.1234

  7. Now run

  8. and examine the
    tips for php/gdb
  9. print *opline
    print opline->op2.u.constant.value.str.val
    print opline->op1.u.constant.value.str.val
    In my case (and the one below) op1 started with a null byte, so you needed to run:
    print opline->op1.u.constant.value.str.val+1
    And you will get the php file name and, probably, the function which is causing the issue.