Debugging Tips
| From: | Ben Burke | Date: | Thu, 03 Apr 2003 13:20:43 +0000 |
| Subject: | Debugging Tips | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-10871@lists.php.net to get a copy of this message | ||
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
?)
Anyone have any suggestions?
Thanks,
Ben Burke
--
Some details;
The apache errors when the code is run are:
[notice] child pid 49761 exit signal Segmentation fault (11)
-and-
httpd in free(): warning: chunk is already free
Ktrace looks like this before the signal:
19575 httpd 1049374829.256094 CALL read(0xd,0x82d4000,0x1)
19575 httpd 1049374829.256099 GIO fd 13 read 1 byte
"\M-~"
19575 httpd 1049374829.256102 RET read 1
19575 httpd 1049374829.256215 PSIG SIGSEGV caught handler=0x806168c
mask=0x0 code=0x0