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: 2021-07-18 04:22 UTC
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: cmb (profile)
Status: No Feedback 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!
 [2021-07-08 12:11 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-07-08 12:11 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-07-18 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 15:01:28 2024 UTC