Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47587 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15042 invoked from network); 25 Mar 2010 06:24:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Mar 2010 06:24:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=thruska@cubiclesoft.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=thruska@cubiclesoft.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain cubiclesoft.com designates 217.160.255.148 as permitted sender) X-PHP-List-Original-Sender: thruska@cubiclesoft.com X-Host-Fingerprint: 217.160.255.148 u15187375.onlinehome-server.com Windows 2000 SP4, XP SP1 Received: from [217.160.255.148] ([217.160.255.148:3291] helo=mail.cubiclesoft.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4D/00-14605-7A10BAB4 for ; Thu, 25 Mar 2010 01:24:40 -0500 Received: from [192.168.2.102] ([174.18.34.159]) by cubiclesoft.com with MailEnable ESMTP; Thu, 25 Mar 2010 02:24:18 -0400 Message-ID: <4BAB0190.8090103@cubiclesoft.com> Date: Wed, 24 Mar 2010 23:24:16 -0700 User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: How to trace a crash bug? From: thruska@cubiclesoft.com (Thomas Hruska) PHP 5.2.13 on Windows XP SP3 w/ Apache (PHP as a module) is crashing for me. I've tried to create a simple test case to reproduce but I'm not able to. Any hints/tips or a guide on how to debug this would be highly appreciated. I'm not adverse to debuggers and I have VS2008 Professional on this machine. The system I'm writing is quite complex so I'm not too surprised that I finally ran into a crash bug but tracing this one has me baffled. I used my traditional "when all else fails start displaying junk on the screen" approach to trace the problem to a new function I just wrote today but it crashes somewhere before the function call itself (i.e. it never makes it into the function) - the caller of the function is also a function. Both functions are in the global scope. Apache log: [Wed Mar 24 23:03:47 2010] [notice] Parent: child process exited with status 3221225477 -- Restarting. [Wed Mar 24 23:03:47 2010] [notice] Apache/2.2.13 (Win32) PHP/5.2.13 configured -- resuming normal operations [Wed Mar 24 23:03:47 2010] [notice] Server built: Aug 6 2009 15:50:50 [Wed Mar 24 23:03:47 2010] [notice] Parent: Created child process 1556 [Wed Mar 24 23:03:47 2010] [notice] Child 1556: Child process is running [Wed Mar 24 23:03:47 2010] [notice] Child 1556: Acquired the start mutex. [Wed Mar 24 23:03:47 2010] [notice] Child 1556: Starting 64 worker threads. [Wed Mar 24 23:03:47 2010] [notice] Child 1556: Starting thread to listen on port 80. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/