This queue is for tickets about the Cache-Memcached-Fast CPAN distribution.

Report information
The Basics
Id:
43537
Status:
resolved
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
wsnyder [...] wsnyder.org
Cc:
AdminCc:

BugTracker
Severity:
Critical
Broken in:
0.14
Fixed in:
(no value)



Calling cas_multi on an empty array should just do nothing. Instead on Suse10.3/perl5.8.8 it causes a segmentation fault. The same bug occurs in other _multi functions too. my @to_update = (); $memd->cas_multi(\@to_update); segmentation fault Backtrace (sorry didn't compile with debug): 70x00002b538c657a4c in XS_Cache__Memcached__Fast_set_multi (my_perl=<value optimized out>, cv=<value optimized out>) at Fast.xs:766 66 cas = SvUV(*av_fetch(av, arg, 0)); #0 0x00002b538c657a4c in XS_Cache__Memcached__Fast_set_multi (my_perl=<value optimized out>, cv=<value optimized out>) at Fast.xs:766 #1 0x0000000000486bb3 in Perl_pp_entersub () #2 0x0000000000468f8e in Perl_runops_debug ()
I should point out that the above calls using a reference instead of with an array, which is a usage error, but obviously it still shouldn't segfault.
RT-Send-CC: mcmillhj@gmail.com
Finally fixed by Hunter McMillen <mcmillhj@...> in git (the fix will appear in 0.24).


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.