Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7086 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45568 invoked by uid 1010); 14 Jan 2004 08:56:21 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 45544 invoked from network); 14 Jan 2004 08:56:20 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 14 Jan 2004 08:56:20 -0000 Received: (qmail 25678 invoked from network); 14 Jan 2004 08:56:18 -0000 Received: from guardian.zend.office (HELO andi-laptop.zend.com) (10.1.1.4) by int.zend.com with SMTP; 14 Jan 2004 08:56:18 -0000 Message-ID: <5.1.0.14.2.20040114105605.02b9e8f0@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 14 Jan 2004 10:56:17 +0200 To: Sterling Hughes ,internals@lists.php.net In-Reply-To: <20040113234225.GI23361@bumblebury.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Leak Script From: andi@zend.com (Andi Gutmans) References: <20040113234225.GI23361@bumblebury.com> Looks like a circular reference to me. It's supposed to leak :) Andi At 06:42 PM 1/13/2004 -0500, Sterling Hughes wrote: >Hey, > >The attached script gives 10 leaks when PHP5 is compiled with >--enable-debug. These problems are also related to Bug #26765, I'll be >taking a look at it, unless someone knows the cause already. > >The leaks caused when running it are: > >/home/sterling/work/php/php-src/Zend/zend_execute.c(2840) : Freeing >0x40162A30 (16 bytes), script=t.php >/home/sterling/work/php/php-src/Zend/zend_hash.c(236) : Freeing >0x401629CC (44 bytes), script=t.php >Last leak repeated 1 time >/home/sterling/work/php/php-src/Zend/zend_execute.c(3094) : Freeing >0x40162968 (44 bytes), script=t.php >/home/sterling/work/php/php-src/Zend/zend_API.c(720) : Actual location >(location was relayed) >Last leak repeated 1 time >/home/sterling/work/php/php-src/Zend/zend_objects.c(88) : Freeing >0x40162924 (12 bytes), script=t.php >Last leak repeated 1 time >/home/sterling/work/php/php-src/Zend/zend_execute.c(3093) : Freeing >0x401628E0 (16 bytes), script=t.php >/home/sterling/work/php/php-src/Zend/zend_API.c(721) : Freeing >0x4016272C (32 bytes), script=t.php >/home/sterling/work/php/php-src/Zend/zend_hash.c(157) : Actual location >(location was relayed) >Last leak repeated 1 time >=== Total 10 memory leaks detected === > >-Sterling > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php