Ferenc Kovacs wrote:
apache version?
If you read the message, you would see "Apache 2.2.13".
php version? thread safe, or nts?
If you read the message, you would see "PHP 5.2.13". I didn't mention
thread safe. Sorry. Forgot about that.
does it crash with a hello world script, or only with your complex script.
if its crash only with your script, then we cant help without a testcase.
That is what I am trying to do: Come up with either a simple test case
OR pinpoint the crash in the C code. The simple test case route wasn't
working, so I'm left with tracing the code. Hence my query.
btw: I think you've chosen the wrong mailing list with your problem, the
internals mailing list is for the php developers who write php engine in C,
not for developers who writes php applications.
I'm pretty sure I'm on the right list. I know C/C++ and want to hook
into the PHP source with a C debugger (VS IDE, preferably). In other
words, I'm going to be digging around in the engine to find this
problem. Plus, this will give me a good look at the guts of PHP.
ps: if you found a bug, open a ticket in the bugtracker.
Will do after I've got a reasonable test case and/or patch to work with.
Simply saying "PHP crashes with complex code" isn't helpful to anyone.
I was basically after a general guide for getting a Debug build that I
can hook into with the VS debugger and stop on crash bugs from within
the Apache module.
Oh well. I'll try to build and will get back to you. I can't do
anything else on this project until I figure out this bug. I probably
should grab the latest snapshot just in case...
Darn. Windows snapshot binaries are broken. Guess I'm building it anyway.
Tyrael
On Thu, Mar 25, 2010 at 7:24 AM, Thomas Hruska <thru...@cubiclesoft.com>wrote:
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/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197
*NEW* MyTaskFocus 1.1
Get on task. Stay on task.
http://www.CubicleSoft.com/MyTaskFocus/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php