"double free or corruption" on cron and large PHP pages.

256 views
Skip to first unread message

Leonardo Castro

unread,
Nov 12, 2015, 11:13:12 AM11/12/15
to XCache
PHP 5.6.14(and 15), WHM 11.52, mod_ruid2, USE_ZEND_ALLOC=0 set to get more info, otherwise I only get zend_mm_heap corrupted. None of the workarounds on the web, like zend.enable_gc, assert.active, xcache.mmap_path=  or output buffering had any effect.

This has been driving me insane, and I finally tracked the issue down to xcache by disabling all modules in php.ini and having the cron job run every minute while I tested.
This issue happens with resellerclubmods_transfercheck.php and WHMCS' cron.php escalations, but it also crashes on actual pages when they're large.

The only way I can get the issue to go away, is to kill the module, which screws up existing wordpress sites, or use xcache.cacher="Off", which I assume leaves the variable cache enabled.

I've rebuilt apache from easyapache several times (this is a pretty fresh server load) and everything is ok, so, either I'm missing some large piece of info, or there's an issue with xcache.
I'd like to turn it back on, so I'm looking for some guidance.


extension="xcache.so"
xcache.admin.enable_auth="on"
xcache.admin.pass=""
xcache.admin.user="mOo"
xcache.cacher="Off"
xcache.coredump_directory=""
xcache.count="2"
;xcache.coveragedump_directory="/tmp/pcov/"
xcache.coverager="Off"
xcache.gc_interval="300"
;xcache.mmap_path="/tmp/xcache"
xcache.optimizer="Off"
;xcache.readonly_protection="On"
xcache.size="64M"
xcache.slots="8K"
xcache.test="Off"
xcache.ttl="3600"
xcache.var_count="2"
xcache.var_gc_interval="300"
xcache.var_maxttl="0"
xcache.var_size="16M"
xcache.var_slots="8K"
xcache.var_ttl="3600"
extension="suhosin.so"
extension = "pdo.so"
extension = "pdo_sqlite.so"


