ID: 40479 Comment by: tarraccas at burningmoth 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:
Concerning my previous statement: I was using output buffering in the included files. I've removed the output buffering and I'm no longer getting the error. Previous Comments: ------------------------------------------------------------------------ [2008-08-09 08:01:55] tarraccas at burningmoth dot com I get this error when including files in a loop and trying to execute a loop inside one of those included files. ------------------------------------------------------------------------ [2008-07-23 16:30:15] jumpbackhack at gmail dot com This happens no matter what version, 5.2.1, 5.2.6 and even 5.2.7-dev (snap php5.2-200807220430) How is it possible this many users have this bug, some even can reproduce it consistently, and the developers need backtraces? It seems as though it is a common bug and my guess is many come here looking for a solution, do not find one, figure the zend_mm_heap corrupted is intermittent and hope for a solution soon (they do not post they too have the issue). I will attempt to recompile with debug and get a trace, however, this only occurs on production servers (indicating load/stress related issue when using more memory) and will take a while to get the OK to execute. Running one of the scripts provided below to reproduce the crash does not happen for us on development systems. this bug is over 16 months old and when it happens, it is a whopper, please do not ignore! will be happy to provide any additional information that does not require a recompile/waiting for clearance on production. ------------------------------------------------------------------------ [2008-07-17 08:28:13] john dot glazebrook at guava dot com 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 ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ 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