Package: php5-xcache
Version: 2.0.0-1
Severity: important

When XCache's regular cache is enabled (xcache.size isn't 0), after loading a 
couple of large of PHP scripts, XCache seems to crash.
Basically I see things like this in my Apache error log:
[Tue Jul 24 15:37:32 2012] [notice] child pid 19048 exit signal Segmentation 
fault (11)
[Tue Jul 24 15:37:32 2012] [notice] child pid 19050 exit signal Segmentation 
fault (11)
[Tue Jul 24 15:37:34 2012] [notice] child pid 19052 exit signal Segmentation 
fault (11)
[Tue Jul 24 15:37:36 2012] [notice] child pid 19053 exit signal Segmentation 
fault (11)

And the pages never load in the browser.

If I turn off XCache's regular cacher (but still leave XCache's variable cacher 
on), then things seem normal. I can load many many large PHP scripts and my 
server doesn't seem to ever crash.

I peformed many tests with XCacher's regular cache on and off, to narrow down 
that this indeed was the problem in my server crashing.
I noticed the larger I make xcache.size, the longer it takes for XCache to 
start crashing.


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (700, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages php5-xcache depends on:
ii  libapache2-mod-php5 [phpapi-2 5.4.4-3    server-side, HTML-embedded scripti
ii  libc6                         2.13-35    Embedded GNU C Library: Shared lib
ii  php5-cgi [phpapi-20100525]    5.4.4-3    server-side, HTML-embedded scripti
ii  php5-cli [phpapi-20100525]    5.4.4-3    command-line interpreter for the p

php5-xcache recommends no packages.

php5-xcache suggests no packages.

-- Configuration Files:
/etc/php5/mods-available/xcache.ini changed:
; configuration for php Xcache module
[xcache-common]
;; install as zend extension (recommended), normally "$extension_dir/xcache.so"
zend_extension = /usr/lib/php5/20100525/xcache.so
[xcache.admin]
xcache.admin.enable_auth = On
; Configure this to use admin pages
; xcache.admin.user = "mOo"
; xcache.admin.pass = md5($your_password)
; xcache.admin.pass = ""
[xcache]
; ini only settings, all the values here is default unless explained
; select low level shm/allocator scheme implemenation
xcache.shm_scheme =        "mmap"
; to disable: xcache.size=0
; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
xcache.size  =               16M
; set to cpu count (cat /proc/cpuinfo |grep -c processor)
xcache.count =                 2
; just a hash hints, you can always store count(items) > slots
xcache.slots =                8K
; ttl of the cache item, 0=forever
xcache.ttl   =                 0
; interval of gc scanning expired items, 0=no scan, other values is in seconds
xcache.gc_interval =           0
; same as aboves but for variable cache
xcache.var_size  =           16M
xcache.var_count =             1
xcache.var_slots =            8K
; default ttl
xcache.var_ttl   =             0
xcache.var_maxttl   =          0
xcache.var_gc_interval =     300
xcache.test =                Off
; N/A for /dev/zero
xcache.readonly_protection = Off
; for *nix, xcache.mmap_path is a file path, not directory.
; Use something like "/tmp/xcache" if you want to turn on ReadonlyProtection
; 2 group of php won't share the same /tmp/xcache
; for win32, xcache.mmap_path=anonymous map name, not file path
xcache.mmap_path =    "/dev/zero"
; leave it blank(disabled) or "/tmp/phpcore/"
; make sure it's writable by php (without checking open_basedir)
xcache.coredump_directory =   ""
; per request settings
xcache.cacher =               On
xcache.stat   =               On
xcache.optimizer =           Off
[xcache.coverager]
; per request settings
; enable coverage data collecting for xcache.coveragedump_directory and 
xcache_coverager_start/stop/get/clean() functions (will hurt executing 
performance)
xcache.coverager =          Off
; ini only settings
; make sure it's readable (care open_basedir) by coverage viewer script
; requires xcache.coverager=On
xcache.coveragedump_directory = ""


-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to