Error in `php': double free or corruption (fasttop) and (!prev). 

Sample report (both crashes look the same, backtrace-wise):

*** Error in `php': double free or corruption (!prev): 0x000000000280e1c0 ***
======= Backtrace: =========
/usr/lib64/libc.so.6(+0x7d1fd)[0x7f69e62551fd]
php(_efree+0x36)[0x96dc69]
php(destroy_op_array+0x74)[0x994da6]
php(destroy_zend_function+0x2c)[0x994348]
php(zend_function_dtor+0x18)[0x994365]
php[0x9b5594]
php(zend_hash_reverse_apply+0x93)[0x9b7481]
php[0x98e69b]
php(zend_deactivate+0x85)[0x9a4e6f]
php(php_request_shutdown+0x38e)[0x917849]
php[0xacba9d]
/usr/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f69e61f9af5]
php[0x44b4a9]
======= Memory map: ========
00400000-010b5000 r-xp 00000000 08:04 22159277                           /usr/bin/php
012b4000-0136e000 r--p 00cb4000 08:04 22159277                           /usr/bin/php
0136e000-0138b000 rw-p 00d6e000 08:04 22159277                           /usr/bin/php
0138b000-013b0000 rw-p 00000000 00:00 0 
013cd000-028b2000 rw-p 00000000 00:00 0                                  [heap]
7f69d9a28000-7f69dea28000 r--s 00000000 08:04 19800696                    (deleted)/tmp/xcache
7f69dea28000-7f69e3a28000 rw-s 00000000 08:04 19800696                    (deleted)/tmp/xcache
7f69e3a28000-7f69e3a2d000 r-xp 00000000 08:04 22152514                   /usr/lib64/libnss_dns-2.17.so
7f69e3a2d000-7f69e3c2c000 ---p 00005000 08:04 22152514                   /usr/lib64/libnss_dns-2.17.so
7f69e3c2c000-7f69e3c2d000 r--p 00004000 08:04 22152514                   /usr/lib64/libnss_dns-2.17.so
7f69e3c2d000-7f69e3c2e000 rw-p 00005000 08:04 22152514                   /usr/lib64/libnss_dns-2.17.so
7f69e3c2e000-7f69e3c39000 r-xp 00000000 08:04 22155301                   /usr/lib64/libnss_files-2.17.so
7f69e3c39000-7f69e3e38000 ---p 0000b000 08:04 22155301                   /usr/lib64/libnss_files-2.17.so
7f69e3e38000-7f69e3e39000 r--p 0000a000 08:04 22155301                   /usr/lib64/libnss_files-2.17.so
7f69e3e39000-7f69e3e3a000 rw-p 0000b000 08:04 22155301                   /usr/lib64/libnss_files-2.17.so
7f69e3e3a000-7f69e3e51000 r-xp 00000000 08:04 24379775                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/ixed.5.6.lin
7f69e3e51000-7f69e4051000 ---p 00017000 08:04 24379775                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/ixed.5.6.lin
7f69e4051000-7f69e4052000 rw-p 00017000 08:04 24379775                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/ixed.5.6.lin
7f69e4052000-7f69e405a000 r-xp 00000000 08:04 24379771                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/pdo_mysql.so
7f69e405a000-7f69e4259000 ---p 00008000 08:04 24379771                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/pdo_mysql.so
7f69e4259000-7f69e425a000 r--p 00007000 08:04 24379771                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/pdo_mysql.so
7f69e425a000-7f69e425b000 rw-p 00008000 08:04 24379771                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/pdo_mysql.so
7f69e425b000-7f69e433a000 r-xp 00000000 08:04 24379772                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/pdo_sqlite.so
7f69e433a000-7f69e453a000 ---p 000df000 08:04 24379772                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/pdo_sqlite.so
7f69e453a000-7f69e453c000 r--p 000df000 08:04 24379772                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/pdo_sqlite.so
7f69e453c000-7f69e453f000 rw-p 000e1000 08:04 24379772                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/pdo_sqlite.so
7f69e453f000-7f69e455a000 r-xp 00000000 08:04 24379770                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/pdo.so
7f69e455a000-7f69e4759000 ---p 0001b000 08:04 24379770                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/pdo.so
7f69e4759000-7f69e475c000 r--p 0001a000 08:04 24379770                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/pdo.so
7f69e475c000-7f69e475d000 rw-p 0001d000 08:04 24379770                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/pdo.so
7f69e475d000-7f69e4783000 r-xp 00000000 08:04 24379774                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/suhosin.so
7f69e4783000-7f69e4982000 ---p 00026000 08:04 24379774                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/suhosin.so
7f69e4982000-7f69e4985000 r--p 00025000 08:04 24379774                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/suhosin.so
7f69e4985000-7f69e4988000 rw-p 00028000 08:04 24379774                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/suhosin.so
7f69e4988000-7f69e498a000 rw-p 00000000 00:00 0 
7f69e498a000-7f69e49b1000 r-xp 00000000 08:04 24379776                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/xcache.so
7f69e49b1000-7f69e4bb0000 ---p 00027000 08:04 24379776                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/xcache.so
7f69e4bb0000-7f69e4bb2000 r--p 00026000 08:04 24379776                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/xcache.so
7f69e4bb2000-7f69e4bb3000 rw-p 00028000 08:04 24379776                   /usr/local/lib/php/extensions/no-debug-non-zts-20131226/xcache.so
7f69e4bb3000-7f69e4bb4000 rw-p 00000000 00:00 0 
7f69e4bb4000-7f69e4cfa000 r-xp 00000000 08:04 24379777                   /usr/local/Zend/lib/Guard-7.0.0/php-5.6.x/ZendGuardLoader.so
7f69e4cfa000-7f69e4efa000 ---p 00146000 08:04 24379777                   /usr/local/Zend/lib/Guard-7.0.0/php-5.6.x/ZendGuardLoader.so
7f69e4efa000-7f69e4f17000 rw-p 00146000 08:04 24379777                   /usr/local/Zend/lib/Guard-7.0.0/php-5.6.x/ZendGuardLoader.so
7f69e4f17000-7f69e4f1d000 rw-p 00000000 00:00 0 
7f69e4f1d000-7f69e5025000 r-xp 00000000 08:04 24379778                   /usr/local/IonCube/ioncube_loader_lin_5.6.so
7f69e5025000-7f69e5124000 ---p 00108000 08:04 24379778                   /usr/local/IonCube/ioncube_loader_lin_5.6.so
7f69e5124000-7f69e5132000 rw-p 00107000 08:04 24379778                   /usr/local/IonCube/ioncube_loader_lin_5.6.so
7f69e5132000-7f69e5135000 rw-p 00000000 00:00 0 
7f69e5135000-7f69e5156000 r-xp 00000000 08:04 22155318                   /usr/lib64/libselinux.so.1
7f69e5156000-7f69e5356000 ---p 00021000 08:04 22155318                   /usr/lib64/libselinux.so.1
7f69e5356000-7f69e5357000 r--p 00021000 08:04 22155318                   /usr/lib64/libselinux.so.1
7f69e5357000-7f69e5358000 rw-p 00022000 08:04 22155318                   /usr/lib64/libselinux.so.1
7f69e5358000-7f69e535a000 rw-p 00000000 00:00 0 
7f69e535a000-7f69e535c000 r-xp 00000000 08:04 22157643                   /usr/lib64/libXau.so.6.0.0
7f69e535c000-7f69e555c000 ---p 00002000 08:04 22157643                   /usr/lib64/libXau.so.6.0.0
7f69e555c000-7f69e555d000 r--p 00002000 08:04 22157643                   /usr/lib64/libXau.so.6.0.0
7f69e555d000-7f69e555e000 rw-p 00003000 08:04 22157643                   /usr/lib64/libXau.so.6.0.0
7f69e555e000-7f69e5561000 r-xp 00000000 08:04 22155297                   /usr/lib64/libkeyutils.so.1.5
7f69e5561000-7f69e5760000 ---p 00003000 08:04 22155297                   /usr/lib64/libkeyutils.so.1.5
7f69e5760000-7f69e5761000 r--p 00002000 08:04 22155297                   /usr/lib64/libkeyutils.so.1.5
7f69e5761000-7f69e5762000 rw-p 00003000 08:04 22155297                   /usr/lib64/libkeyutils.so.1.5
7f69e5762000-7f69e576f000 r-xp 00000000 08:04 22152842                   /usr/lib64/libkrb5support.so.0.1
7f69e576f000-7f69e596f000 ---p 0000d000 08:04 22152842                   /usr/lib64/libkrb5support.so.0.1
7f69e596f000-7f69e5970000 r--p 0000d000 08:04 22152842                   /usr/lib64/libkrb5support.so.0.1
7f69e5970000-7f69e5971000 rw-p 0000e000 08:04 22152842                   /usr/lib64/libkrb5support.so.0.1
7f69e5971000-7f69e5987000 r-xp 00000000 08:04 22152829                   /usr/lib64/libpthread-2.17.so
7f69e5987000-7f69e5b87000 ---p 00016000 08:04 22152829                   /usr/lib64/libpthread-2.17.so
7f69e5b87000-7f69e5b88000 r--p 00016000 08:04 22152829                   /usr/lib64/libpthread-2.17.so
7f69e5b88000-7f69e5b89000 rw-p 00017000 08:04 22152829                   /usr/lib64/libpthread-2.17.so
7f69e5b89000-7f69e5b8d000 rw-p 00000000 00:00 0 
7f69e5b8d000-7f69e5bad000 r-xp 00000000 08:04 22157689                   /usr/lib64/libxcb.so.1.1.0
7f69e5bad000-7f69e5dac000 ---p 00020000 08:04 22157689                   /usr/lib64/libxcb.so.1.1.0
7f69e5dac000-7f69e5dad000 r--p 0001f000 08:04 22157689                   /usr/lib64/libxcb.so.1.1.0
7f69e5dad000-7f69e5dae000 rw-p 00020000 08:04 22157689                   /usr/lib64/libxcb.so.1.1.0
7f69e5dae000-7f69e5dc9000 r-xp 00000000 08:04 22152973                   /usr/lib64/libaudit.so.1.0.0
7f69e5dc9000-7f69e5fc9000 ---p 0001b000 08:04 22152973                   /usr/lib64/libaudit.so.1.0.0
7f69e5fc9000-7f69e5fca000 r--p 0001b000 08:04 22152973                   /usr/lib64/libaudit.so.1.0.0
7f69e5fca000-7f69e5fcb000 rw-p 0001c000 08:04 22152973                   /usr/lib64/libaudit.so.1.0.0
7f69e5fcb000-7f69e5fd5000 rw-p 00000000 00:00 0 
7f69e5fd5000-7f69e5fd7000 r-xp 00000000 08:04 22152913                   /usr/lib64/libfreebl3.so
7f69e5fd7000-7f69e61d6000 ---p 00002000 08:04 22152913                   /usr/lib64/libfreebl3.so
7f69e61d6000-7f69e61d7000 r--p 00001000 08:04 22152913                   /usr/lib64/libfreebl3.so
7f69e61d7000-7f69e61d8000 rw-p 00002000 08:04 22152913                   /usr/lib64/libfreebl3.so
7f69e61d8000-7f69e638e000 r-xp 00000000 08:04 22152815                   /usr/lib64/libc-2.17.so
7f69e638e000-7f69e658e000 ---p 001b6000 08:04 22152815                   /usr/lib64/libc-2.17.so
7f69e658e000-7f69e6592000 r--p 001b6000 08:04 22152815                   /usr/lib64/libc-2.17.so
7f69e6592000-7f69e6594000 rw-p 001ba000 08:04 22152815                   /usr/lib64/libc-2.17.so
7f69e6594000-7f69e6599000 rw-p 00000000 00:00 0 
7f69e6599000-7f69e65ae000 r-xp 00000000 08:04 22152888                   /usr/lib64/libgcc_s-4.8.3-20140911.so.1
7f69e65ae000-7f69e67ad000 ---p 00015000 08:04 22152888                   /usr/lib64/libgcc_s-4.8.3-20140911.so.1
7f69e67ad000-7f69e67ae000 r--p 00014000 08:04 22152888                   /usr/lib64/libgcc_s-4.8.3-20140911.so.1
7f69e67ae000-7f69e67af000 rw-p 00015000 08:04 22152888                   /usr/lib64/libgcc_s-4.8.3-20140911.so.1
7f69e67af000-7f69e67d3000 r-xp 00000000 08:04 22152510                   /usr/lib64/liblzma.so.5.0.99
7f69e67d3000-7f69e69d2000 ---p 00024000 08:04 22152510                   /usr/lib64/liblzma.so.5.0.99
7f69e69d2000-7f69e69d3000 r--p 00023000 08:04 22152510                   /usr/lib64/liblzma.so.5.0.99
7f69e69d3000-7f69e69d4000 rw-p 00024000 08:04 22152510                   /usr/lib64/liblzma.so.5.0.99
7f69e69d4000-7f69e6b2e000 r-xp 00000000 08:04 21506243                   /opt/xml2/lib/libxml2.so.2.9.2
7f69e6b2e000-7f69e6d2d000 ---p 0015a000 08:04 21506243                   /opt/xml2/lib/libxml2.so.2.9.2
7f69e6d2d000-7f69e6d35000 r--p 00159000 08:04 21506243                   /opt/xml2/lib/libxml2.so.2.9.2
7f69e6d35000-7f69e6d37000 rw-p 00161000 08:04 21506243                   /opt/xml2/lib/libxml2.so.2.9.2
7f69e6d37000-7f69e6d38000 rw-p 00000000 00:00 0 
7f69e6d38000-7f69e6d85000 r-xp 00000000 08:04 21507833                   /opt/xslt/lib/libxslt.so.1.1.28
7f69e6d85000-7f69e6f85000 ---p 0004d000 08:04 21507833                   /opt/xslt/lib/libxslt.so.1.1.28
7f69e6f85000-7f69e6f86000 r--p 0004d000 08:04 21507833                   /opt/xslt/lib/libxslt.so.1.1.28
7f69e6f86000-7f69e6f87000 rw-p 0004e000 08:04 21507833                   /opt/xslt/lib/libxslt.so.1.1.28
7f69e6f87000-7f69e6f88000 rw-p 00000000 00:00 0 
7f69e6f88000-7f69e6f94000 r-xp 00000000 08:04 22160328                   /usr/lib64/libicuio.so.50.1.2
7f69e6f94000-7f69e7194000 ---p 0000c000 08:04 22160328                   /usr/lib64/libicuio.so.50.1.2
7f69e7194000-7f69e7195000 r--p 0000c000 08:04 22160328                   /usr/lib64/libicuio.so.50.1.2
7f69e7195000-7f69e7196000 rw-p 0000d000 08:04 22160328                   /usr/lib64/libicuio.so.50.1.2
7f69e7196000-7f69e8569000 r-xp 00000000 08:04 22160324                   /usr/lib64/libicudata.so.50.1.2
7f69e8569000-7f69e8768000 ---p 013d3000 08:04 22160324                   /usr/lib64/libicudata.so.50.1.2
7f69e8768000-7f69e8769000 r--p 013d2000 08:04 22160324                   /usr/lib64/libicudata.so.50.1.2
7f69e8769000-7f69e876a000 rw-p 013d3000 08:04 22160324                   /usr/lib64/libicudata.so.50.1.2
7f69e876a000-7f69e88ce000 r-xp 00000000 08:04 22160338                   /usr/lib64/libicuuc.so.50.1.2
7f69e88ce000-7f69e8ace000 ---p 00164000 08:04 22160338                   /usr/lib64/libicuuc.so.50.1.2
7f69e8ace000-7f69e8ade000 r--p 00164000 08:04 22160338                   /usr/lib64/libicuuc.so.50.1.2
7f69e8ade000-7f69e8adf000 rw-p 00174000 08:04 22160338                   /usr/lib64/libicuuc.so.50.1.2
7f69e8adf000-7f69e8ae3000 rw-p 00000000 00:00 0 
7f69e8ae3000-7f69e8cd2000 r-xp 00000000 08:04 22160326                   /usr/lib64/libicui18n.so.50.1.2
7f69e8cd2000-7f69e8ed2000 ---p 001ef000 08:04 22160326                   /usr/lib64/libicui18n.so.50.1.2
7f69e8ed2000-7f69e8ede000 r--p 001ef000 08:04 22160326                   /usr/lib64/libicui18n.so.50.1.2
7f69e8ede000-7f69e8ee0000 rw-p 001fb000 08:04 22160326                   /usr/lib64/libicui18n.so.50.1.2
7f69e8ee0000-7f69e8ee1000 rw-p 00000000 00:00 0 
7f69e8ee1000-7f69e8f81000 r-xp 00000000 08:04 22155716                   /usr/lib64/libfreetype.so.6.10.0
7f69e8f81000-7f69e9180000 ---p 000a0000 08:04 22155716                   /usr/lib64/libfreetype.so.6.10.0
7f69e9180000-7f69e9186000 r--p 0009f000 08:04 22155716                   /usr/lib64/libfreetype.so.6.10.0
7f69e9186000-7f69e9187000 rw-p 000a5000 08:04 22155716                   /usr/lib64/libfreetype.so.6.10.0
7f69e9187000-7f69e91b9000 r-xp 00000000 08:04 22155156                   /usr/lib64/libidn.so.11.6.11
7f69e91b9000-7f69e93b8000 ---p 00032000 08:04 22155156                   /usr/lib64/libidn.so.11.6.11
7f69e93b8000-7f69e93b9000 r--p 00031000 08:04 22155156                   /usr/lib64/libidn.so.11.6.11
7f69e93b9000-7f69e93ba000 rw-p 00032000 08:04 22155156                   /usr/lib64/libidn.so.11.6.11
7f69e93ba000-7f69e9417000 r-xp 00000000 08:04 21372960                   /opt/curlssl/lib/libcurl.so.4.3.0
7f69e9417000-7f69e9617000 ---p 0005d000 08:04 21372960                   /opt/curlssl/lib/libcurl.so.4.3.0
7f69e9617000-7f69e9619000 r--p 0005d000 08:04 21372960                   /opt/curlssl/lib/libcurl.so.4.3.0
7f69e9619000-7f69e961a000 rw-p 0005f000 08:04 21372960                   /opt/curlssl/lib/libcurl.so.4.3.0
7f69e961a000-7f69e961d000 r-xp 00000000 08:04 22153058                   /usr/lib64/libcom_err.so.2.1
7f69e961d000-7f69e981c000 ---p 00003000 08:04 22153058                   /usr/lib64/libcom_err.so.2.1
7f69e981c000-7f69e981d000 r--p 00002000 08:04 22153058                   /usr/lib64/libcom_err.so.2.1
7f69e981d000-7f69e981e000 rw-p 00003000 08:04 22153058                   /usr/lib64/libcom_err.so.2.1
7f69e981e000-7f69e984d000 r-xp 00000000 08:04 22152835                   /usr/lib64/libk5crypto.so.3.1
7f69e984d000-7f69e9a4c000 ---p 0002f000 08:04 22152835                   /usr/lib64/libk5crypto.so.3.1
7f69e9a4c000-7f69e9a4e000 r--p 0002e000 08:04 22152835                   /usr/lib64/libk5crypto.so.3.1
7f69e9a4e000-7f69e9a4f000 rw-p 00030000 08:04 22152835                   /usr/lib64/libk5crypto.so.3.1
7f69e9a4f000-7f69e9a50000 rw-p 00000000 00:00 0 
7f69e9a50000-7f69e9b23000 r-xp 00000000 08:04 22153507                   /usr/lib64/libkrb5.so.3.3
7f69e9b23000-7f69e9d23000 ---p 000d3000 08:04 22153507                   /usr/lib64/libkrb5.so.3.3
7f69e9d23000-7f69e9d30000 r--p 000d3000 08:04 22153507                   /usr/lib64/libkrb5.so.3.3
7f69e9d30000-7f69e9d33000 rw-p 000e0000 08:04 22153507                   /usr/lib64/libkrb5.so.3.3
7f69e9d33000-7f69e9d7c000 r-xp 00000000 08:04 22155154                   /usr/lib64/libgssapi_krb5.so.2.2
7f69e9d7c000-7f69e9f7c000 ---p 00049000 08:04 22155154                   /usr/lib64/libgssapi_krb5.so.2.2
7f69e9f7c000-7f69e9f7d000 r--p 00049000 08:04 22155154                   /usr/lib64/libgssapi_krb5.so.2.2
7f69e9f7d000-7f69e9f7f000 rw-p 0004a000 08:04 22155154                   /usr/lib64/libgssapi_krb5.so.2.2
7f69e9f7f000-7f69e9f95000 r-xp 00000000 08:04 22152786                   /usr/lib64/libnsl-2.17.so
7f69e9f95000-7f69ea194000 ---p 00016000 08:04 22152786                   /usr/lib64/libnsl-2.17.so
7f69ea194000-7f69ea195000 r--p 00015000 08:04 22152786                   /usr/lib64/libnsl-2.17.so
7f69ea195000-7f69ea196000 rw-p 00016000 08:04 22152786                   /usr/lib64/libnsl-2.17.so
7f69ea196000-7f69ea198000 rw-p 00000000 00:00 0 
7f69ea198000-7f69ea19f000 r-xp 00000000 08:04 22152950                   /usr/lib64/librt-2.17.so
7f69ea19f000-7f69ea39e000 ---p 00007000 08:04 22152950                   /usr/lib64/librt-2.17.so
7f69ea39e000-7f69ea39f000 r--p 00006000 08:04 22152950                   /usr/lib64/librt-2.17.so
7f69ea39f000-7f69ea3a0000 rw-p 00007000 08:04 22152950                   /usr/lib64/librt-2.17.so
7f69ea3a0000-7f69ea3e1000 r-xp 00000000 08:04 21372757                   /opt/pcre/lib/libpcre.so.1.2.4
7f69ea3e1000-7f69ea5e0000 ---p 00041000 08:04 21372757                   /opt/pcre/lib/libpcre.so.1.2.4
7f69ea5e0000-7f69ea5e1000 r--p 00040000 08:04 21372757                   /opt/pcre/lib/libpcre.so.1.2.4
7f69ea5e1000-7f69ea5e2000 rw-p 00041000 08:04 21372757                   /opt/pcre/lib/libpcre.so.1.2.4
7f69ea5e2000-7f69ea5f1000 r-xp 00000000 08:04 22152846                   /usr/lib64/libbz2.so.1.0.6
7f69ea5f1000-7f69ea7f0000 ---p 0000f000 08:04 22152846                   /usr/lib64/libbz2.so.1.0.6
7f69ea7f0000-7f69ea7f1000 r--p 0000e000 08:04 22152846                   /usr/lib64/libbz2.so.1.0.6
7f69ea7f1000-7f69ea7f2000 rw-p 0000f000 08:04 22152846                   /usr/lib64/libbz2.so.1.0.6
7f69ea7f2000-7f69ea835000 r-xp 00000000 08:04 22157570                   /usr/lib64/libjpeg.so.62.1.0
7f69ea835000-7f69eaa35000 ---p 00043000 08:04 22157570                   /usr/lib64/libjpeg.so.62.1.0
7f69eaa35000-7f69eaa36000 r--p 00043000 08:04 22157570                   /usr/lib64/libjpeg.so.62.1.0
7f69eaa36000-7f69eaa37000 rw-p 00044000 08:04 22157570                   /usr/lib64/libjpeg.so.62.1.0
7f69eaa37000-7f69eaa47000 rw-p 00000000 00:00 0 
7f69eaa47000-7f69eaa70000 r-xp 00000000 08:04 22157572                   /usr/lib64/libpng15.so.15.13.0
7f69eaa70000-7f69eac70000 ---p 00029000 08:04 22157572                   /usr/lib64/libpng15.so.15.13.0
7f69eac70000-7f69eac71000 r--p 00029000 08:04 22157572                   /usr/lib64/libpng15.so.15.13.0
7f69eac71000-7f69eac72000 rw-p 0002a000 08:04 22157572                   /usr/lib64/libpng15.so.15.13.0
7f69eac72000-7f69eac83000 r-xp 00000000 08:04 22157969                   /usr/lib64/libXpm.so.4.11.0
7f69eac83000-7f69eae82000 ---p 00011000 08:04 22157969                   /usr/lib64/libXpm.so.4.11.0
7f69eae82000-7f69eae83000 r--p 00010000 08:04 22157969                   /usr/lib64/libXpm.so.4.11.0
7f69eae83000-7f69eae84000 rw-p 00011000 08:04 22157969                   /usr/lib64/libXpm.so.4.11.0
7f69eae84000-7f69eafbc000 r-xp 00000000 08:04 22157965                   /usr/lib64/libX11.so.6.3.0
7f69eafbc000-7f69eb1bc000 ---p 00138000 08:04 22157965                   /usr/lib64/libX11.so.6.3.0
7f69eb1bc000-7f69eb1bd000 r--p 00138000 08:04 22157965                   /usr/lib64/libX11.so.6.3.0
7f69eb1bd000-7f69eb1c2000 rw-p 00139000 08:04 22157965                   /usr/lib64/libX11.so.6.3.0
7f69eb1c2000-7f69eb1cf000 r-xp 00000000 08:04 22152833                   /usr/lib64/libpam.so.0.83.1
7f69eb1cf000-7f69eb3cf000 ---p 0000d000 08:04 22152833                   /usr/lib64/libpam.so.0.83.1
7f69eb3cf000-7f69eb3d0000 r--p 0000d000 08:04 22152833                   /usr/lib64/libpam.so.0.83.1
7f69eb3d0000-7f69eb3d1000 rw-p 0000e000 08:04 22152833                   /usr/lib64/libpam.so.0.83.1
7f69eb3d1000-7f69eb4ba000 r-xp 00000000 08:04 22152923                   /usr/lib64/libstdc++.so.6.0.19
7f69eb4ba000-7f69eb6b9000 ---p 000e9000 08:04 22152923                   /usr/lib64/libstdc++.so.6.0.19
7f69eb6b9000-7f69eb6c1000 r--p 000e8000 08:04 22152923                   /usr/lib64/libstdc++.so.6.0.19
7f69eb6c1000-7f69eb6c3000 rw-p 000f0000 08:04 22152923                   /usr/lib64/libstdc++.so.6.0.19
7f69eb6c3000-7f69eb6d8000 rw-p 00000000 00:00 0 
7f69eb6d8000-7f69eb6e1000 r-xp 00000000 08:04 22158033                   /usr/lib64/libltdl.so.7.3.0
7f69eb6e1000-7f69eb8e0000 ---p 00009000 08:04 22158033                   /usr/lib64/libltdl.so.7.3.0
7f69eb8e0000-7f69eb8e1000 r--p 00008000 08:04 22158033                   /usr/lib64/libltdl.so.7.3.0
7f69eb8e1000-7f69eb8e2000 rw-p 00009000 08:04 22158033                   /usr/lib64/libltdl.so.7.3.0
7f69eb8e2000-7f69eb90b000 r-xp 00000000 08:04 19932088                   /opt/libmcrypt/lib/libmcrypt.so.4.4.8
7f69eb90b000-7f69ebb0b000 ---p 00029000 08:04 19932088                   /opt/libmcrypt/lib/libmcrypt.so.4.4.8
7f69ebb0b000-7f69ebb0d000 r--p 00029000 08:04 19932088                   /opt/libmcrypt/lib/libmcrypt.so.4.4.8
7f69ebb0d000-7f69ebb0f000 rw-p 0002b000 08:04 19932088                   /opt/libmcrypt/lib/libmcrypt.so.4.4.8
7f69ebb0f000-7f69ebb14000 rw-p 00000000 00:00 0 
7f69ebb14000-7f69ebb2a000 r-xp 00000000 08:04 22152897                   /usr/lib64/libresolv-2.17.so
7f69ebb2a000-7f69ebd2a000 ---p 00016000 08:04 22152897                   /usr/lib64/libresolv-2.17.so
7f69ebd2a000-7f69ebd2b000 r--p 00016000 08:04 22152897                   /usr/lib64/libresolv-2.17.so
7f69ebd2b000-7f69ebd2c000 rw-p 00017000 08:04 22152897                   /usr/lib64/libresolv-2.17.so
7f69ebd2c000-7f69ebd2e000 rw-p 00000000 00:00 0 
7f69ebd2e000-7f69ebd85000 r-xp 00000000 08:04 26090873                   /opt/tidy/lib/libtidy-0.99.so.0.0.0
7f69ebd85000-7f69ebf84000 ---p 00057000 08:04 26090873                   /opt/tidy/lib/libtidy-0.99.so.0.0.0
7f69ebf84000-7f69ebf8c000 r--p 00056000 08:04 26090873                   /opt/tidy/lib/libtidy-0.99.so.0.0.0
7f69ebf8c000-7f69ebf8d000 rw-p 0005e000 08:04 26090873                   /opt/tidy/lib/libtidy-0.99.so.0.0.0
7f69ebf8d000-7f69ebf90000 r-xp 00000000 08:04 22152777                   /usr/lib64/libdl-2.17.so
7f69ebf90000-7f69ec18f000 ---p 00003000 08:04 22152777                   /usr/lib64/libdl-2.17.so
7f69ec18f000-7f69ec190000 r--p 00002000 08:04 22152777                   /usr/lib64/libdl-2.17.so
7f69ec190000-7f69ec191000 rw-p 00003000 08:04 22152777                   /usr/lib64/libdl-2.17.so
7f69ec191000-7f69ec292000 r-xp 00000000 08:04 22153508                   /usr/lib64/libm-2.17.so
7f69ec292000-7f69ec491000 ---p 00101000 08:04 22153508                   /usr/lib64/libm-2.17.so
7f69ec491000-7f69ec492000 r--p 00100000 08:04 22153508                   /usr/lib64/libm-2.17.so
7f69ec492000-7f69ec493000 rw-p 00101000 08:04 22153508                   /usr/lib64/libm-2.17.so
7f69ec493000-7f69ec4aa000 r-xp 00000000 08:04 21507866                   /opt/xslt/lib/libexslt.so.0.8.17
7f69ec4aa000-7f69ec6a9000 ---p 00017000 08:04 21507866                   /opt/xslt/lib/libexslt.so.0.8.17
7f69ec6a9000-7f69ec6aa000 r--p 00016000 08:04 21507866                   /opt/xslt/lib/libexslt.so.0.8.17
7f69ec6aa000-7f69ec6ab000 rw-p 00017000 08:04 21507866                   /opt/xslt/lib/libexslt.so.0.8.17
7f69ec6ab000-7f69ec6c0000 r-xp 00000000 08:04 22152818                   /usr/lib64/libz.so.1.2.7
7f69ec6c0000-7f69ec8bf000 ---p 00015000 08:04 22152818                   /usr/lib64/libz.so.1.2.7
7f69ec8bf000-7f69ec8c0000 r--p 00014000 08:04 22152818                   /usr/lib64/libz.so.1.2.7
7f69ec8c0000-7f69ec8c1000 rw-p 00015000 08:04 22152818                   /usr/lib64/libz.so.1.2.7
7f69ec8c1000-7f69ec924000 r-xp 00000000 08:04 22155291                   /usr/lib64/libssl.so.1.0.1e
7f69ec924000-7f69ecb23000 ---p 00063000 08:04 22155291                   /usr/lib64/libssl.so.1.0.1e
7f69ecb23000-7f69ecb27000 r--p 00062000 08:04 22155291                   /usr/lib64/libssl.so.1.0.1e
7f69ecb27000-7f69ecb2e000 rw-p 00066000 08:04 22155291                   /usr/lib64/libssl.so.1.0.1e
7f69ecb2e000-7f69ecceb000 r-xp 00000000 08:04 22152946                   /usr/lib64/libcrypto.so.1.0.1e
7f69ecceb000-7f69eceeb000 ---p 001bd000 08:04 22152946                   /usr/lib64/libcrypto.so.1.0.1e
7f69eceeb000-7f69ecf05000 r--p 001bd000 08:04 22152946                   /usr/lib64/libcrypto.so.1.0.1e
7f69ecf05000-7f69ecf11000 rw-p 001d7000 08:04 22152946                   /usr/lib64/libcrypto.so.1.0.1e
7f69ecf11000-7f69ecf15000 rw-p 00000000 00:00 0 
7f69ecf15000-7f69ecf1d000 r-xp 00000000 08:04 22155153                   /usr/lib64/libcrypt-2.17.so
7f69ecf1d000-7f69ed11c000 ---p 00008000 08:04 22155153                   /usr/lib64/libcrypt-2.17.so
7f69ed11c000-7f69ed11d000 r--p 00007000 08:04 22155153                   /usr/lib64/libcrypt-2.17.so
7f69ed11d000-7f69ed11e000 rw-p 00008000 08:04 22155153                   /usr/lib64/libcrypt-2.17.so
7f69ed11e000-7f69ed14c000 rw-p 00000000 00:00 0 
7f69ed14c000-7f69ed16d000 r-xp 00000000 08:04 22153119                   /usr/lib64/ld-2.17.so
7f69ed197000-7f69ed1a8000 rw-p 00000000 00:00 0 
7f69ed1cb000-7f69ed218000 rw-p 00000000 00:00 0 
7f69ed22c000-7f69ed24d000 rw-p 00000000 00:00 0 
7f69ed253000-7f69ed36d000 rw-p 00000000 00:00 0 
7f69ed36d000-7f69ed36e000 r--p 00021000 08:04 22153119                   /usr/lib64/ld-2.17.so
7f69ed36e000-7f69ed36f000 rw-p 00022000 08:04 22153119                   /usr/lib64/ld-2.17.so
7f69ed36f000-7f69ed370000 rw-p 00000000 00:00 0 
7fff17e7e000-7fff17e93000 rw-p 00000000 00:00 0                          [stack]
7fff17fc0000-7fff17fc2000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

