Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 88376
Status: resolved
Priority: 0/
Queue: Memcached-libmemcached

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

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: incr/decr fail
Date: Tue, 3 Sep 2013 12:36:52 +0100
To: bug-Memcached-libmemcached [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
When Memcached-libmemcached-1.001701 in installed (having passed its tests), Cache-Memcached-libmemcached-0.03001 fails its test suite: t/05_sequence.t ............. 1/22 # Failed test at t/05_sequence.t line 21. # Failed test at t/05_sequence.t line 35. # Looks like you failed 2 tests of 22. t/05_sequence.t ............. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/22 subtests These tests look at $cache->incr and $cache->decr on a removed key. The method is returning '1.84467440737095516e+19' (numerically 2**64, or close thereto) on my system, which is an x86_64 with 64-bit IV. Cache-Memcached-libmemcached-0.03001 passes its tests when using the older Memcached-libmemcached-0.4406. -zefram
On Tue Sep 03 07:37:11 2013, zefram@fysh.org wrote: Show quoted text
> When Memcached-libmemcached-1.001701 in installed (having passed its > tests), Cache-Memcached-libmemcached-0.03001 fails its test suite: > > t/05_sequence.t ............. 1/22 > # Failed test at t/05_sequence.t line 21. > > # Failed test at t/05_sequence.t line 35. > # Looks like you failed 2 tests of 22. > t/05_sequence.t ............. Dubious, test returned 2 (wstat 512, 0x200) > Failed 2/22 subtests > > These tests look at $cache->incr and $cache->decr on a removed key. > The method is returning '1.84467440737095516e+19' (numerically 2**64, > or close thereto) on my system, which is an x86_64 with 64-bit IV. > > Cache-Memcached-libmemcached-0.03001 passes its tests when using the > older Memcached-libmemcached-0.4406. > > -zefram
I can't reproduce this with a similar configuration. ($Config{ivsize} == 8). What version of Perl are you using? Thanks, -- Matthew Horsfall (alh)
Subject: Re: [rt.cpan.org #88376] incr/decr fail
Date: Fri, 14 Mar 2014 14:24:24 +0000
To: Matthew Horsfall via RT <bug-Memcached-libmemcached [...] rt.cpan.org>
From: Zefram <zefram [...] fysh.org>
Matthew Horsfall via RT wrote: Show quoted text
>I can't reproduce this with a similar configuration. ($Config{ivsize} == 8). > >What version of Perl are you using?
I can reproduce it with C-M-l-0.03001 on a 64-bit perl 5.18.2. perl -V: {{{ Summary of my perl5 (revision 5 version 18 subversion 2) configuration: Platform: osname=linux, osvers=2.6.32-5-686, archname=i686-linux-64int-ld uname='linux beryllium.photobox.priv 2.6.32-5-686 #1 smp fri may 10 08:33:48 utc 2013 i686 gnulinux ' config_args='-des -Duseshrplib -Duse64bitint -Duselongdouble -Uusethreads -Uusemultiplicity -Dprefix=/opt/perl-5.18.2 -Dsiteprefix=/opt/perl-5.18.2 -Dvendorprefix=/opt/perl-5.18.2/vendor -Doptimize=-ggdb -O2 -Dcccdlflags=-fPIC -O2 -pipe' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=undef, uselongdouble=define usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-ggdb -O2', cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include' ccversion='', gccversion='4.7.2', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long long', ivsize=8, nvtype='long double', nvsize=12, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags =' -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /lib/i386-linux-gnu /lib/../lib /usr/lib/i386-linux-gnu /usr/lib/../lib /lib /usr/lib libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.13' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/opt/perl-5.18.2/lib/5.18.2/i686-linux-64int-ld/CORE' cccdlflags='-fPIC -O2 -pipe', lddlflags='-shared -ggdb -O2 -L/usr/local/lib -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_64_BIT_INT USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LONG_DOUBLE USE_PERLIO USE_PERL_ATOF Built under linux Compiled at Jan 8 2014 11:13:41 @INC: /opt/perl-5.18.2/lib/site_perl/5.18.2/i686-linux-64int-ld /opt/perl-5.18.2/lib/site_perl/5.18.2 /opt/perl-5.18.2/vendor/lib/vendor_perl/5.18.2/i686-linux-64int-ld /opt/perl-5.18.2/vendor/lib/vendor_perl/5.18.2 /opt/perl-5.18.2/lib/5.18.2/i686-linux-64int-ld /opt/perl-5.18.2/lib/5.18.2 . }}} However, I don't see the failure with C-M-l-0.04001 on the same perl. Probably corresponds to this Changes item: - Fixed incr and decr methods to return undef on failure. So I think it's fixed. -zefram
Excellent. Thank you. -- Matthew Horsfall (alh)