How to trace a crash bug?

From: Date: Thu, 25 Mar 2010 06:24:16 +0000
Subject: How to trace a crash bug?
Groups: php.internals 
Request: Send a blank email to internals+get-47587@lists.php.net to get a copy of this message
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:

<A few zillion entries before this one exist that are identical except for the timestamp and child process ID.>
[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/



Thread (14 messages)

« previous php.internals (#47587) next »