Xuefer

unread,
Nov 12, 2015, 11:39:36 AM11/12/15
to xca...@googlegroups.com
I'd like to reproduce it. can you simplify it into a test case?
--

---
You received this message because you are subscribed to the Google Groups "XCache" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xcache+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Leonardo Castro

unread,
Nov 12, 2015, 11:49:51 AM11/12/15
to xca...@googlegroups.com
I've zero programming background, so I'm not sure what's entailed. I can provide any info you may need, like loaded modules, apache version, etc, and resellerclubmods_transfercheck.php/cron may need a WHMCS install to run (gonna try real quick and see).
I thought that maybe it's some issue with ioncube loader, since all the php files having issues(that I know of) are encoded. 

Leonardo Castro

unread,
Nov 12, 2015, 12:20:23 PM11/12/15
to XCache
Something like this? 

CentOS 7.1.1503
WHM 11.52
WHMCS 6.1.1
PHP 5.6.15
Apache 2.4.16
Using easyapache 3, build with profile provided.

Add the following to /usr/lib/php.ini :
xcache.admin.enable_auth="on"
xcache.admin.pass=""
xcache.admin.user="mOo"
xcache.cacher="On"
xcache.coredump_directory=""
xcache.count="2"
;xcache.coveragedump_directory="/tmp/pcov/"
xcache.coverager="Off"
xcache.gc_interval="300"
;xcache.mmap_path="/tmp/xcache"
xcache.optimizer="Off"
;xcache.readonly_protection="On"
xcache.size="64M"
xcache.slots="8K"
xcache.test="Off"
xcache.ttl="3600"
xcache.var_count="2"
xcache.var_gc_interval="300"
xcache.var_maxttl="0"
xcache.var_size="16M"
xcache.var_slots="8K"
xcache.var_ttl="3600"


