Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72345 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92273 invoked from network); 6 Feb 2014 16:34:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2014 16:34:38 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.182 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.216.182 mail-qc0-f182.google.com Received: from [209.85.216.182] ([209.85.216.182:56245] helo=mail-qc0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0A/94-00209-C99B3F25 for ; Thu, 06 Feb 2014 11:34:37 -0500 Received: by mail-qc0-f182.google.com with SMTP id c9so3503224qcz.41 for ; Thu, 06 Feb 2014 08:34:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=C0uRFTi6MgV2dTHsFbAP/yyM3surv3L+4PY5TjqRYjo=; b=btG8mxEPLVSEiWidyP5tN71wJym7GTqSpRTVyWnFV1yxFUZUILs3ZFDQz1UDic9LQy fQlyZh60WzPbm8kjstOCpg9L6qwNd0CpZOBohRnnyWgfEDxne5XEdfM/3h/9FgAXD8nj 05MsGwK1IF3pNeldttuXcYmQeXy8Azr70patvTjdo2OXsgkhITeC6au5RyejzQirDqdW zqC/NEPBIcwSEMaD5nLs96U/5tlmPpTwF2tqrjKFJzVNBnkBa3pjchVU4vLPyvKqu+Rn cFYAFJi9MCutm63ojArFnKIPbVZTPq8T/KydXqYXqxnxTVLEZYSBKvaw4LEX98zj/brR 6kaw== MIME-Version: 1.0 X-Received: by 10.140.87.9 with SMTP id q9mr13157171qgd.94.1391704473938; Thu, 06 Feb 2014 08:34:33 -0800 (PST) Received: by 10.140.96.70 with HTTP; Thu, 6 Feb 2014 08:34:33 -0800 (PST) In-Reply-To: References: Date: Thu, 6 Feb 2014 17:34:33 +0100 Message-ID: To: Bob Weinand , Tjerk Meesters , PHP Internals Content-Type: multipart/alternative; boundary=001a113a359ccd4efc04f1bf7247 Subject: Re: memory leak in the new power operator tests From: tyra3l@gmail.com (Ferenc Kovacs) --001a113a359ccd4efc04f1bf7247 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Feb 6, 2014 at 4:40 PM, Ferenc Kovacs wrote: > Hi, > > After Bob merged the pow related changes, executing the new tests with > --enable-debug I've got two memory leaks: > > [tyrael@Ferencs-MacBook-Pro-135 php-src.git (PHP-5.6.0 =E2=9C=97)]$ cat > ext/standard/tests/math/pow_variation1_64bit.diff > ext/standard/tests/math/pow_variation2.diff > 083+ [Thu Feb 6 16:20:51 2014] Script: > '/Users/tyrael/checkouts/php-src.git/ext/standard/tests/math/pow_variati= on1_64bit.php' > 084+ /Users/tyrael/checkouts/php-src.git/Zend/zend_API.c(314) : Freeing > 0x10D280C50 (72 bytes), > script=3D/Users/tyrael/checkouts/php-src.git/ext/standard/tests/math/pow_= variation1_64bit.php > 085+ /Users/tyrael/checkouts/php-src.git/Zend/zend_variables.c(141) : > Actual location (location was relayed) > 086+ =3D=3D=3D Total 1 memory leaks detected =3D=3D=3D083+ [Thu Feb 6 16= :20:51 2014] > Script: > '/Users/tyrael/checkouts/php-src.git/ext/standard/tests/math/pow_variati= on2.php' > 084+ /Users/tyrael/checkouts/php-src.git/Zend/zend_API.c(314) : Freeing > 0x10CB8CBE0 (72 bytes), > script=3D/Users/tyrael/checkouts/php-src.git/ext/standard/tests/math/pow_= variation2.php > 085+ /Users/tyrael/checkouts/php-src.git/Zend/zend_variables.c(141) : > Actual location (location was relayed) > 086+ =3D=3D=3D Total 1 memory leaks detected =3D=3D=3D% > > not sure if these were originally in the PR or just something went wrong > with the merge/cherry pick, but would be nice if somebody could look into > it. > thanks! > > -- > Ferenc Kov=C3=A1cs > @Tyr43l - http://tyrael.hu > it seems the leak occures when pow() is called with an array: [tyrael@Ferencs-MacBook-Pro-135 php-src.git (PHP-5.6.0 =E2=9C=97)]$ ./sapi/= cli/php -r 'pow(array(),2);' [Thu Feb 6 17:32:43 2014] Script: '-' Zend/zend_vm_execute.h(28951) : Freeing 0x1100B9ED8 (72 bytes), script=3D- /Users/tyrael/checkouts/php-src.git/Zend/zend_API.c(1011) : Actual location (location was relayed) =3D=3D=3D Total 1 memory leaks detected =3D=3D=3D --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --001a113a359ccd4efc04f1bf7247--