php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56497 CPU: %100 & Log: 1GB
Submitted: 2005-08-17 06:30 UTC Modified: 2005-08-19 05:14 UTC
From: not at important dot com Assigned: rasmus (profile)
Status: Closed Package: APC (PECL)
PHP Version: 4.3.11 OS: FreeBSD 4.11
Private report: No CVE-ID: None
 [2005-08-17 06:30 UTC] not at important dot com
Description:
------------
APC 3.0.7 is growing CPU to 100% and my log file is 1GB in 6 seconds.

apc.cache_by_default = Off
apc.filters = "+.+(/cache/).+\.php$"



http log:
1)
httpd in free(): warning: modified (chunk-) pointer

2)
httpd in free(): warning: chunk is already free

3)
httpd in free(): warning: page is already free

4)
httpd in free(): warning: junk pointer, too high to make sense

APC 3.0.6 is more stable.

-------------------
apache+mod_ssl+mod_deflate-1.3.33+2.8.22_1
Php 4.4.0
FreeBSD 4.11



Expected result:
----------------
No extra log

Actual result:
--------------
unknown

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-19 01:33 UTC] rasmus@php.net
Not that I think it has anything to do with it, but what is that regex supposed to do?  +.+ makes no sense.  Neither do the brackets around /cache there.

But you will have to provide some more info on this than that.  This is working perfectly for me on FreeBSD 4.10 and FreeBSD 4.11 boxes.  You are sure your built it correctly, or at least the same way you built 3.0.6?
 [2005-08-19 04:08 UTC] not at important dot com
Yes, I built it correctly. 3.0.6 & 3.0.7. The same way:

./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/local/bin/php-config

If apc.filters is "", this problem doesn't occur.

apc.filters = "/cache"  : problem occurs.
apc.filters = "+/cache" : problem occurs.
apc.filters = "cache" : : problem occurs.
apc.filters = " " :     : problem occurs.


If apc.filters is not empty, this problem always occurs.
CPU is growing, and log file is growing.
I don't believe, httpd.log file is 3GB now only in 20 seconds. I think I must use version version 3.0.6.


---------------------
phpize
Configuring for:
PHP Api Version:         20020918
Zend Module Api No:      20020429
Zend Extension Api No:   20050606

./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/local/bin/php-config


checking build system type... i386-unknown-freebsd4.11
checking host system type... i386-unknown-freebsd4.11
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... yes
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend
checking for PHP extension directory... /usr/local/lib/php/20020429
checking for re2c... exit 0;
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
yes
checking whether to enable APC support... yes, shared
checking whether to enable mmap support instead of IPC shm... yes
checking whether to prefer semaphore based locks... no
checking for union semun... yes
checking for shm_open in -lrt... no
checking for ld used by GCC... /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking for /usr/libexec/elf/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /usr/bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/libexec/elf/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... freebsd4.11 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether -lc should be explicitly linked in... yes
creating libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
 [2005-08-19 05:14 UTC] rasmus@php.net
Fixed in CVS - Will be in 3.0.8
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 23:01:28 2024 UTC