help with debug output
| From: | Justin Hannus | Date: | Tue, 24 Aug 2004 17:06:11 +0000 |
| Subject: | help with debug output | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-1209@lists.php.net to get a copy of this message | ||
I just want to make sure that I completely understand some of the output
from php when developing ext's compiled with --enable-debug.
The output:
----
[Tue Aug 24 01:04:31 2004] Script: './ext/sndfile/make_cine.php'
---------------------------------------
/home/jhannus/local/src/php-4.3.6/ext/sndfile/sndfile.c(289) : Block
0x40226008 status:
Beginning: OK (allocated on
/home/jhannus/local/src/php-4.3.6/ext/sndfile/sndfile.c:258, 705600
bytes)
End: Overflown (magic=0xF792FDF2 instead of 0x2A8FCC84)
At least 4 bytes overflown
---------------------------------------
/home/jhannus/local/src/php-4.3.6/ext/sndfile/sndfile.c(258) : Freeing
0x4022602C (705600 bytes), s
cript=./ext/sndfile/make_cine.php
----
Means that the memory was freed but tried to take out some other memory that
doesn't belong with it??
I'm registering a struct as a resource and allocating memory both with
emalloc and ecalloc on the same struct. emalloc for the struct and ecalloc
on one of its members. The resource is freed with its destructor using efree
first on the member then on the struct itself. I can post snippets.
-Justin Hannus