|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-09-30 11:30 UTC] info at astellar dot com
Description:
------------
The version number of the PECL package or files you are using.
APC 3.0.12p2 stable
The list of modules you compiled PHP with (your configure line).
Configure Command
'./configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-mime-magic=/etc/httpd/conf/magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter'
gdb backtrace
#0 0x0000002a966b0606 in fcntl () from /lib64/tls/libc.so.6
#1 0x0000002a9eabf5ef in lock_reg (fd=54, cmd=7, type=Variable "type" is not available.
#0 0x0000002a966b0606 in fcntl () from /lib64/tls/libc.so.6
#2 0x0000002a9eabf62b in apc_fcntl_lock (fd=Variable "fd" is not available.
) at /tmp/tmpdbtRCQ/APC-3.0.12p2/apc_fcntl.c:83
#3 0x0000002a9eabb36e in apc_cache_user_insert (cache=0x552b076730, key= {data = {file = {device = 365800714584, inode = 545460846712}, user = {identifier = 0x552b6bf158 "a%3A2%3A%7Bs%3A4
%3A%22type%22%3Bs%3A14%3A%22NNSL_LOCATIONS%22%3Bs%3A4%3A%22keys%22%3Bs%3A13%3A%22group_id_hash%22%3B%7D", identifier_len
= 120}, fpfile = {fullpath = 0x552b6bf158 "a%3A2%3A%7Bs%3A4%3A%22type%22%3Bs%3A14%3A%22NNSL_LOCATIONS%22%3Bs%3A4%3A%22k
eys%22%3Bs%3A13%3A%22group_id_hash%22%3B%7D", fullpath_len = 120}}, mtime = 1159611542, type = 2 '\002'},
value=0x2aa16826e0, t=1159611542) at /tmp/tmpdbtRCQ/APC-3.0.12p2/apc_cache.c:492
#4 0x0000002a9eab9c9c in _apc_store (
strkey=0x552b6bf158 "a%3A2%3A%7Bs%3A4%3A%22type%22%3Bs%3A14%3A%22NNSL_LOCATIONS%22%3Bs%3A4%3A%22keys%22%3Bs%3A13%3A%
22group_id_hash%22%3B%7D", strkey_len=Variable "strkey_len" is not available.
) at /tmp/tmpdbtRCQ/APC-3.0.12p2/php_apc.c:441
#5 0x0000002a9eab9d92 in zif_apc_store (ht=Variable "ht" is not available.
) at /tmp/tmpdbtRCQ/APC-3.0.12p2/php_apc.c:472
#6 0x0000002a9a714868 in zend_do_fcall_common_helper_SPEC (execute_data=0x7fbfff4480)
at /usr/src/debug/php-5.1.2/Zend/zend_vm_execute.h:192
#7 0x0000002a9a7141b1 in execute (op_array=0x552b240778) at /usr/src/debug/php-5.1.2/Zend/zend_vm_execute.h:92
#8 0x0000002a9a71444a in zend_do_fcall_common_helper_SPEC (execute_data=0x7fbfff57a0)
at /usr/src/debug/php-5.1.2/Zend/zend_vm_execute.h:226
#9 0x0000002a9a7141b1 in execute (op_array=0x552b168558) at /usr/src/debug/php-5.1.2/Zend/zend_vm_execute.h:92
#10 0x0000002a9a71444a in zend_do_fcall_common_helper_SPEC (execute_data=0x7fbfff5c40)
at /usr/src/debug/php-5.1.2/Zend/zend_vm_execute.h:226
#11 0x0000002a9a7141b1 in execute (op_array=0x552b1ef558) at /usr/src/debug/php-5.1.2/Zend/zend_vm_execute.h:92
#12 0x0000002a9a71444a in zend_do_fcall_common_helper_SPEC (execute_data=0x7fbfff8100)
at /usr/src/debug/php-5.1.2/Zend/zend_vm_execute.h:226
#13 0x0000002a9a7141b1 in execute (op_array=0x552b2f0358) at /usr/src/debug/php-5.1.2/Zend/zend_vm_execute.h:92
#14 0x0000002a9a71444a in zend_do_fcall_common_helper_SPEC (execute_data=0x7fbfff8920)
at /usr/src/debug/php-5.1.2/Zend/zend_vm_execute.h:226
#15 0x0000002a9a7141b1 in execute (op_array=0x552b25e628) at /usr/src/debug/php-5.1.2/Zend/zend_vm_execute.h:92
#16 0x0000002a9a71444a in zend_do_fcall_common_helper_SPEC (execute_data=0x7fbfffa910)
at /usr/src/debug/php-5.1.2/Zend/zend_vm_execute.h:226
Reproduce code:
---------------
$is_ok = apc_store($cache_key, $value);
Expected result:
----------------
put php array variable to cache
Actual result:
--------------
apache hangs up, stop answer queries.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 16:00:01 2025 UTC |
On my CentOS release 4.4 (Final) on i686, the code works perfectly. This was my test script <?php $key = "a%3A2%3A%7Bs%3A4%3A%22type%22%3Bs%3A14%3A%22NNSL_LOCATIONS%22%3Bs%3A4%3A%22keys%22%3Bs%3A13%3A%22group_id_hash%22%3B%7D"; $value = array("One" => "1", "Two" => "2"); if(apc_store($key, $value)) { print_r(apc_fetch($key)); } ?> So far, nobody else has reported regressions on the user cache (which hasn't changed after 3.0.11).I also seem to be running into this problem, mostly when the box is under high load. The symptom is indeed that Apache just stops responding. When this happens there is just one apache process running and it's using 100% of one processor. strace -p ... only shows: fcntl(12, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0} Haven't tried gdb yet. I'm using apc_store() fairly extensively. I'll try running with apc_store() disabled. All this on AMD64 with Debian Sarge, default apache2 (2.0.54-5sarge1), PHP 5.1.6-0.dotdeb.2, APC 3.0.12p2 Current load is 2.24 on a dual proc box, it just locked up again. I'll try to get some info out of gdb.