Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45989 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28047 invoked from network); 10 Nov 2009 13:59:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Nov 2009 13:59:41 -0000 Authentication-Results: pb1.pair.com header.from=scott@macvicar.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=scott@macvicar.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain macvicar.net from 97.107.131.220 cause and error) X-PHP-List-Original-Sender: scott@macvicar.net X-Host-Fingerprint: 97.107.131.220 whisky.macvicar.net Linux 2.6 Received: from [97.107.131.220] ([97.107.131.220:50334] helo=whisky.macvicar.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/E0-22977-CC179FA4 for ; Tue, 10 Nov 2009 08:59:41 -0500 Received: from [192.168.1.138] (cpc3-ersk3-0-0-cust868.14-1.cable.virginmedia.com [86.11.179.101]) by whisky.macvicar.net (Postfix) with ESMTP id 142394695D; Tue, 10 Nov 2009 08:59:37 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes In-Reply-To: <2C.90.22977.AC079FA4@pb1.pair.com> Date: Tue, 10 Nov 2009 13:59:36 +0000 Cc: internals@lists.php.net Content-Transfer-Encoding: 7bit Message-ID: References: <2C.90.22977.AC079FA4@pb1.pair.com> To: Mark Skilbeck X-Mailer: Apple Mail (2.1076) Subject: Re: [PHP-DEV] No core file being created From: scott@macvicar.net (Scott MacVicar) 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