svn: /web/php-bugs/trunk/www/ bugs-generating-backtrace.php

From: Date: Sat, 17 Apr 2010 21:00:01 +0000
Subject: svn: /web/php-bugs/trunk/www/ bugs-generating-backtrace.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-7902@lists.php.net to get a copy of this message
tony2001 Sat, 17 Apr 2010 21:00:01 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=298132 Log: describe a way to collect cores using core_pattern Changed paths: U web/php-bugs/trunk/www/bugs-generating-backtrace.php Modified: web/php-bugs/trunk/www/bugs-generating-backtrace.php =================================================================== --- web/php-bugs/trunk/www/bugs-generating-backtrace.php 2010-04-17 20:45:54 UTC (rev 298131) +++ web/php-bugs/trunk/www/bugs-generating-backtrace.php 2010-04-17 21:00:01 UTC (rev 298132) @@ -43,6 +43,26 @@ </li> </ul> +<h3>Generic way to get a core on Linux</h3> + +<ul> + <li> + Set up the core pattern: + <ul> + <li>echo "&lt;cores dir&gt;/core-%e.%p" &gt; /proc/sys/kernel/core_pattern</li> + <li>make sure the directory is writable by PHP</li> + </ul> + </li> + <li> + Set the ulimit (see above how to do it). + </li> + <li> + Restart/rerun PHP. + </li> +</ul> +<p>After that any process crashing in your system, including PHP, will leave +its core file in the directory you've specified in <i>core_pattern</i>.</p> + <h3>Once you have the core file:</h3> <ul>

« previous php.webmaster (#7902) next »