Ticket #93 (closed defect: worksforme)
Segfault when using variable cache increment/decrement functions
Description (last modified by moo) (diff)
XCache 1.2.0 segfaults when using variable increment/decrement functions:
Part of gdb output:
<?php xcache_inc("XXX"); //first invocation does not segfault... xcache_inc("XXX"); //but the second one does ?> Program received signal SIGSEGV, Segmentation fault. 0xb7ebee9b in zif_xcache_get_special_value () from /usr/lib/php5/xcache.so
same with xcache_dec():
<?php xcache_dec( "abc" ); xcache_dec( "abc" ); ?> Program received signal SIGSEGV, Segmentation fault. 0xb7f51e9b in zif_xcache_get_special_value () from /usr/lib/php5/xcache.so
Also, all of the variable API functions segfault when the variable cache is not enabled... maybe it is a good idea to have a more graceful error handler? :)
By the way, I have the varcache size set at 1M with 1K chunks.
Change History
Note: See
TracTickets for help on using
tickets.

