#40479 [Com]: zend_mm_heap corrupted
From: john dot glazebrook at guava dot com Date: Thu, 17 Jul 2008 08:28:13 +0000 Subject: #40479 [Com]: zend_mm_heap corrupted References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-126873@lists.php.net to get a copy of this message
ID: 40479
Comment by: john dot glazebrook at guava 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:
OK, I don't know if this is useful but I'll keep posting stuff as I
find it here :-)
PHP 5.2.5 MysqlI 5.0.45
If I alter the database the seg fault goes away and I get normal
exceptions or errors or data results (depending if the SQL is working)
then if I change the DB back to what I need seg faults occur again. So I
think it must be an error in MysqlI or MySQL... ?
John
Previous Comments:
------------------------------------------------------------------------
[2008-07-16 16:38:39] john dot glazebrook at guava dot com
Sorry, I forgot to say my server runs Red Hat Linux.
Um, I'm not sure if this is helpful, but I found the error when moving
from PEAR:DB over to ZF DB objects. So I only changed DB code. OK, some
psedudoish code:
class x {
function db() {
$rpt = new Report();
$row = $rpt->createRow();
$row->text = 'xyz';
$row->save();
echo 'OK 2';
}
}
$x = new x();
echo 'OK';
$x->db();
echo 'OK 3';
And I see:
OK
OK 2
seg fault
Also changing the function to:
class x {
function db() {
$rpt = new Report();
$row = $rpt->createRow();
$row->text = 'xyz';
$row->save();
echo 'OK 2';
$row = null;
echo 'Moooo';
}
}
this time it seg faults at $row = null;
Hope this is of some help. It really sucks :-(
John
------------------------------------------------------------------------
[2008-07-16 16:31:08] john dot glazebrook at guava dot com
I found this 'zend_mm_heap corrupted' in my apache log files.
I am using 5.2.5 with almost everything enabled. Mysqli and I am using
Zend Frame work.
As far as I can tell my scripts case this (and a seg fault) when they
are looping through a Zend_DB_Table_Rowset object adding rows to a
table.
When the $row **goes out of scope** the script seg faults. So I get
this error when the function (well method) returns a value. I stripped
all code from the function apart from echos and the $row->save() and the
seg faults still happen.
Ho hum...
john
------------------------------------------------------------------------
[2008-06-23 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2008-06-15 11:29:29] felipe@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
------------------------------------------------------------------------
[2008-06-15 09:43:22] akdeiva at qxsystems dot com
Hi,
i too got the same issue and this is how the code works,
I am having some scripts to parse the HTML data and wherein i am having
part of the code as ,
$replaced_key = strtolower(str_replace("%", "percent", $key));
$replaced_key = str_replace(".", "", $replaced_key);
$key = str_replace(" ", "_", $replaced_key);
When i have the above code with the same variable name,
$key = strtolower(str_ireplace("%", "percent", $key));
$key = str_ireplace(".", "", $key);
$key = str_ireplace(" ", "_", $key);
I get the "zend_mm_heap corrupted" error wherein when changed the code
to the above way, it works fine.
------------------------------------------------------------------------
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)
- #40479 [Opn->Fbk]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [NoF->Fbk]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [NoF]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [NoF->Fbk]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [NoF->Fbk]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [NoF->Fbk]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [NoF]: zend_mm_heap corrupted
- #40479 [NoF->Fbk]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [NoF]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- #40479 [Com]: zend_mm_heap corrupted
- Bug #40479 [Com]: zend_mm_heap corrupted
- Bug #40479 [Com]: zend_mm_heap corrupted
- Bug #40479 [Com]: zend_mm_heap corrupted
- Bug #40479 [Com]: zend_mm_heap corrupted
- Bug #40479 [NoF->Fbk]: zend_mm_heap corrupted
- Bug #40479 [Com]: zend_mm_heap corrupted
- Bug #40479 [Com]: zend_mm_heap corrupted
- Bug #40479 [Com]: zend_mm_heap corrupted
- Bug #40479 [Com]: zend_mm_heap corrupted
- Bug #40479 [Com]: zend_mm_heap corrupted
- Bug #40479 [Com]: zend_mm_heap corrupted
- Bug #40479 [Com]: zend_mm_heap corrupted
- Bug #40479 [Com]: zend_mm_heap corrupted
- Bug #40479 [Com]: zend_mm_heap corrupted
- Bug #40479 [Com]: zend_mm_heap corrupted
- Bug #40479 [Com]: zend_mm_heap corrupted
- Bug #40479 [Com]: zend_mm_heap corrupted
- Bug #40479 [Com]: zend_mm_heap corrupted
- Bug #40479 [Com]: zend_mm_heap corrupted
- Bug #40479 [Fbk]: zend_mm_heap corrupted
- Bug #40479 [Fbk->NoF]: zend_mm_heap corrupted
| « previous | php.bugs (#126873) | next » |
|---|