Custom Query (312 matches)


Show under each result:

Results (49 - 51 of 312)

Ticket Resolution Summary Owner Reporter
#152 fixed Weird PHP errors when files get deleted and copied again (multiple times in cache) moo blueyed

I have a demo setup for a PHP application and to reset it, I'm removing all files and copying them anew ("rm /path/to/app -rf && cp -a /source /path/to/app").

This causes weird PHP errors like "call to undefined function", "cannot redeclare foo()" or "Class 'DataObject?' not found".

After removing the xcache cache, it works again.

Looking at the cached files, there a duplicates, e.g.:

  php#0 71  /path/inc/generic/model/_genericcache.class.php  0  0  6.04 K  2.79 K  4 M  2051  508796  8 m  8 m
  php#0 72  /path/inc/generic/model/_genericcache.class.php  2  0  6.04 K  2.79 K  4 M  2051  508795  10 s  8 m

I'm not sure if this is related to the PHP files being accessed during "deletion" and have not tried to create a smaller testcase.

I've tried using xcache.readonly_protection=On, but it still broke.

A workaround appears to be using "/bin/cp -a --no-preserve=timestamps" to copy the files to the same place again (--no-preserve=timestamps is the key here).

My settings:

xcache.admin.enable_auth  On
  xcache.cacher  On
  xcache.coredump_directory  no value
  xcache.count  1
  xcache.gc_interval  0
  xcache.mmap_path  /dev/zero
  xcache.readonly_protection  1
  xcache.shm_scheme  mmap
  xcache.size  10M
  xcache.slots  8K
  xcache.stat  On
  xcache.test  0
  xcache.ttl  0
  xcache.var_count  1
  xcache.var_gc_interval  120
  xcache.var_maxttl  0
  xcache.var_size  64K
  xcache.var_slots  8K
  xcache.var_ttl  0

I'm using the 1.2 branch and PHP_5_2 (both uptodate).

#185 worksforme Using a php script for sendmail_path causes segmentation fault moo blueyed

I've noticed that "mail()" failed on my webserver, since I've installed XCache:

# php -d sendmail_path="/usr/local/bin/sendmail_test" -r "var_dump( mail('EMAIL', 'test', 'test') );"
/dev/zero: No space left on device
Failed creating file mappping
PHP Fatal error:  Failed creating file mappping in Unknown on line 0
PHP Fatal error:  XCache: Cannot create shm in Unknown on line 0
testSegmentation fault

/usr/local/bin/sendmail_test looks as follows:

echo "test";

Executing sendmail_test itself works fine, only when used for sendmail_path it fails.

The workaround for me is to use "#!/usr/bin/php -n" for this script (-n for "no ini and therefore also no xcache). Debian/Ubuntu? uses the same conf.d directories for CLI and CGI, otherwise I might have disabled XCache for CLI instead.

If you need more information, like e.g. a backtrace in case you cannot reproduce this, please let me know.

#323 fixed segfaults when using XCache 3.0.3 under heavy load moo boxdev

Hi. I am working with David Schnepper from Box to troubleshoot segfaults on our site. He previously worked with you on XCache 2.0.1. You took his fixes for XCache 2.0.1 and created XCache 3.0.3. Box upgraded to XCache 3.0.3 but we are still seeing the segfaults.

I have attached some stack traces. We would appreciate your feedback on what other data we can gather.

Version of XCache: php-xcache-3.0.3-5.4_box1.el6.x86_64 Version of PHP: php-5.4.13-1.el6.x86_64 Version of Apache: httpd-2.2.15-28.sl6.x86_64 OS: Scientific Linux 6 Output of 'uname -a': Linux 2.6.32-220.el6.x86_64 #1 SMP Sat Dec 10 17:04:11 CST 2011 x86_64 x86_64 x86_64 GNU/Linux Frequency of occurrence: Normally very low. But much more frequent when out test-driver uses around 150 concurrent processes or more. xcache.readonly_protection = Off

Note: See TracQuery for help on using queries.