APC error with PHP 5.4.16

b0ngma01

Active Member
#1
Dear Staff,

I've try to Complie PHP with enable APC and i've got error when add extension=apc.so to php.ini
Code:
[config:server:epsr:lsphp4]'Process Limit' probably is too low, adjust the limit to: 310.
2014-03-09 05:48:15.201 [STDERR] *** glibc detected *** lsphp5: double free or corruption (out): 0x00007f6ad6575ee0 ***
2014-03-09 05:48:15.201 [STDERR] ======= Backtrace: =========
2014-03-09 05:48:15.201 [STDERR] /lib64/libc.so.6[0x39c5a76166]
2014-03-09 05:48:15.201 [STDERR] /lib64/libc.so.6[0x39c5a78c93]
2014-03-09 05:48:15.201 [STDERR] lsphp5(destroy_zend_class+0x255)[0x7a3225]
2014-03-09 05:48:15.201 [STDERR] lsphp5(zend_hash_clean+0x73)[0x7b93b3]
/usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20100525/apc.so(apc_interned_strings_shutdown+0x20)[0x7f6ad62f26e0]
2014-03-09 05:48:15.201 [STDERR] /usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20100525/apc.so(apc_module_shutdown+0x12a)[0x7f6ad62eac7a]
/usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20100525/apc.so(+0xa5ff)[0x7f6ad62e15ff]
2014-03-09 05:48:15.201 [STDERR] lsphp5[0x7b2365]
2014-03-09 05:48:15.202 [STDERR] lsphp5[0x7b8d25]
2014-03-09 05:48:15.202 [STDERR] lsphp5(zend_hash_graceful_reverse_destroy+0x18)[0x7b8fb8]
2014-03-09 05:48:15.202 [STDERR] lsphp5[0x7ac89e]
2014-03-09 05:48:15.202 [STDERR] lsphp5(php_module_shutdown+0x2a)[0x74f5fa]
2014-03-09 05:48:15.202 [STDERR] lsphp5[0x855f7a]
2014-03-09 05:48:15.202 [STDERR] /lib64/libc.so.6(__libc_start_main+0xfd)[0x39c5a1ed1d]
2014-03-09 05:48:15.202 [STDERR] lsphp5[0x432029]
======= Memory map: ========
2014-03-09 05:48:15.202 [STDERR] 00400000-00d15000 r-xp 00000000 fd:00 151900 /usr/local/lsws/fcgi-bin/lsphp-5.4.16.bak
00f15000-00fd5000 rw-p 00915000 fd:00 151900 /usr/local/lsws/fcgi-bin/lsphp-5.4.16.bak
00fd5000-00ff8000 rw-p 00000000 00:00 0
023e9000-02944000 rw-p 00000000 00:00 0 [heap]
3027000000-30271b5000 r-xp 00000000 fd:00 142342 /usr/lib64/libcrypto.so.1.0.1e
30271b5000-30273b5000 ---p 001b5000 fd:00 142342 /usr/lib64/libcrypto.so.1.0.1e
30273b5000-30273d0000 r--p 001b5000 fd:00 142342 /usr/lib64/libcrypto.so.1.0.1e
30273d0000-30273dc000 rw-p 001d0000 fd:00 142342 /usr/lib64/libcrypto.so.1.0.1e
30273dc000-30273e0000 rw-p 00000000 00:00 0
3027400000-3027536000 r-xp 00000000 fd:00 528832 /usr/lib64/mysql/libmysqlclient.so.16.0.0
3027536000-3027735000 ---p 00136000 fd:00 528832 /usr/lib64/mysql/libmysqlclient.so.16.0.0
3027735000-3027783000 rw-p 00135000 fd:00 528832 /usr/lib64/mysql/libmysqlclient.so.16.0.0
3027783000-3027784000 rw-p 00000000 00:00 0
3027800000-3027839000 r-xp 00000000 fd:00 142350 /usr/lib64/libssl3.so
3027839000-3027a39000 ---p 00039000 fd:00 142350 /usr/lib64/libssl3.so
3027a39000-3027a3c000 r--p 00039000 fd:00 142350 /usr/lib64/libssl3.so
3027a3c000-3027a3d000 rw-p 0003c000 fd:00 142350 /usr/lib64/libssl3.so
3027a3d000-3027a3e000 rw-p 00000000 00:00 0
...........................
More at http://pastebin.com/SWL7DYHg

I use Litespeed Web Server Enterprise v4.2.3

Please help me
 

wanah

Well-Known Member
#3
We played around with different opcode caches and now use :

PHP 5.3 : APC
PHP 5.4 : Opcache
PHP 5.5 : Opcache

We found Opcache to use fewer ressources than xcache.

If you want object cache, you could try Opcache + APCu
 
Top