Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member Eli L's Avatar
    Join Date
    Aug 2007
    Location
    Bellingham, Washington, United States
    Posts
    53
    cPanel/Enkompass Access Level

    Root Administrator

    Default PHP segfault problem

    I just looked at my logs and I'm noticing that every so often PHP processes are segfaulting. How do I find out whats causing this and debug it?

    Code:
    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
    Thanks
    VlexoFree Web Hosting - Free cPanel Web Hosting / PHP5, ROR, MySQL, Python.

    Chromatic cPanel Login theme | VlexoFree Blog

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: PHP segfault problem

    Do you have any .core files being generated or have it enabled for .core files to generate? 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:

    Code:
    ulimit -a
    If you see the following:

    Code:
    core file size          (blocks, -c) 0
    Then .core files will not form. You can change this temporarily to unlimited by doing the following:

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

    Code:
    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:

    How do I enable core dumps for everybody

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

    PHP :: Generating a gdb backtrace
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. php-fcgid+eaccelerator+custom php.ini+apache2-mpm-worker= segfault?
    By internetfab in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-30-2011, 04:25 PM
  2. srcds_i486[31597]: segfault
    By Haaser in forum cPGS Discussions
    Replies: 0
    Last Post: 02-15-2009, 10:26 AM
  3. php segfault
    By dinfiesta in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-03-2007, 08:29 AM
  4. Segfault with easyapache
    By tutt in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-15-2005, 07:28 AM
  5. apache segfault using easyapache
    By Lem0nHead in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-15-2004, 12:16 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube