|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76746 tried to allocate gigantic amount of memory
Submitted: 2018-08-15 07:55 UTC Modified: 2020-11-01 04:22 UTC
From: mschopdev at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: *General Issues
PHP Version: 7.0.31 OS: Windows-Ubuntu 18.04 Sub System
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: mschopdev at gmail dot com
New email:
PHP Version: OS:


 [2018-08-15 07:55 UTC] mschopdev at gmail dot com
I'm running Ubuntu 18.04 with ppa:ondrej/php in the Linux Sub-System under Windows.

PHP-Version: PHP (cli) (built: May  2 2018 12:44:20) ( NTS )

This is the error message:

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 7526411575186646379 bytes) in /mnt/c/Projects/shop/engine/Library/Customweb/Annotation/ReflectionAnnotatedMethod.php on line 15

Unfortunatly I have not idea what caused the bug. A restart of the PHP7.0-fpm process solved the issue for me. The test script contains the script that caused the problem, but I have no idea, what the exact problem is.

I'm very sorry on this superficial bug report, but I have no further idea, how to reproduce this again. If I have further details, I will add them later.

Test script:

require_once 'Customweb/Annotation/IAnnotationReflector.php';
require_once 'Customweb/Annotation/AnnotationsBuilder.php';
require_once 'Customweb/Annotation/ReflectionAnnotatedClass.php';

class Customweb_Annotation_ReflectionAnnotatedMethod extends ReflectionMethod implements Customweb_Annotation_IAnnotationReflector

    public function __construct($class, $name)
        parent::__construct($class, $name); // This is the line, that caused the error
        $this->annotations = $this->createAnnotationBuilder()->build($this);


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-08-15 10:46 UTC] a at b dot c dot de
That is a bizarre number.

Interestingly, in hex it's "68732F737463656B", the ASCII encoding for "hs/stcek" depending on endianness. Whether that helps I don't know. But if a character pointer were substituted for a pointer to an integer the result would be something like that.

Mind you, PHP 7.0 is in security-only fix at this point, so I doubt there'll be much energy expended on this.
 [2020-10-23 12:37 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-10-23 12:37 UTC]
Well, this has likely been caused by a memory corruption. Do you
still experience this with any of the actively supported PHP

[1] <>
 [2020-11-01 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 01 19:01:33 2024 UTC