Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45991 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31579 invoked from network); 10 Nov 2009 14:18:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Nov 2009 14:18:48 -0000 X-Host-Fingerprint: 86.141.75.49 host86-141-75-49.range86-141.btcentralplus.com Received: from [86.141.75.49] ([86.141.75.49:5892] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/A1-22977-74679FA4 for ; Tue, 10 Nov 2009 09:18:47 -0500 Message-ID: <80.A1.22977.74679FA4@pb1.pair.com> To: internals@lists.php.net Date: Tue, 10 Nov 2009 14:18:33 +0000 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 References: <2C.90.22977.AC079FA4@pb1.pair.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 86.141.75.49 Subject: Re: [PHP-DEV] No core file being created From: markskilbeck@gmail.com (Mark Skilbeck) Scott MacVicar wrote: > On 10 Nov 2009, at 13:55, Mark Skilbeck wrote: > >> I'm trying to debug a segfault that's occuring in an extension I'm >> developing (phpgksu - PHP wrapper for libgksu2). On the PHP site it >> says that if I have PHP configured with --enable-debug (which I do) >> then whenever PHP crashes a core file should be created in the same >> directory the file is executing. However, I do not see one. >> >> I've even run the command as sudo ($ sudo php /file.php) to make sure >> PHP has the permissions to write the file. >> >> Any ideas? >> > > ulimit -c unlimited > > So you can enable core files, the debug mode in PHP just stops > optimizations and stripping of symbols producing a more useful core file. > > Scott Antony Dovgal wrote: > On 10.11.2009 16:55, Mark Skilbeck wrote: >> I'm trying to debug a segfault that's occuring in an extension I'm >> developing (phpgksu - PHP wrapper for libgksu2). On the PHP site it says >> that if I have PHP configured with --enable-debug (which I do) then >> whenever PHP crashes a core file should be created in the same directory >> the file is executing. However, I do not see one. >> >> I've even run the command as sudo ($ sudo php /file.php) to make sure >> PHP has the permissions to write the file. > > # sudo gdb php > gdb> r /file.php > > This way you don't need any core files at all. > Thanks guys :)