Litespeed 4.1.3 with xCache 2.0.1 error?

Discussion in 'General' started by peter21581, Aug 28, 2012.

  1. peter21581

    peter21581 New Member

    root@lve-cp [~]# tail -f /etc/httpd/logs/stderr.log

    2012-08-28 12:12:55.933 [STDERR] *** glibc detected *** lsphp5: free(): invalid pointer: 0x0000000000793d99 ***
    2012-08-28 12:12:55.933 [STDERR] ======= Backtrace: =========
    2012-08-28 12:12:55.933 [STDERR] /lib64/libc.so.6(+0x75916)[0x7fb8cee96916]
    2012-08-28 12:12:55.934 [STDERR] /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so(xc_fcntl_destroy+0x14)[0x7fb8cd6942b4]
    /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so(+0x110d7)[0x7fb8cd68c0d7]
    /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so(+0x11170)[0x7fb8cd68c170]
    2012-08-28 12:12:55.934 [STDERR] /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so(+0x114d7)[0x7fb8cd68c4d7]
    2012-08-28 12:12:55.934 [STDERR] lsphp5[0x78cba3]
    2012-08-28 12:12:55.934 [STDERR] lsphp5[0x7932a5]
    2012-08-28 12:12:55.934 [STDERR] lsphp5(zend_hash_graceful_reverse_destroy+0x18)[0x793538]
    2012-08-28 12:12:55.934 [STDERR] lsphp5[0x787935]
    2012-08-28 12:12:55.934 [STDERR] lsphp5(php_module_shutdown+0x2a)[0x732c1a]
    2012-08-28 12:12:55.934 [STDERR] lsphp5[0x8107e9]
    2012-08-28 12:12:55.934 [STDERR] /lib64/libc.so.6(__libc_start_main+0xfd)[0x7fb8cee3fcdd]
    2012-08-28 12:12:55.934 [STDERR] lsphp5[0x43d2f9]
    ======= Memory map: ========
    2012-08-28 12:12:55.934 [STDERR] 00400000-00dda000 r-xp 00000000 08:01 48759084 /usr/local/lsws/fcgi-bin/lsphp-5.3.16
    00fd9000-0106b000 rw-p 009d9000 08:01 48759084 /usr/local/lsws/fcgi-bin/lsphp-5.3.16
    0106b000-0108d000 rw-p 00000000 00:00 0
    02d44000-037ec000 rw-p 00000000 00:00 0 [heap]
    7fb8bc000000-7fb8c2000000 r--s 00000000 08:01 51250481 /tmp/xcache
    7fb8c2000000-7fb8c8000000 rw-s 00000000 08:01 51250481 /tmp/xcache
    7fb8c8000000-7fb8c8021000 rw-p 00000000 00:00 0
    7fb8c8021000-7fb8cc000000 ---p 00000000 00:00 0
    7fb8cca6c000-7fb8cca78000 r-xp 00000000 08:01 48762135 /lib64/libnss_files-2.12.so
    7fb8cca78000-7fb8ccc78000 ---p 0000c000 08:01 48762135 /lib64/libnss_files-2.12.so
    7fb8ccc78000-7fb8ccc79000 r--p 0000c000 08:01 48762135 /lib64/libnss_files-2.12.so
    7fb8ccc79000-7fb8ccc7a000 rw-p 0000d000 08:01 48762135 /lib64/libnss_files-2.12.so
    7fb8ccc7a000-7fb8ccc7b000 ---p 00000000 00:00 0
    7fb8ccc7b000-7fb8cd67b000 rwxp 00000000 00:00 0
    7fb8cd67b000-7fb8cd69a000 r-xp 00000000 08:01 51516248 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so
    7fb8cd69a000-7fb8cd899000 ---p 0001f000 08:01 51516248 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so
    7fb8cd899000-7fb8cd89c000 rw-p 0001e000 08:01 51516248 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so
    7fb8cd89c000-7fb8cd8a3000 r-xp 00000000 08:01 51516253 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so
    7fb8cd8a3000-7fb8cdaa3000 ---p 00007000 08:01 51516253 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so
    7fb8cdaa3000-7fb8cdaa4000 rw-p 00007000 08:01 51516253 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so
    7fb8cdaa4000-7fb8cdaf6000 r-xp 00000000 08:01 51516250 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so
    7fb8cdaf6000-7fb8cdcf5000 ---p 00052000 08:01 51516250 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so
    7fb8cdcf5000-7fb8cdcfb000 rw-p 00051000 08:01 51516250 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so
    7fb8cdcfb000-7fb8cdd93000 r-xp 00000000 08:01 51516249 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so
    7fb8cdd93000-7fb8cdf92000 ---p 00098000 08:01 51516249 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so
    7fb8cdf92000-7fb8cdf96000 rw-p 00097000 08:01 51516249 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so
    7fb8cdf96000-7fb8cdfac000 r-xp 00000000 08:01 51516251 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so
    7fb8cdfac000-7fb8ce1ac000 ---p 00016000 08:01 51516251 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so
    7fb8ce1ac000-7fb8ce1af000 rw-p 00016000 08:01 51516251 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so
    7fb8ce1af000-7fb8ce1ce000 r-xp 00000000 08:01 51516252 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/suhosin.so
    7fb8ce1ce000-7fb8ce3cd000 ---p 0001f000 08:01 51516252 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/suhosin.so
    7fb8ce3cd000-7fb8ce3d3000 rw-p 0001e000 08:01 51516252 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/suhosin.so
    7fb8ce3d3000-7fb8ce3d5000 rw-p 00000000 00:00 0
    7fb8ce3d5000-7fb8ce3e2000 r-xp 00000000 08:01 51513501 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/memcache.so
    7fb8ce3e2000-7fb8ce5e2000 ---p 0000d000 08:01 51513501 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/memcache.so
    7fb8ce5e2000-7fb8ce5e3000 rw-p 0000d000 08:01 51513501 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/memcache.so
    7fb8ce5e3000-7fb8ce6ce000 r-xp 00000000 08:01 51644435 /usr/local/Zend/lib/Guard-5.5.0/php-5.3.x/ZendGuardLoader.so
    7fb8ce6ce000-7fb8ce7ce000 ---p 000eb000 08:01 51644435 /usr/local/Zend/lib/Guard-5.5.0/php-5.3.x/ZendGuardLoader.so
    7fb8ce7ce000-7fb8ce7eb000 rw-p 000eb000 08:01 51644435 /usr/local/Zend/lib/Guard-5.5.0/php-5.3.x/ZendGuardLoader.so
    7fb8ce7eb000-7fb8ce7ef000 rw-p 00000000 00:00 0
    7fb8ce7ef000-7fb8ce8d8000 r-xp 00000000 08:01 51649183 /usr/local/IonCube/ioncube_loader_lin_5.3.so
    7fb8ce8d8000-7fb8ce9d7000 ---p 000e9000 08:01 51649183 /usr/local/IonCube/ioncube_loader_lin_5.3.so
    7fb8ce9d7000-7fb8ce9e7000 rw-p 000e8000 08:01 51649183 /usr/local/IonCube/ioncube_loader_lin_5.3.so
    7fb8ce9e7000-7fb8ce9ea000 rw-p 00000000 00:00 0
  2. peter21581

    peter21581 New Member

    php.ini settings for xcache is

    Code:
    [xcache.admin]
    xcache.admin.enable_auth="on"
    xcache.admin.user = "mOo"
    xcache.admin.pass = ""
    
    [xcache]
    xcache.optimizer = On
    xcache.shm_scheme =  "mmap"
    xcache.size  =               64M
    xcache.count =                 8
    xcache.slots =                16K
    xcache.ttl   =              14400
    xcache.gc_interval =         300
    
    ; Same as aboves but for variable cache
    ; If you don't know for sure that you need this, you probably don't
    xcache.var_size  =            32M
    xcache.var_count =             8
    xcache.var_slots =            16K
    xcache.var_ttl   =             14400
    xcache.var_maxttl   =          28800
    xcache.var_gc_interval =     300
    
    ; N/A for /dev/zero
    xcache.readonly_protection = On
    xcache.mmap_path =  /tmp/xcache
    xcache.cacher =               On
    xcache.stat   =               On
    and cPanel setting

    [​IMG]
  3. NiteWave

    NiteWave Administrator

  4. peter21581

    peter21581 New Member

    Turn off Suhosin and ZendGuardLoader still error, i afraid!
    Download full logs here.
    http://www.mediafire.com/?gqxdig9rgshrw5j

    2012-08-28 13:05:55.761 [STDERR] *** glibc detected *** lsphp5: free(): invalid pointer: 0x0000000002e77a50 ***
    ======= Backtrace: =========
    2012-08-28 13:05:55.761 [STDERR] /lib64/libc.so.6(+0x75916)[0x7f5addb2d916]
    /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so(+0x110d7)[0x7f5adc7550d7]
    /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so(+0x11170)[0x7f5adc755170]
    /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so(+0x114d7)[0x7f5adc7554d7]
    2012-08-28 13:05:55.761 [STDERR] lsphp5[0x78cba3]
    2012-08-28 13:05:55.761 [STDERR] lsphp5[0x7932a5]
    2012-08-28 13:05:55.761 [STDERR] lsphp5(zend_hash_graceful_reverse_destroy+0x18)[0x793538]
    2012-08-28 13:05:55.762 [STDERR] lsphp5[0x787935]
    2012-08-28 13:05:55.762 [STDERR] lsphp5(php_module_shutdown+0x2a)[0x732c1a]
    2012-08-28 13:05:55.762 [STDERR] lsphp5[0x8107e9]
    2012-08-28 13:05:55.762 [STDERR] /lib64/libc.so.6(__libc_start_main+0xfd)[0x7f5addad6cdd]
    2012-08-28 13:05:55.762 [STDERR] lsphp5[0x43d2f9]
    ======= Memory map: ========
    2012-08-28 13:05:55.762 [STDERR] 00400000-00dda000 r-xp 00000000 08:01 48759084 /usr/local/lsws/fcgi-bin/lsphp-5.3.16
    00fd9000-0106b000 rw-p 009d9000 08:01 48759084 /usr/local/lsws/fcgi-bin/lsphp-5.3.16
    0106b000-0108d000 rw-p 00000000 00:00 0
    021a1000-03142000 rw-p 00000000 00:00 0 [heap]
    7f5adbb35000-7f5adbb41000 r-xp 00000000 08:01 48762135 /lib64/libnss_files-2.12.so
    7f5adbb41000-7f5adbd41000 ---p 0000c000 08:01 48762135 /lib64/libnss_files-2.12.so
    7f5adbd41000-7f5adbd42000 r--p 0000c000 08:01 48762135 /lib64/libnss_files-2.12.so
    7f5adbd42000-7f5adbd43000 rw-p 0000d000 08:01 48762135 /lib64/libnss_files-2.12.so
    7f5adbd43000-7f5adbd44000 ---p 00000000 00:00 0
    7f5adbd44000-7f5adc744000 rw-p 00000000 00:00 0
    7f5adc744000-7f5adc763000 r-xp 00000000 08:01 51516248 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so
    7f5adc763000-7f5adc962000 ---p 0001f000 08:01 51516248 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so
    7f5adc962000-7f5adc965000 rw-p 0001e000 08:01 51516248 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so
    7f5adc965000-7f5adc96c000 r-xp 00000000 08:01 51516253 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so
    7f5adc96c000-7f5adcb6c000 ---p 00007000 08:01 51516253 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so
    7f5adcb6c000-7f5adcb6d000 rw-p 00007000 08:01 51516253 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so
    7f5adcb6d000-7f5adcbbf000 r-xp 00000000 08:01 51516250 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so
    7f5adcbbf000-7f5adcdbe000 ---p 00052000 08:01 51516250 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so
    7f5adcdbe000-7f5adcdc4000 rw-p 00051000 08:01 51516250 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so
    7f5adcdc4000-7f5adce5c000 r-xp 00000000 08:01 51516249 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so
    7f5adce5c000-7f5add05b000 ---p 00098000 08:01 51516249 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so
    7f5add05b000-7f5add05f000 rw-p 00097000 08:01 51516249 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so
    7f5add05f000-7f5add075000 r-xp 00000000 08:01 51516251 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so
    7f5add075000-7f5add275000 ---p 00016000 08:01 51516251 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so
    7f5add275000-7f5add278000 rw-p 00016000 08:01 51516251 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so
    7f5add278000-7f5add285000 r-xp 00000000 08:01 51513501 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/memcache.so
    7f5add285000-7f5add485000 ---p 0000d000 08:01 51513501 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/memcache.so
    7f5add485000-7f5add486000 rw-p 0000d000 08:01 51513501 /usr/local/lib/php/extensions/no-debug-non-zts-20090626/memcache.so
    7f5add486000-7f5add56f000 r-xp 00000000 08:01 51649183 /usr/local/IonCube/ioncube_loader_lin_5.3.so
    7f5add56f000-7f5add66e000 ---p 000e9000 08:01 51649183 /usr/local/IonCube/ioncube_loader_lin_5.3.so
    7f5add66e000-7f5add67e000 rw-p 000e8000 08:01 51649183 /usr/local/IonCube/ioncube_loader_lin_5.3.so
    7f5add67e000-7f5add681000 rw-p 00000000 00:00 0
    7f5add681000-7f5add698000 r-xp 00000000 08:01 48762125 /lib64/libpthread-2.12.so
    7f5add698000-7f5add898000 ---p 00017000 08:01 48762125 /lib64/libpthread-2.12.so
    7f5add898000-7f5add899000 r--p 00017000 08:01 48762125 /lib64/libpthread-2.12.so
    7f5add899000-7f5add89a000 rw-p 00018000 08:01 48762125 /lib64/libpthread-2.12.so
    7f5add89a000-7f5add89e000 rw-p 00000000 00:00 0
    7f5add89e000-7f5add8b4000 r-xp 00000000 08:01 48762124 /lib64/libresolv-2.12.so
    7f5add8b4000-7f5addab4000 ---p 00016000 08:01 48762124 /lib64/libresolv-2.12.so
    7f5addab4000-7f5addab5000 r--p 00016000 08:01 48762124 /lib64/libresolv-2.12.so
    7f5addab5000-7f5addab6000 rw-p 00017000 08:01 48762124 /lib64/libresolv-2.12.so
    7f5addab6000-7f5addab8000 rw-p 00000000 00:00 0
    7f5addab8000-7f5addc41000 r-xp 00000000 08:01 48762116 /lib64/libc-2.12.so
    7f5addc41000-7f5adde41000 ---p 00189000 08:01 48762116 /lib64/libc-2.12.so
    7f5adde41000-7f5adde45000 r--p 00189000 08:01 48762116 /lib64/libc-2.12.so
    7f5adde45000-7f5adde46000 rw-p 0018d000 08:01 48762116 /lib64/libc-2.12.so
    7f5adde46000-7f5adde4b000 rw-p 00000000 00:00 0
    7f5adde4b000-7f5addf91000 r-xp 00000000 08:01 490212
  5. NiteWave

    NiteWave Administrator

    how about comment out these 2 lines and use default value (/dev/zero)?
  6. peter21581

    peter21581 New Member

    If I do that, it will give error something else like check path.
    but will do so.
  7. peter21581

    peter21581 New Member

    This is an error, after I have set to /dev/zero


    root@lve-cp []# tail -f /etc/httpd/logs/stderr.log

    /dev/zero: No such file or directory
    Cannot open file set by xcache.mmap_path, check the xcache.size/var_size against system limitation
    2012-08-28 13:25:02.060 [STDERR] PHP Fatal error: Cannot open file set by xcache.mmap_path, check the xcache.size/var_size against system limitation in Unknown on line 0PHP Fatal error: XCache: Cannot create shm in Unknown on line 0/dev/zero: No such file or directory
    Cannot open file set by xcache.mmap_path, check the xcache.size/var_size against system limitation
    PHP Fatal error: Cannot open file set by xcache.mmap_path, check the xcache.size/var_size against system limitation in Unknown on line 0PHP Fatal error: XCache: Cannot create shm in Unknown on line 0
    Last edited: Aug 28, 2012
  8. peter21581

    peter21581 New Member

    Change it back to /tmp/xcache and leave Readonlyprotection commented.

    I will have this error

    xc_fcntl_lock failed errno:9xc_fcntl_lock failed errno:9xc_fcntl_lock failed errno:9xc_fcntl_lock failed errno:9xc_fcntl_lock failed errno:9
  9. peter21581

    peter21581 New Member

    by the way, My System is a VPS running under ESXi 5
    OS: CloudLinux 6 and I have CageFS enable.
    in LiteSpeed I have made setting to CageFS/SecureLVE

    I seem to have no error if I disable CageFS.

Share This Page