Small blog about system administration.

PHP segfault problem at cPanel based servers

I just looked at my logs and I'm noticing that every so often PHP processes are segfaulting.

Apr 23 01:53:04 deuce kernel: php[13001]: segfault at 0000000000000000 rip 00000000007579c2 rsp 00007fff43b278d0 error 4 
Apr 23 01:53:07 deuce kernel: php[13010] general protection rip:7579da rsp:7fff79886c60 error:0

If you have .core files, you can track down the PHP application causing it as those .core files would generate in the folder where the script is executing.

You can check if you have .core files enabled by running this command:

# ulimit -a

If you see the following:

core file size (blocks, -c) 0

Then .core files will not form. You can change this temporarily to unlimited by doing the following:

#ulimit -c unlimited

Running "ulimit -a" after that point should show this as unlimited:


core file size (blocks, -c) unlimited


If you have any issues with the above not working, you might review this guide for increasing core file dump limits:

After you do have .core files forming, you can use this guide as a basis for reading the core dump files:

No comments :

Post a Comment