memory leak in modules
| From: | Jakub Skopal | Date: | Thu, 02 Sep 1999 12:49:39 +0000 |
| Subject: | memory leak in modules | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-3999@lists.php.net to get a copy of this message | ||
Hi,
I'm creating a dynamic module and compiling with
ZEND_DEBUG option. Unfortunatelly, when I get a memory leak
in my dynamic module, zend tries to print the filename of
the module, leak occured in, and since it is no longer
loaded (I think it's becouse of this), the filename pointer
no longer points into valid memory area and thus httpd gets
SIGSEGV, while trying to write "memory leak at....". what
'bout redefining emalloc to _emalloc(...,__LINE__,__FILE__)
only when COMPILE_DL is not defined?
Jakub
--
Jakub "RiffRaff" Skopal
mailto:j@kubs.cz