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!

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:
    993
    Likes Received:
    2
    Trophy Points:
    168
    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:
    68
    Likes Received:
    1
    Trophy Points:
    58
    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,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    993
    Likes Received:
    2
    Trophy Points:
    168
    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:
    68
    Likes Received:
    1
    Trophy Points:
    58
    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,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #4 whplus, Nov 11, 2008
    Last edited: Nov 11, 2008
  5. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    993
    Likes Received:
    2
    Trophy Points:
    168
    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

  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