#40479 [Com]: zend_mm_heap corrupted

From: Date: Fri, 18 Jan 2008 22:28:05 +0000
Subject: #40479 [Com]: zend_mm_heap corrupted
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-121402@lists.php.net to get a copy of this message
 ID:               40479
 Comment by:       klassicd at gmail dot com
 Reported By:      rrossi at maggioli dot it
 Status:           No Feedback
 Bug Type:         Reproducible crash
 Operating System: Suse Linux 9.0
 PHP Version:      5.2.1
 New Comment:

php -v
PHP 5.2.1 (cli) (built: Nov 28 2007 23:14:55) 
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies


function crash()
    {
        $row = 1;
        $handle = fopen("f.csv", "r");

        while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
            $num = count($data);
            echo "<p> $num fields in line $row: <br /></p>\n";
            $row++;
            for ($c=0; $c < $num; $c++) {
                echo $data[$c] . "<br />\n";
            }
        }
        fclose($handle);
    
    }

f.csv has 3000 lines of 
"Email","Name"


Previous Comments:
------------------------------------------------------------------------

[2007-09-28 18:21:01] peter at ibuildings dot nl

Same problem here on OS X 10.4.10, ZendCore 2.0.1, PHP 5.2.3.

------------------------------------------------------------------------

[2007-09-08 02:03:44] danny at dannysplace dot net

I have the same problem when trying to run a fresh version of Horde
with Kronolith module.

Php v5.2.3 on FreeBSD 6.2 nad apache 2.0.59.

------------------------------------------------------------------------

[2007-08-16 08:03:54] rz at lightwerk dot com

I have the same error message in my apache logs with PHP 5.2.3
zend_mm_heap corupted. I tried to track it down to a specific code but
it seems to be a problem with included files (classes) which exceeds a
specific size. No matter which lines I delete in my script as long as
they don´t excess about 700 lines they work. As soon as the overall
lines exceed about 700 lines the error occurs again. Hope this will help
you to fix the problem.

------------------------------------------------------------------------

[2007-07-03 23:32:55] giampaolo at tomassoni dot biz

I'm experiencing the very same problem reported by rocker_pr.

It seems to me that this problem is triggered by using PHP5 classes,
but I can't provide a small testcase: no small code seems affected.

------------------------------------------------------------------------

[2007-04-26 14:11:47] christian dot kaps at imaxx21 dot com

Hi
 
I get the same message in my logs. I can reproduce the error in our
system, but it is impossible to locate it. Sometimes I can reproduce the
error by editing a comment. I add a character and the error occurs. I
remove the character and the script runs perfectly. Each time I try to
isolate the error I can reproduce it with an other action.

That what i could isolate is:
-load xml file with simplexml
-add a node
-clone the object
-process xpath query
-print the object with print_r
-serialize the object
-include a file (the error occurs)

When I edit the included file. E.g. remove methods or properties the
script runs without errors. That is funny(o;

Version: 5.2.1
Os: ubuntu

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/40479

-- 
Edit this bug report at http://bugs.php.net/?id=40479&edit=1


Thread (87 messages)

« previous php.bugs (#121402) next »