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.

what causes core dumps, and how can I fix the problem?

Discussion in 'General Discussion' started by SoftDux, Nov 11, 2008.

  1. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Hi,

    Every now and then I get a client saying their account is over-quota but they don't have much on their websites. Upon inspection, I often see core dump files (/home/webhost/public_html/core.11050)

    What causes core dump files on shared hosting account, and how can I fix it? How can I even debug it?
     
  2. whplus

    whplus Well-Known Member

    Joined:
    Dec 8, 2007
    Messages:
    66
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Behind your business
    You can use the strings command to process the core dump file.
    Code:
    strings /home/webhost/public_html/core.11050|head 
    susan,
     
  3. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Thank you Susan,

    I get the following:

    Code:
    strings /home/webhost/public_html/core.11050|head
    CORE
    CORE
    /usr/bin/php /home/webhost/public_html/showthread.php
    CORE
    CORE
     D
    !5!@
    `&f&`
    !!T^
    "!L^
    

    Which doesn't mean much to me. What causes the core dumps though?
     
  4. whplus

    whplus Well-Known Member

    Joined:
    Dec 8, 2007
    Messages:
    66
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Behind your business
    It seems php cause core dumps. Use gdb to debug and see the result
    Code:
    gdb /usr/bin/php /home/webhost/public_html/core.11050
    susan,
     
    #4 whplus, Nov 11, 2008
    Last edited: Nov 11, 2008
  5. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Thanx, now I got something:

    From this I can see that it's caused by "Program terminated with signal 24, CPU time limit exceeded."

    So, what determines how much CPS time a script can use, and when to terminated it?
     
Loading...

Share This Page