Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

PHP segfault problem

Discussion in 'General Discussion' started by Eli L, Apr 23, 2011.

  1. Eli L

    Eli L Well-Known Member

    Joined:
    Aug 9, 2007
    Messages:
    61
    Likes Received:
    1
    Trophy Points:
    58
    Location:
    Bellingham, Washington, United States
    cPanel Access Level:
    Root Administrator
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice