Re: Debugging Tips
| From: | Derick Rethans | Date: | Thu, 03 Apr 2003 13:23:02 +0000 |
| Subject: | Re: Debugging Tips | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-10872@lists.php.net to get a copy of this message | ||
On Thu, 3 Apr 2003, Ben Burke wrote:
> Hi-
>
> PHP 4.3.1 as APXS2 (2.0.44) on a fairly recent FreeBSD 4.8 RC
>
> I'm having a hell of a time with PHP segfaulting on me. I'm trying to
> whittle down the problematic code into a simple test case, but it only
> happens during use of a complex inherited class with overloading
> enabled. This class uses mysql, and in the ktrace it looks like it's
> just finished getting data from the mysql server before it chokes.
>
> I don't know apache internals at all. Is there a way to get a dump of
> just the PHP module? Are there any help documents on how to debug this
> kind of problem? (like a PHP equivalent to apache's
> http://httpd.apache.org/dev/debugging.html ?)
Have a look here:
http://bugs.php.net/bugs-generating-backtrace.php
it should help you making a backtrace an finding out where it borks.
Derick
--
"my other box is your windows PC"
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------