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?

Login to comment.

Your Opinion Matters

... but we need to know what you're thinking!

The Community Support team wrote the article you're looking at now. We like to think it's perfect, but we're sure you have some suggestions. Please, let us know what they are!

Feedback
Your Email Address
Because we'd like to talk with you!

Have a Question?

If you need some help, submit your question to our Community! We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)

Recent Questions

  1. Can't login to email
  2. "WordPress Login Temporarily Disabled"?
  3. Google Adwords Credit Link Doesn't Work in AMP

Support 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.