Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51798 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94704 invoked from network); 3 Apr 2011 10:20:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Apr 2011 10:20:43 -0000 Authentication-Results: pb1.pair.com header.from=Pascal.Courtois@nouvo.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=Pascal.Courtois@nouvo.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain nouvo.com designates 91.121.162.155 as permitted sender) X-PHP-List-Original-Sender: Pascal.Courtois@nouvo.com X-Host-Fingerprint: 91.121.162.155 sociatom2.sociatom.com Received: from [91.121.162.155] ([91.121.162.155:53614] helo=ks360347.kimsufi.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/62-52504-9F9489D4 for ; Sun, 03 Apr 2011 06:20:42 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by ks360347.kimsufi.com (Postfix) with ESMTP id 30F835008D for ; Sun, 3 Apr 2011 12:20:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at sociatom.com Received: from ks360347.kimsufi.com ([127.0.0.1]) by localhost (ks360347.kimsufi.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8oZW6G06uALc for ; Sun, 3 Apr 2011 12:20:21 +0200 (CEST) Received: from [192.168.0.205] (lns-bzn-47f-62-147-131-15.adsl.proxad.net [62.147.131.15]) by ks360347.kimsufi.com (Postfix) with ESMTPA for ; Sun, 3 Apr 2011 12:20:21 +0200 (CEST) Message-ID: <4D9849EA.9010805@nouvo.com> Date: Sun, 03 Apr 2011 12:20:26 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: internals@lists.php.net References: <4D95B6AB.30608@templeet.org> <4D960169.3000400@templeet.org> In-Reply-To: <4D960169.3000400@templeet.org> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] how to find a memory corruption in php ? From: Pascal.Courtois@nouvo.com (Pascal COURTOIS) Le 01/04/2011 18:46, Pascal COURTOIS a écrit : > Le 01/04/2011 15:20, Pierre Joye a écrit : >> hi, >> >> In php 5.3+ the memory limit default is 256MB, not 128MB. 5.3 does not >> necessary use more memory but actually uses and reports its usage more >> efficiently. I would suggest to use this default value and try again. > > the exact same bug occurs whatever the limit set. Anyway, when it works > it's ok with 6MB so it's not a matter of quantity obviously. further investigations show that my program uses around 3Mbytes of memory BUT real_usage memory increases constantly which could suggest either a bug in the zend memory manager or a very special condition in my php program making the memory manager unable to use holes in its system allocated memory. the use of gc_collect_cycles() as suggested privately does not make any difference.