 
    
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>core dump Archives - Complete, Concrete, Concise</title>
	<atom:link href="https://complete-concrete-concise.com/tag/core-dump/feed/" rel="self" type="application/rss+xml" />
	<link>https://complete-concrete-concise.com/tag/core-dump/</link>
	<description>Practical Information Without The Bloat</description>
	<lastBuildDate>Sun, 01 Sep 2013 19:52:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>WordPress Generating Core Dumps</title>
		<link>https://complete-concrete-concise.com/web-tools/wordpress-generating-core-dumps/</link>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Sun, 01 Sep 2013 19:52:59 +0000</pubDate>
				<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[account suspended]]></category>
		<category><![CDATA[core dump]]></category>
		<category><![CDATA[crashing]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[error_log]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/?p=3004</guid>

					<description><![CDATA[<p>Surprisingly, the culprit is probably PHP.</p>
<p>The post <a href="https://complete-concrete-concise.com/web-tools/wordpress-generating-core-dumps/">WordPress Generating Core Dumps</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="c1">
<p>Between 30-August-2013 and 01-September-2013, Complete, Concrete, Concise had its web hosting suspended with a demand that the WordPress installation be deleted.</p>
<p>Not wanting to delete my installation and then reinstall (and hopefully restore all data correctly), I investigated.</p>
<p><a href="//complete-concrete-concise.com/wp-content/uploads/2013/09/core-dump-1-big.png" target="_blank"><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/09/core-dump-1-thumb.png" alt="" border="0" class="centered"/></a></p>
<div class="c2">
<p><strong>Note:</strong> this problem and solution is likely the same for any PHP based application &#8211; like Joomla! or Drupal.</p>
</div>
</div>
<h1>Symptoms</h1>
<p>Most likely, your web hosting provider will inform you that your account has been <strong><u>suspended</u></strong> because your WordPress (or other PHP based application) is generating a lot of core dumps and playing havoc with their server. In my case, I was asked to delete my WordPress installation.</p>
<p>Alternately, you may notice there are a lot of <code>core.xxxx</code> (xxxx being a four digit number) files in your WordPress directory.</p>
<h1>The Cause</h1>
<div class="c1">
<p>There may be other causes for core dumps, but this is what was causing mine.</p>
</div>
<p>When your <code>error_log</code>  file gets to be 2,147,483,647 bytes long, PHP will start crashing and generating core dumps. This is because PHP cannot handle files larger than 2GB.</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2013/09/core-dump-2.png" alt="" border="0" class="centered"/></p>
<p><code>error_log</code> is where PHP stores messages about any errors it encounters.</p>
<p>The most common cause of errors is a corrupt MySQL database file.</p>
<div class="c1">
<p>I suspect this is a fairly common problem but I could only find it mentioned <a href="http://www.stevenwoodson.com/blog/archives/2011/02/16/apache-2gb-file-limit/">here</a>.</p>
<p>PHP&#8217;s failure in dealing with files larger than 2<sup>31</sup> &#8211; 1 bytes long is documented <a href="http://de2.php.net/manual/en/function.filesize.php">here</a> (although, the expression &#8220;<u>unexpected behaviour</u>&#8221; doesn&#8217;t really do it justice). To be fair, the PHP documentation claims this is only a problem on 32-bit systems &#8211; however, since I don&#8217;t know if my web host is running a 32 or 64 bit version of Linux, I can&#8217;t say anything other than &#8220;it is really stupid to not fail gracefully at a known hard limit&#8221;.</p>
</div>
<h1>The Fix</h1>
<div class="c1">
<p>When your account is suspended, you will probably only have <code>ftp</code> access.</p>
</div>
<ol>
<li>Delete the file <code>error_log</code>.</li>
<li>rename <code>index.php</code> to something else (<code>xxx_index.php</code> is good)</li>
<li>inform your hosting provider that:
<ol>
<li>you suspect the problem was PHP&#8217;s inability to handle and <code>error_log</code> larger than 2GB and you have deleted it</li>
<li>you have deactivated your WordPress account by renaming <code>index.php</code> </li>
<li>you would like access to your account restored so you can run MySQL applications to check and repair your database if necessary</li>
</ol>
</li>
<li>Fix the database (if it is corrupted). Instructions for checking and repairing a database can be found <a href="//complete-concrete-concise.com/web-tools/when-your-website-stops-working-properly-it-may-be-a-corrupt-database">here</a>.</li>
<li>restore the name of the file in step (2) back to <code>index.php</code></li>
<li>go to your website and browse a few pages.</li>
<li>verify that <code>core.xxxx</code> files are not being generated. If they are being generated, than you probably have some other problem.</li>
<li>verify that the file <code>error_log</code> is not being generated. If it is being generated, it is a good idea to look at it and see what errors are occurring. Depending on how quickly <code>error_log</code> is growing, it might be a good idea to suspend your site again by renaming <code>index.php</code></li>
</ol>

<p>The post <a href="https://complete-concrete-concise.com/web-tools/wordpress-generating-core-dumps/">WordPress Generating Core Dumps</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
