|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75492 Massive memory allocation
Submitted: 2017-11-06 22:41 UTC Modified: 2017-11-07 19:53 UTC
From: nick at nickstallman dot net Assigned:
Status: Feedback Package: FPM related
PHP Version: 7.1.11 OS: Ubuntu
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: nick at nickstallman dot net
New email:
PHP Version: OS:


 [2017-11-06 22:41 UTC] nick at nickstallman dot net
I just had the following error which is so ridiculous it's not funny:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 5826880341616844800 bytes) in ...snip.../application/views/dns/view.php on line 4
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 139817084080128 bytes) in ...snip.../application/views/errors/html/error_php.php on line 9

This is a CodeIgniter app, and line 4 of view.php is a echo of a single quoted string with no variables at all.

The server config is PHP-FPM with the Ubuntu package from the ondrej PPA

It might just be a random glitch, but I certainly found it very surprising.

Test script:
I'm having a little bit of trouble reproducing the issue, and as the error line is about an echo I have no clue what test script would cause it.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-11-06 22:51 UTC]
-Status: Open +Status: Feedback
 [2017-11-06 22:51 UTC]
HI Nick,

Please could you list the modules loaded by running `php -m`

Also, please could you generate a backtrace with the instructions from
 [2017-11-06 23:21 UTC] nick at nickstallman dot net
Unfortunately I can't seem to reproduce it to get a backtrace.

PHP modules are here:
Nothing too unusual. The opcache is enabled.
 [2017-11-07 19:53 UTC]
When I ran into an issue like this, it was a result of an extension writing to memory that it shouldn't have. Basically, the value for a string length got corrupted and then this happened. Unless you're really comfortable with gdb, my general suggestion would be to try disabling non-core extensions to try to narrow it down. You could also try disabling the PCRE JIT.
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sat Jun 23 07:01:47 2018 UTC