What is a Core Dump?

When you have a process running in System Memory and it does not finish, the portion of memory that the process was using is dumped to a file for further reivew. This is helpful for debugging your scripts. Core dumps usually have a file name that looks similar to:
core.5744

How can I review a Core Dump?

For the average user (and even the advanced user), getting information out of a core dump can be difficult. Most of the information contained in core dumps can be found with either of the two commands:

gdb -c core.####
strings core.####

These commands above need to be ran from the command line, however most shared hosting (including Web Hosting Hub) does not allow command line access for security reasons. We've created a simple php script that allows you to find core dumps and use the commands above to review their contents. The script can be found here:
http://www.webhostinghub.com/support/files/scripts/coredumpcheck.txt

To use the coredumpcheck script:

  1. Upload the coredumpcheck.txt file to the folder where you have core dumps
  2. Rename coredumpcheck.txt to coredumpcheck.php
  3. Access coredumpcheck.php in your browser. For example if you have a folder named "test" with core dumps and you uploaded the coredumpcheck.txt file there, access http://YourDomain.com/test/coredumpcheck.php
  4. The script will list all core dumps in the current directory. Click any of the core dumps to view more details about the dump.

Look under the "RUNNING: gdb -c core.30387" heading to find the script that is causing the problem. It will be in a line that looks similar to:

Core was generated by `/usr/bin/php /home/training/public_html/t2c_escalation/escalatet2s.php'.


We've highlighted the correct line in the screenshot below.

 

core_dump

How can I resolve a Core Dump?

Core Dumps in nature are an advanced topic. It is best to contact your website developer with the information that you have obtained using the coredumpcheck.php file.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}