[Resolved] How to get php core dump

Status
Not open for further replies.

bobykus

Well-Known Member
#1
Hello,

We run php 5.3 as Ext App via SuExec daemon. Sometimes it crashes with "Segfault at". Do you know how to get a core of crashed php process to start investigation? Litespeed is started with
Code:
ulimit -c unlimited
in starup and env variable for php is set LSAPI_ALLOW_CORE_DUMP=1. Also

Code:
 cat /proc/sys/kernel/core_pattern
/tmp/lshttpd/core-%e.%p
but nothing visible in /tmp/lshttpd
 
Last edited by a moderator:

bobykus

Well-Known Member
#3
Try what? LSAPI_ALLOW_CORE_DUMP=1 is set.


Code:
 cat /etc/abrt/abrt-action-save-package-data.conf | grep ProcessUnpackaged
ProcessUnpackaged = yes

 ls -la /var/spool/abrt/
total 8
drwxr-xr-x   2 abrt abrt 4096 Feb 25 13:01 .
drwxr-xr-x. 11 root root 4096 Feb 25 13:01 ..
-rw-r--r--   1 root root    0 Feb 25 13:01 abrt-db
Where core file can be located?
 
Last edited by a moderator:

mistwang

LiteSpeed Staff
#4
you need to change /proc/sys/kernel/core_pattern to
Code:
/tmp/core-%e.%p
PHP suEXEC processes cannot write to /tmp/lshttpd directory.
 
Last edited by a moderator:
Status
Not open for further replies.
Top