Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94009 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37624 invoked from network); 15 Jun 2016 13:23:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jun 2016 13:23:00 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.215.10 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.215.10 mail.experimentalworks.net Received: from [217.114.215.10] ([217.114.215.10:48919] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/61-27860-2B651675 for ; Wed, 15 Jun 2016 09:22:59 -0400 Received: by mail.experimentalworks.net (Postfix, from userid 1003) id 1F89749702; Wed, 15 Jun 2016 15:22:58 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on km31408.keymachine.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=4.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.0 X-Spam-HAM-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP Received: from [192.168.2.34] (ppp-46-244-185-224.dynamic.mnet-online.de [46.244.185.224]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: johannes@schlueters.de) by mail.experimentalworks.net (Postfix) with ESMTPSA id 6266449702; Wed, 15 Jun 2016 15:22:56 +0200 (CEST) Message-ID: <1465996964.12601.5.camel@kuechenschabe> To: Peter LeBrun Cc: internals@lists.php.net Date: Wed, 15 Jun 2016 15:22:44 +0200 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-ulrXxGIJyym/eHXLkc7F" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Subject: Re: [PHP-DEV] PHP allocating too much memory From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) --=-ulrXxGIJyym/eHXLkc7F Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Wed, 2016-06-15 at 09:01 -0400, Peter LeBrun wrote: > I'm getting the following error in php7.0.5: >=20 > Fatal Error: Allowed memory size of 536870912 bytes exhausted (tried to > allocate 140729445144864 bytes) The huge number 140729445144864 is most likely consequence of an overflow. Can you try to reproduce this with a debug build? - Those make the error message a bit more verbose by stating which emalloc call caused this. Probably one can receive more info by attaching gdb (or another debugger) to the PHP process i.e. $ gdb -p 1234 # 1234 is the PID of a PHP process (gdb) source /path/to/php-src/.gdbinit (gdb) break zend_mm_safe_error (gdb) run now hit PHP a few times (gdb) bt [dumps system stack trace] (gdb) zbacktrace [dumps PHP-level stack trace, gdb macro defined in gdbinit loaded above] johannes --=-ulrXxGIJyym/eHXLkc7F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAABAgAGBQJXYVapAAoJEH3sTmn8nIPXTZEH/RZlWl6pvvyl52qAkhJZhC/N WKn5UpbIKgiEsqhWkiit3OnVD0Mp1y1NIwPCQGR3sJNmKQod2EgfqrSIFlJMTL/Y 5G8rJ8mtKycjEJtyiv3tb4PEXk3CSg9JErvNERuCc1Q9SuRSfBGcEiCiWqtpTQtz dG1CmcjYt6YF/7RLJ95KJoHVYARoq7s2woKlcIR8AIWpd5UcZxDRfMtNBj5NcFXI S0GjYcEKOx3HK4GjWaakzaKKpfaZkP4085Aour0P7ftn3iC8kRvI1oZk9qqRaQnm XKGs+59fbJDGBbwkfpXoZ6ja+emdpxIosz+LWYs/2TA6eKN9dm2LUyoml+glhPQ= =FpUy -----END PGP SIGNATURE----- --=-ulrXxGIJyym/eHXLkc7F--