php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73598 Getting zend_mm_heap corrupted in error_log, website fails to load
Submitted: 2016-11-24 05:27 UTC Modified: -
Votes:5
Avg. Score:4.8 ± 0.4
Reproduced:5 of 5 (100.0%)
Same Version:2 (40.0%)
Same OS:3 (60.0%)
From: andy at greenrobot dot com Assigned:
Status: Open Package: opcache
PHP Version: 5.6.28 OS: CentOS Linux release 7.2.1511 (C
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2016-11-24 05:27 UTC] andy at greenrobot dot com
Description:
------------
I am experiencing a 'zend_mm_heap corrupted' in my Apache error logs. I have upgraded my server to the latest available with Yum and also upgraded to the latest 5.6 PHP.  This happens with an open source adserver that we developed using Laravel: https://github.com/greenrobotllc/adserver. On my site it is serving about 50K impressions per day and getting this error sporadically.

I am using PHP 5.6.28 with Opcache enabled. See my PHP info here: https://greenrobot.com/phpinfo.php.

I have noticed before that the errors will kind of pile up after awhile and I will be forced to restart Apache because the adserver has stopped working at all, which fixes it for awhile.

In addition to upgrading to the latest PHP 5.6 and Centos package versions, I upgraded my Laravel app to use Laravel 5.3.

Test script:
---------------
https://github.com/greenrobotllc/adserver

Expected result:
----------------
No zend errors.

Actual result:
--------------
'zend_mm_heap corrupted' in my Apache error logs.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-28 15:34 UTC] andy at greenrobot dot com
I just experienced one of these pile up errors:

When I go to http://myadserver2.greenrobot.com/ the page is blank.

In my logs:

[Mon Nov 28 10:32:34.088748 2016] [core:notice] [pid 7227] AH00052: child pid 28737 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:34.088828 2016] [core:notice] [pid 7227] AH00052: child pid 28740 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:37.098067 2016] [core:notice] [pid 7227] AH00052: child pid 28744 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:39.102692 2016] [core:notice] [pid 7227] AH00052: child pid 28733 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:39.102751 2016] [core:notice] [pid 7227] AH00052: child pid 28739 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:40.108608 2016] [core:notice] [pid 7227] AH00052: child pid 28725 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:40.109104 2016] [core:notice] [pid 7227] AH00052: child pid 28749 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:41.117657 2016] [core:notice] [pid 7227] AH00052: child pid 28654 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:42.119358 2016] [core:notice] [pid 7227] AH00052: child pid 28650 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:42.119429 2016] [core:notice] [pid 7227] AH00052: child pid 28661 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:42.119463 2016] [core:notice] [pid 7227] AH00052: child pid 28752 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:42.119479 2016] [core:notice] [pid 7227] AH00052: child pid 28755 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:45.128123 2016] [core:notice] [pid 7227] AH00052: child pid 28757 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:45.128617 2016] [core:notice] [pid 7227] AH00052: child pid 28760 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:47.133817 2016] [core:notice] [pid 7227] AH00052: child pid 28750 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:48.138378 2016] [core:notice] [pid 7227] AH00052: child pid 28764 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:48.139467 2016] [core:notice] [pid 7227] AH00052: child pid 28765 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:48.139692 2016] [core:notice] [pid 7227] AH00052: child pid 28766 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:52.160466 2016] [core:notice] [pid 7227] AH00052: child pid 28759 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:52.160642 2016] [core:notice] [pid 7227] AH00052: child pid 28773 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:55.186495 2016] [core:notice] [pid 7227] AH00052: child pid 28792 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:55.186813 2016] [core:notice] [pid 7227] AH00052: child pid 28793 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:57.189083 2016] [core:notice] [pid 7227] AH00052: child pid 28795 exit signal Segmentation fault (11)
[Mon Nov 28 10:32:58.190229 2016] [core:notice] [pid 7227] AH00052: child pid 28796 exit signal Segmentation fault (11)
zend_mm_heap corrupted
 [2017-02-02 12:42 UTC] andy at greenrobot dot com
I have upgraded to PHP Version 5.6.30.

Same thing happens. Eventually the errors will pile up and require a restart of Apache.

-Andy Triboletti
andy@greenrobot.com
 [2017-02-24 01:15 UTC] andy at greenrobot dot com
I have upgraded to PHP 7.1.1. http://myadserver3.greenrobot.com/phpinfo.php

That was 5 days ago and I have not experienced this error again.
 [2018-01-22 01:53 UTC] haroldyung at outlook dot com
I have upgraded to PHP 7.1.11 and the problem caused my service very unstable!
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Dec 11 17:01:25 2019 UTC