From:             guth at fiifo dot u-psud dot fr
Operating system: Linux (Mandrake 10)
PHP version:      5.0.1
PHP Bug Type:     Performance problem
Bug description:  memory leaks

Description:
------------
(i'm french, excuse me for my english)

I try to develop a CMS and i take more time to debug PHP than code PHP...
After 3 segmentation fault, I compiled PHP with --enable-debug, and my
tests give the following errors.

Reproduce code:
---------------
/usr/src/php-5.0.1/Zend/zend_builtin_functions.c(1023) :  Freeing
0x0846F864 (23 bytes), script=/www/haricow/0.4/haricow/test/runTests.php
/usr/src/php-5.0.1/Zend/zend_variables.c(137) : Actual location (location
was relayed)
Last leak repeated 32 times
/usr/src/php-5.0.1/Zend/zend_builtin_functions.c(1013) :  Freeing
0x084702C4 (16 bytes), script=/www/haricow/0.4/haricow/test/runTests.php
Last leak repeated 32 times
/usr/src/php-5.0.1/Zend/zend_execute.c(3718) :  Freeing 0x0844FA94 (44
bytes), script=/www/haricow/0.4/haricow/test/runTests.php
/usr/src/php-5.0.1/Zend/zend_variables.c(149) : Actual location (location
was relayed)
Last leak repeated 1 time
/usr/src/php-5.0.1/Zend/zend_execute.c(3252) :  Freeing 0x0844DCCC (16
bytes), script=/www/haricow/0.4/haricow/test/runTests.php
Last leak repeated 7 times
/usr/src/php-5.0.1/Zend/zend_variables.c(150) :  Freeing 0x0843597C (32
bytes), script=/www/haricow/0.4/haricow/test/runTests.php
/usr/src/php-5.0.1/Zend/zend_hash.c(169) : Actual location (location was
relayed)
/usr/src/php-5.0.1/Zend/zend_execute.c(3389) :  Freeing 0x084315DC (16
bytes), script=/www/haricow/0.4/haricow/test/runTests.php
/usr/src/php-5.0.1/Zend/zend_hash.c(242) :  Freeing 0x08233804 (40 bytes),
script=/www/haricow/0.4/haricow/test/runTests.php
=== Total 79 memory leaks detected ===

Expected result:
----------------
No memory leaks

Actual result:
--------------
About 3 Kb of memory leaks.
I tryed to "insulate" them, but i didn't manage, because of the complexity
of the script.

-- 
Edit bug report at http://bugs.php.net/?id=29975&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29975&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29975&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29975&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=29975&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=29975&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=29975&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=29975&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=29975&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=29975&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=29975&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=29975&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=29975&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=29975&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29975&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=29975&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=29975&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=29975&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29975&r=float

Reply via email to