From: johan dot groth at sorona dot se Operating system: Windows 7 64-bit PHP version: 5.4.7 Package: Scripting Engine problem Bug Type: Bug Bug description:zend_mm_heap corrupted with traits
Description: ------------ Note: This problem appears on 5.4.8 as well, but it was not available in the list when I created the report. Sometimes when using traits, I get "zend_mm_heap corrupted". I get it both while running under apache and while running from the command line. It's a problem under apache, since then I do not get any output sent to the browser. If I run the same script on the command line, I get output but with "zend_mm_heap corrupted" at the end. So, the script seem to finish every time but with an error afterwards. I have gotten this error in the past a few times, but could solve it every time by upgrading to a newer release of PHP. Now however, I'm on the latest release and have run into this problem yet again. It seems really hard to reproduce, and I have not been able to do it in a test script, it only appears when I run my full application and only when using traits. These bugs seem to be related: #62339 #55382 #62358 I have tried to generate a dump according to these instructions: https://bugs.php.net/bugs-generating-backtrace-win32.php However, I have not been able to get something useful out of it. It seems that the program does not detect that a crash has occured, even if it says the following in the apache error log: zend_mm_heap corrupted [Thu Oct 18 15:35:12 2012] [notice] Parent: child process exited with status 1 -- Restarting. Test script: --------------- I have not been able to reproduce this problem in a test script. Expected result: ---------------- Not "zend_mm_heap corrupted" Actual result: -------------- zend_mm_heap corrupted -- Edit bug report at https://bugs.php.net/bug.php?id=63305&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63305&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63305&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63305&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63305&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63305&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63305&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63305&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63305&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63305&r=support Expected behavior: https://bugs.php.net/fix.php?id=63305&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63305&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63305&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63305&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63305&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63305&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63305&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63305&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63305&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63305&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63305&r=mysqlcfg