Set up cron
*/2 * * * * php -q /home/username/whmcs/crons/cron.php escalations

You should get e-mails from cron with zend_mm heap corrupted, until you change the cron to:
*/2 * * * * export USE_ZEND_ALLOC=0 ;php -q /home/username/whmcs/crons/cron.php escalations

which will give you the doublefree error. 
This error will not take place if you run the file from shell.
Setting xcache.cacher="Off" allows cron to run without problem. No need to restart apache when making php.ini changes.


php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imap
intl
ionCube Loader
json
libxml
mbstring
mcrypt
mysql
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
Reflection
session
SimpleXML
soap
sockets
SourceGuardian
SPL
sqlite3
standard
suhosin
tidy
tokenizer
XCache
XCache Cacher
xml
xmlreader
xmlwriter
xsl
Zend Guard Loader
zip
zlib

[Zend Modules]
XCache Cacher
Zend Guard Loader
the ionCube PHP Loader

Modruid2-production.yaml

Leonardo Castro

unread,
Nov 12, 2015, 12:29:44 PM11/12/15
to XCache
I can also give you shell access to that account, if you want to look around without going through all that. Methinks to replicate this, you'd need to ask for a dev license from WHMCS.

Leonardo Castro

unread,
Nov 12, 2015, 3:22:03 PM11/12/15
to XCache

