php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67810 *** glibc detected *** /usr/bin/php: double free or corruption (!prev)
Submitted: 2014-08-09 09:37 UTC Modified: 2020-12-13 04:22 UTC
Votes:18
Avg. Score:4.6 ± 0.7
Reproduced:17 of 17 (100.0%)
Same Version:7 (41.2%)
Same OS:11 (64.7%)
From: sir dot louen at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: opcache
PHP Version: 5.5.15 OS: Ubuntu Server 12.04
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-08-09 09:37 UTC] sir dot louen at gmail dot com
Description:
------------
While loading any script in the cli with opcache enabled a memory dump::

# php prueba

hello world*** glibc detected *** php: double free or corruption (!prev): 0x00000000017df930 ***

I know that opcache is making the conflict because if I comment the
/etc/php5/mods-available/opcache.ini
Everything works fine

Test script:
---------------
<?php

echo "hello world";

?>



Expected result:
----------------
hello world

without the glibc error

Actual result:
--------------
# php prueba

hello world*** glibc detected *** php: double free or corruption (!prev): 0x00000000017df930 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7eb96)[0x7fa539c75b96]
php(zend_hash_destroy+0x50)[0x6efaf0]
/usr/lib/php5/20121212/opcache.so(+0x65b6)[0x7fa5392795b6]
php(zend_llist_apply+0x1e)[0x6d5cee]
php(zend_shutdown_extensions+0x17)[0x6ee0b7]
php(zend_shutdown+0x5a)[0x6e146a]
php(php_module_shutdown+0x2a)[0x6809ca]
php(main+0x3d8)[0x464df8]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7fa539c1876d]
php[0x464fdd]
======= Memory map: ========
00400000-00b8e000 r-xp 00000000 fd:00 1199296                            /usr/bin/php5
00d8e000-00e30000 r--p 0078e000 fd:00 1199296                            /usr/bin/php5
00e30000-00e3c000 rw-p 00830000 fd:00 1199296                            /usr/bin/php5
00e3c000-00e59000 rw-p 00000000 00:00 0
015f0000-0194c000 rw-p 00000000 00:00 0                                  [heap]
7fa528000000-7fa528021000 rw-p 00000000 00:00 0
7fa528021000-7fa52c000000 ---p 00000000 00:00 0
7fa52db27000-7fa52db33000 r-xp 00000000 fd:00 917764                     /lib/x86_64-linux-gnu/libnss_files-2.15.so
7fa52db33000-7fa52dd32000 ---p 0000c000 fd:00 917764                     /lib/x86_64-linux-gnu/libnss_files-2.15.so
7fa52dd32000-7fa52dd33000 r--p 0000b000 fd:00 917764                     /lib/x86_64-linux-gnu/libnss_files-2.15.so
7fa52dd33000-7fa52dd34000 rw-p 0000c000 fd:00 917764                     /lib/x86_64-linux-gnu/libnss_files-2.15.so
7fa52dd34000-7fa52dd35000 ---p 00000000 00:00 0
7fa52dd35000-7fa52e535000 rw-p 00000000 00:00 0
7fa5319d9000-7fa531abb000 r-xp 00000000 fd:00 5729                       /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7fa531abb000-7fa531cba000 ---p 000e2000 fd:00 5729                       /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7fa531cba000-7fa531cc2000 r--p 000e1000 fd:00 5729                       /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7fa531cc2000-7fa531cc4000 rw-p 000e9000 fd:00 5729                       /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7fa531cc4000-7fa531cd9000 rw-p 00000000 00:00 0
7fa531cd9000-7fa531cee000 r-xp 00000000 fd:00 917739                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7fa531cee000-7fa531eed000 ---p 00015000 fd:00 917739                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7fa531eed000-7fa531eee000 r--p 00014000 fd:00 917739                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7fa531eee000-7fa531eef000 rw-p 00015000 fd:00 917739                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7fa538c38000-7fa538c3f000 r-xp 00000000 fd:00 917743                     /lib/x86_64-linux-gnu/librt-2.15.so
7fa538c3f000-7fa538e3e000 ---p 00007000 fd:00 917743                     /lib/x86_64-linux-gnu/librt-2.15.so
7fa538e3e000-7fa538e3f000 r--p 00006000 fd:00 917743                     /lib/x86_64-linux-gnu/librt-2.15.so
7fa538e3f000-7fa538e40000 rw-p 00007000 fd:00 917743                     /lib/x86_64-linux-gnu/librt-2.15.so
7fa539273000-7fa539292000 r-xp 00000000 fd:00 263433                     /usr/lib/php5/20121212/opcache.so
7fa539292000-7fa539492000 ---p 0001f000 fd:00 263433                     /usr/lib/php5/20121212/opcache.so
7fa539492000-7fa539493000 r--p 0001f000 fd:00 263433                     /usr/lib/php5/20121212/opcache.so
7fa539493000-7fa539494000 rw-p 00020000 fd:00 263433                     /usr/lib/php5/20121212/opcache.so
7fa539494000-7fa53949c000 rw-p 00000000 00:00 0
7fa53949c000-7fa5399da000 r--p 00000000 fd:00 138328                     /usr/lib/locale/locale-archive
7fa5399da000-7fa5399f2000 r-xp 00000000 fd:00 917771                     /lib/x86_64-linux-gnu/libpthread-2.15.so
7fa5399f2000-7fa539bf1000 ---p 00018000 fd:00 917771                     /lib/x86_64-linux-gnu/libpthread-2.15.so
7fa539bf1000-7fa539bf2000 r--p 00017000 fd:00 917771                     /lib/x86_64-linux-gnu/libpthread-2.15.so
7fa539bf2000-7fa539bf3000 rw-p 00018000 fd:00 917771                     /lib/x86_64-linux-gnu/libpthread-2.15.so
7fa539bf3000-7fa539bf7000 rw-p 00000000 00:00 0
7fa539bf7000-7fa539dac000 r-xp 00000000 fd:00 917791                     /lib/x86_64-linux-gnu/libc-2.15.so
7fa539dac000-7fa539fac000 ---p 001b5000 fd:00 917791                     /lib/x86_64-linux-gnu/libc-2.15.so
7fa539fac000-7fa539fb0000 r--p 001b5000 fd:00 917791                     /lib/x86_64-linux-gnu/libc-2.15.so
7fa539fb0000-7fa539fb2000 rw-p 001b9000 fd:00 917791                     /lib/x86_64-linux-gnu/libc-2.15.so
7fa539fb2000-7fa539fb7000 rw-p 00000000 00:00 0
7fa539fb7000-7fa53a108000 r-xp 00000000 fd:00 5370                       /usr/lib/x86_64-linux-gnu/libxml2.so.2.7.8
7fa53a108000-7fa53a308000 ---p 00151000 fd:00 5370                       /usr/lib/x86_64-linux-gnu/libxml2.so.2.7.8
7fa53a308000-7fa53a310000 r--p 00151000 fd:00 5370                       /usr/lib/x86_64-linux-gnu/libxml2.so.2.7.8
7fa53a310000-7fa53a312000 rw-p 00159000 fd:00 5370                       /usr/lib/x86_64-linux-gnu/libxml2.so.2.7.8
7fa53a312000-7fa53a313000 rw-p 00000000 00:00 0
7fa53a313000-7fa53a315000 r-xp 00000000 fd:00 917729                     /lib/x86_64-linux-gnu/libdl-2.15.so
7fa53a315000-7fa53a515000 ---p 00002000 fd:00 917729                     /lib/x86_64-linux-gnu/libdl-2.15.so
7fa53a515000-7fa53a516000 r--p 00002000 fd:00 917729                     /lib/x86_64-linux-gnu/libdl-2.15.so
7fa53a516000-7fa53a517000 rw-p 00003000 fd:00 917729                     /lib/x86_64-linux-gnu/libdl-2.15.so
7fa53a517000-7fa53a612000 r-xp 00000000 fd:00 917762                     /lib/x86_64-linux-gnu/libm-2.15.so
7fa53a612000-7fa53a811000 ---p 000fb000 fd:00 917762                     /lib/x86_64-linux-gnu/libm-2.15.so
7fa53a811000-7fa53a812000 r--p 000fa000 fd:00 917762                     /lib/x86_64-linux-gnu/libm-2.15.so
7fa53a812000-7fa53a813000 rw-p 000fb000 fd:00 917762                     /lib/x86_64-linux-gnu/libm-2.15.so
7fa53a813000-7fa53a84f000 r-xp 00000000 fd:00 917818                     /lib/x86_64-linux-gnu/libpcre.so.3.12.1
7fa53a84f000-7fa53aa4e000 ---p 0003c000 fd:00 917818                     /lib/x86_64-linux-gnu/libpcre.so.3.12.1
7fa53aa4e000-7fa53aa4f000 r--p 0003b000 fd:00 917818                     /lib/x86_64-linux-gnu/libpcre.so.3.12.1
7fa53aa4f000-7fa53aa50000 rw-p 0003c000 fd:00 917818                     /lib/x86_64-linux-gnu/libpcre.so.3.12.1
7fa53aa50000-7fa53aa5f000 r-xp 00000000 fd:00 917784                     /lib/x86_64-linux-gnu/libbz2.so.1.0.4
7fa53aa5f000-7fa53ac5e000 ---p 0000f000 fd:00 917784                     /lib/x86_64-linux-gnu/libbz2.so.1.0.4
7fa53ac5e000-7fa53ac5f000 r--p 0000e000 fd:00 917784                     /lib/x86_64-linux-gnu/libbz2.so.1.0.4
7fa53ac5f000-7fa53ac60000 rw-p 0000f000 fd:00 917784                     /lib/x86_64-linux-gnu/libbz2.so.1.0.4
7fa53ac60000-7fa53acaa000 r-xp 00000000 fd:00 1216928                    /usr/lib/libqdbm.so.14.14.0
7fa53acaa000-7fa53aea9000 ---p 0004a000 fd:00 1216928                    /usr/lib/libqdbm.so.14.14.0
7fa53aea9000-7fa53aeaa000 r--p 00049000 fd:00 1216928                    /usr/lib/libqdbm.so.14.14.0
7fa53aeaa000-7fa53aeab000 rw-p 0004a000 fd:00 1216928                    /usr/lib/libqdbm.so.14.14.0
7fa53aeab000-7fa53b017000 r-xp 00000000 fd:00 5739                       /usr/lib/x86_64-linux-gnu/libdb-5.1.so
7fa53b017000-7fa53b217000 ---p 0016c000 fd:00 5739                       /usr/lib/x86_64-linux-gnu/libdb-5.1.so
7fa53b217000-7fa53b21d000 r--p 0016c000 fd:00 5739                       /usr/lib/x86_64-linux-gnu/libdb-5.1.so
7fa53b21d000-7fa53b21e000 rw-p 00172000 fd:00 5739                       /usr/lib/x86_64-linux-gnu/libdb-5.1.so
7fa53b21e000-7fa53b272000 r-xp 00000000 fd:00 917523                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
7fa53b272000-7fa53b472000 ---p 00054000 fd:00 917523                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
7fa53b472000-7fa53b475000 r--p 00054000 fd:00 917523                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
7fa53b475000-7fa53b47b000 rw-p 00057000 fd:00 917523                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
7fa53b47b000-7fa53b47c000 rw-p 00000000 00:00 0
7fa53b47c000-7fa53b62d000 r-xp 00000000 fd:00 917524                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7fa53b62d000-7fa53b82d000 ---p 001b1000 fd:00 917524                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7fa53b82d000-7fa53b848000 r--p 001b1000 fd:00 917524                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7fa53b848000-7fa53b853000 rw-p 001cc000 fd:00 917524                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7fa53b853000-7fa53b857000 rw-p 00000000 00:00 0
7fa53b857000-7fa53b8bc000 r-xp 00000000 fd:00 1216926                    /usr/lib/libonig.so.2.0.0
7fa53b8bc000-7fa53babb000 ---p 00065000 fd:00 1216926                    /usr/lib/libonig.so.2.0.0
7fa53babb000-7fa53babe000 rw-p 00064000 fd:00 1216926                    /usr/lib/libonig.so.2.0.0
7fa53babe000-7fa53babf000 rw-p 00000000 00:00 0
7fa53babf000-7fa53bad7000 r-xp 00000000 fd:00 917760                     /lib/x86_64-linux-gnu/libresolv-2.15.so
7fa53bad7000-7fa53bcd7000 ---p 00018000 fd:00 917760                     /lib/x86_64-linux-gnu/libresolv-2.15.so
7fa53bcd7000-7fa53bcd8000 r--p 00018000 fd:00 917760                     /lib/x86_64-linux-gnu/libresolv-2.15.so
7fa53bcd8000-7fa53bcd9000 rw-p 00019000 fd:00 917760                     /lib/x86_64-linux-gnu/libresolv-2.15.so
7fa53bcd9000-7fa53bcdb000 rw-p 00000000 00:00 0
7fa53bcdb000-7fa53bcf1000 r-xp 00000000 fd:00 917769                     /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7fa53bcf1000-7fa53bef0000 ---p 00016000 fd:00 917769                     /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7fa53bef0000-7fa53bef1000 r--p 00015000 fd:00 917769                     /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7fa53bef1000-7fa53bef2000 rw-p 00016000 fd:00 917769                     /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7fa53bef2000-7fa53bf14000 r-xp 00000000 fd:00 917720                     /lib/x86_64-linux-gnu/ld-2.15.so
7fa53bf70000-7fa53c109000 rw-p 00000000 00:00 0
7fa53c111000-7fa53c114000 rw-p 00000000 00:00 0
7fa53c114000-7fa53c115000 r--p 00022000 fd:00 917720                     /lib/x86_64-linux-gnu/ld-2.15.so
7fa53c115000-7fa53c117000 rw-p 00023000 fd:00 917720                     /lib/x86_64-linux-gnu/ld-2.15.so
7fff54ec5000-7fff54ee6000 rw-p 00000000 00:00 0                          [stack]
7fff54f3c000-7fff54f3e000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-12-04 17:46 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-12-04 17:46 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>
 [2020-12-13 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-2021 The PHP Group
All rights reserved.
Last updated: Sat Jul 24 23:01:23 2021 UTC