The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    8
    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
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    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
     
Loading...

Share This Page