Kind of looks like this: http://xcache.lighttpd.net/ticket/256
I reckon the trick would be encoding a sufficiently complex file to have it fail. I know the Resellerclub whois lookup failed often, and the domain lookup failed every time.

Xuefer

unread,
Nov 12, 2015, 9:28:16 PM11/12/15
to xca...@googlegroups.com
please send shell access info to phpx...@gmail.com or xue...@gmail.com

or add my ssh key:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDi+DKrs/vJENuAFox1kEpG/PPfzaPqjc3DriX5uuupK1TcD2jftjxyAV0Z+VzGF5P6rvPQrlcOdQQeFdNe2yz9mG4L723gJ0lKhTVs7rjnUB/CupIStbjmXFLrGDfcZBHFM3YtwaBklNkv5GWAil5eesS3X7cX7v1b2JBTrKj254QtDwzTSbHEjFNITbzPA0iaFUlCQAPEHm9EN7kXHkHhYkIBj1yLlDK1XakMJuqr52Y1GRSu1LbjWH/grszb7UtFuHmT1UZNKBvA+PY6dIyKIAQjLjUs4OIRa1J5UPZd/5h4/2mkyIfDLvRWcnYC9L73NtdF/bw7LmtiBoxLn/nf xuefer@gentoo
(3 chunks / 2 spaces, no new line)

root is needed and tell me what package manage to use for installing new packages, like valgrind/gdb, also maybe some *-dev packages to rebuild php/xcache with debug symbol (or maybe there is xcache debug package)



On Friday, November 13, 2015, Leonardo Castro <satani...@gmail.com> wrote:
--

Leonardo Castro

unread,
Nov 13, 2015, 1:22:01 PM11/13/15
to xca...@googlegroups.com
Mail sent to phpx...@gmail.com with info.
Reply all
Reply to author
Forward
0 new messages