Skip Menu |

This queue is for tickets about the NetAddr-IP CPAN distribution.

Report information
The Basics
Id: 71916
Status: resolved
Priority: 0/
Queue: NetAddr-IP

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

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



Subject: test failures on perl 5.14.2, Math::BigInt 1.994 and 1.997

Message body is not shown because it is too large.

For display purposes, this appears to be the relevant information: On Tue Oct 25 03:44:48 2011, ABRAXXA wrote: Show quoted text
> This happens both on Debian 6 with a perlbrewed 5.14.2 (perl -V output > below test output) and Ubuntu 11.04 with the same perlbrewed perl. >
Show quoted text
> make[2]: Leaving directory > `/home/nac/.cpanplus/5.14.2/build/NetAddr-IP-4.050/Lite/Util' > PERL_DL_NONLAZY=1 /home/nac/perl5/perlbrew/perls/perl-5.14.2/bin/perl > "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', > '../blib/arch')" t/*.t > t/addr.t .............. ok > t/aton.t .............. ok > > # Failed test at t/bigint.t line 625. > # got: '429004967294' > # expected: '4294967294' > > # Failed test at t/bigint.t line 627. > # got: '0:0:0:0:0:63:E2B0:4D7E/128' > # expected: '255.255.255.254/32' > > # Failed test at t/bigint.t line 625. > # got: '42900004967295' > # expected: '4294967295' > > # Failed test at t/bigint.t line 627. > # got: '0:0:0:0:0:2704:6F8E:937F/128' > # expected: '255.255.255.255/32' > > # Failed test at t/bigint.t line 625. > # got: '4290000004967296' > # expected: '4294967296' > > # Failed test at t/bigint.t line 627. > # got: '0:0:0:0:F:3DBB:7661:EB80/128' > # expected: '0:0:0:0:0:1:0:0/128' > > # Failed test at t/bigint.t line 625. > # got: '42009000000004967297' > # expected: '4294967297' > > # Failed test at t/bigint.t line 627. > # got: '0:0:0:2:46FD:F2ED:41AE:4B81/128' > # expected: '0:0:0:0:0:1:0:1/128' > > # Failed test at t/bigint.t line 625. > # got: '420090000000000004967298' > # expected: '4294967298' > > # Failed test at t/bigint.t line 627. > # got: '0:0:0:58F5:1FE1:53CA:17F3:CB82/128' > # expected: '0:0:0:0:0:1:0:2/128' > > # Failed test at t/bigint.t line 625. > # got: '3402008236692000938463004633746000743176008211454' > # expected: '340282366920938463463374607431768211454' > Bad arg length for NetAddr::IP::Util::bcd2bin, length is 49, should be > 40 digits or less at > /home/nac/.cpanplus/5.14.2/build/NetAddr-IP- > 4.050/Lite/../blib/lib/NetAddr/IP/Lite.pm > line 744. > # Looks like you planned 146 tests but ran 11. > # Looks like you failed 11 tests of 11 run. > # Looks like your test exited with 255 just after 11. > t/bigint.t ............ > Dubious, test returned 255 (wstat 65280, 0xff00) > Failed 146/146 subtests > t/bignums.t ........... ok
... Show quoted text
> t/within.t ............ ok > > Test Summary Report > ------------------- > t/bigint.t (Wstat: 65280 Tests: 11 Failed: 11) > Failed tests: 1-11 > Non-zero exit status: 255 > Parse errors: Bad plan. You planned 146 tests but ran 11. > Files=64, Tests=2691, 10 wallclock secs ( 0.48 usr 0.53 sys + 2.54 > cusr 1.10 csys = 4.65 CPU) > Result: FAIL > Failed 1/64 test programs. 11/2691 subtests failed. > make[1]: Leaving directory > `/home/nac/.cpanplus/5.14.2/build/NetAddr-IP-4.050/Lite' > make[1]: *** [test_dynamic] Error 255 > make: *** [subdirs-test] Error 2 > > The tests for 'NetAddr::IP' failed. Would you like me to proceed > anyway > or should we abort? > > > nac@nac-prod:~$ perl -V > Summary of my perl5 (revision 5 version 14 subversion 2) > configuration: > > Platform: > osname=linux, osvers=2.6.32-5-amd64, archname=x86_64-linux-thread- > multi > uname='linux nac-prod 2.6.32-5-amd64 #1 smp mon oct 3 03:59:20 utc > 2011 x86_64 gnulinux ' > config_args='-de > -Dprefix=/home/nac/perl5/perlbrew/perls/perl-5.14.2 > -Dusethreads -Dusemymalloc -Dlibperl=libperl.so' > hint=recommended, useposix=true, d_sigaction=define > useithreads=define, usemultiplicity=define > useperlio=define, d_sfio=undef, uselargefiles=define, > usesocks=undef > use64bitint=define, use64bitall=define, uselongdouble=undef > usemymalloc=y, bincompat5005=undef > Compiler: > cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing > -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64', > optimize='-O2', > cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe > -fstack-protector -I/usr/local/include' > ccversion='', gccversion='4.4.5', gccosandvers='' > intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 > d_longlong=define, longlongsize=8, d_longdbl=define, > longdblsize=16 > ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', > lseeksize=8 > alignbytes=8, prototype=define > Linker and Libraries: > ld='cc', ldflags =' -fstack-protector -L/usr/local/lib' > libpth=/usr/local/lib /lib/../lib /usr/lib/../lib /lib /usr/lib > /lib64 /usr/lib64 > libs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc > perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc > libc=/lib/libc-2.11.2.so, so=so, useshrplib=false, > libperl=libperl.a > gnulibc_version='2.11.2' > Dynamic Linking: > dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' > cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib > -fstack-protector' > > > Characteristics of this binary (from libperl): > Compile-time options: MULTIPLICITY MYMALLOC PERL_DONT_CREATE_GVSV > PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP > PERL_PRESERVE_IVUV USE_64_BIT_ALL > USE_64_BIT_INT > USE_ITHREADS USE_LARGE_FILES USE_PERLIO > USE_PERL_ATOF > USE_REENTRANT_API > Built under linux > Compiled at Oct 24 2011 17:03:59 > %ENV: > >
PERLBREW_PATH="/home/nac/perl5/perlbrew/bin:/home/nac/perl5/perlbrew/perls/current/bi n" Show quoted text
> PERLBREW_PERL="perl-5.14.2" > PERLBREW_ROOT="/home/nac/perl5/perlbrew" > PERLBREW_VERSION="0.18" > @INC: > > /home/nac/perl5/perlbrew/perls/perl- > 5.14.2/lib/site_perl/5.14.2/x86_64-linux-thread-multi > /home/nac/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2 > > /home/nac/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/x86_64-linux- > thread-multi > /home/nac/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2 > .
This appears to be easily re-produceable on all 64bit installs. it looks like an unexpected behavior when you do $mbi++ after my $mbi = $ip->bigint();
On Tue Oct 25 14:41:01 2011, TODDR wrote: Show quoted text
> This appears to be easily re-produceable on all 64bit installs. it > looks like an unexpected > behavior when you do $mbi++ after my $mbi = $ip->bigint();
Looking at the code, were you expecting $mbi++ to wrap at 2^32?
The SpamAssassin folks are discussing a break as a result of release 4.050. It's unclear to us if this ticket is the cause of the SpamAssassin break or something else. It's clear that something in the diff between 4.048 and 4.050 is breaking some SpamAssassin installs. https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6681

Message body is not shown because it is too large.

This was fixed in 4.052, updated in 4.053 to fix bug in the test routine that manifests in very early versions of Math::BigInt On Tue Oct 25 14:12:45 2011, TODDR wrote: Show quoted text
> For display purposes, this appears to be the relevant information: > > On Tue Oct 25 03:44:48 2011, ABRAXXA wrote:
> > This happens both on Debian 6 with a perlbrewed 5.14.2 (perl -V
> output
> > below test output) and Ubuntu 11.04 with the same perlbrewed perl. > >
>
> > make[2]: Leaving directory > > `/home/nac/.cpanplus/5.14.2/build/NetAddr-IP-4.050/Lite/Util' > > PERL_DL_NONLAZY=1 /home/nac/perl5/perlbrew/perls/perl-
> 5.14.2/bin/perl
> > "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', > > '../blib/arch')" t/*.t > > t/addr.t .............. ok > > t/aton.t .............. ok > > > > # Failed test at t/bigint.t line 625. > > # got: '429004967294' > > # expected: '4294967294' > > > > # Failed test at t/bigint.t line 627. > > # got: '0:0:0:0:0:63:E2B0:4D7E/128' > > # expected: '255.255.255.254/32' > > > > # Failed test at t/bigint.t line 625. > > # got: '42900004967295' > > # expected: '4294967295' > > > > # Failed test at t/bigint.t line 627. > > # got: '0:0:0:0:0:2704:6F8E:937F/128' > > # expected: '255.255.255.255/32' > > > > # Failed test at t/bigint.t line 625. > > # got: '4290000004967296' > > # expected: '4294967296' > > > > # Failed test at t/bigint.t line 627. > > # got: '0:0:0:0:F:3DBB:7661:EB80/128' > > # expected: '0:0:0:0:0:1:0:0/128' > > > > # Failed test at t/bigint.t line 625. > > # got: '42009000000004967297' > > # expected: '4294967297' > > > > # Failed test at t/bigint.t line 627. > > # got: '0:0:0:2:46FD:F2ED:41AE:4B81/128' > > # expected: '0:0:0:0:0:1:0:1/128' > > > > # Failed test at t/bigint.t line 625. > > # got: '420090000000000004967298' > > # expected: '4294967298' > > > > # Failed test at t/bigint.t line 627. > > # got: '0:0:0:58F5:1FE1:53CA:17F3:CB82/128' > > # expected: '0:0:0:0:0:1:0:2/128' > > > > # Failed test at t/bigint.t line 625. > > # got: '3402008236692000938463004633746000743176008211454' > > # expected: '340282366920938463463374607431768211454' > > Bad arg length for NetAddr::IP::Util::bcd2bin, length is 49, should
> be
> > 40 digits or less at > > /home/nac/.cpanplus/5.14.2/build/NetAddr-IP- > > 4.050/Lite/../blib/lib/NetAddr/IP/Lite.pm > > line 744. > > # Looks like you planned 146 tests but ran 11. > > # Looks like you failed 11 tests of 11 run. > > # Looks like your test exited with 255 just after 11. > > t/bigint.t ............ > > Dubious, test returned 255 (wstat 65280, 0xff00) > > Failed 146/146 subtests > > t/bignums.t ........... ok
> ...
> > t/within.t ............ ok > > > > Test Summary Report > > ------------------- > > t/bigint.t (Wstat: 65280 Tests: 11 Failed: 11) > > Failed tests: 1-11 > > Non-zero exit status: 255 > > Parse errors: Bad plan. You planned 146 tests but ran 11. > > Files=64, Tests=2691, 10 wallclock secs ( 0.48 usr 0.53 sys + 2.54 > > cusr 1.10 csys = 4.65 CPU) > > Result: FAIL > > Failed 1/64 test programs. 11/2691 subtests failed. > > make[1]: Leaving directory > > `/home/nac/.cpanplus/5.14.2/build/NetAddr-IP-4.050/Lite' > > make[1]: *** [test_dynamic] Error 255 > > make: *** [subdirs-test] Error 2 > > > > The tests for 'NetAddr::IP' failed. Would you like me to proceed > > anyway > > or should we abort? > > > > > > nac@nac-prod:~$ perl -V > > Summary of my perl5 (revision 5 version 14 subversion 2) > > configuration: > > > > Platform: > > osname=linux, osvers=2.6.32-5-amd64, archname=x86_64-linux-
> thread-
> > multi > > uname='linux nac-prod 2.6.32-5-amd64 #1 smp mon oct 3 03:59:20
> utc
> > 2011 x86_64 gnulinux ' > > config_args='-de > > -Dprefix=/home/nac/perl5/perlbrew/perls/perl-5.14.2 > > -Dusethreads -Dusemymalloc -Dlibperl=libperl.so' > > hint=recommended, useposix=true, d_sigaction=define > > useithreads=define, usemultiplicity=define > > useperlio=define, d_sfio=undef, uselargefiles=define, > > usesocks=undef > > use64bitint=define, use64bitall=define, uselongdouble=undef > > usemymalloc=y, bincompat5005=undef > > Compiler: > > cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE
> -fno-strict-aliasing
> > -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE > > -D_FILE_OFFSET_BITS=64', > > optimize='-O2', > > cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe > > -fstack-protector -I/usr/local/include' > > ccversion='', gccversion='4.4.5', gccosandvers='' > > intsize=4, longsize=8, ptrsize=8, doublesize=8,
> byteorder=12345678
> > d_longlong=define, longlongsize=8, d_longdbl=define, > > longdblsize=16 > > ivtype='long', ivsize=8, nvtype='double', nvsize=8,
> Off_t='off_t',
> > lseeksize=8 > > alignbytes=8, prototype=define > > Linker and Libraries: > > ld='cc', ldflags =' -fstack-protector -L/usr/local/lib' > > libpth=/usr/local/lib /lib/../lib /usr/lib/../lib /lib /usr/lib > > /lib64 /usr/lib64 > > libs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc > > perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc > > libc=/lib/libc-2.11.2.so, so=so, useshrplib=false, > > libperl=libperl.a > > gnulibc_version='2.11.2' > > Dynamic Linking: > > dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-
> E'
> > cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib > > -fstack-protector' > > > > > > Characteristics of this binary (from libperl): > > Compile-time options: MULTIPLICITY MYMALLOC PERL_DONT_CREATE_GVSV > > PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP > > PERL_PRESERVE_IVUV USE_64_BIT_ALL > > USE_64_BIT_INT > > USE_ITHREADS USE_LARGE_FILES USE_PERLIO > > USE_PERL_ATOF > > USE_REENTRANT_API > > Built under linux > > Compiled at Oct 24 2011 17:03:59 > > %ENV: > > > >
>
PERLBREW_PATH="/home/nac/perl5/perlbrew/bin:/home/nac/perl5/perlbrew/perls/current/bi Show quoted text
> n"
> > PERLBREW_PERL="perl-5.14.2" > > PERLBREW_ROOT="/home/nac/perl5/perlbrew" > > PERLBREW_VERSION="0.18" > > @INC: > > > > /home/nac/perl5/perlbrew/perls/perl- > > 5.14.2/lib/site_perl/5.14.2/x86_64-linux-thread-multi > > /home/nac/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2 > > > > /home/nac/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/x86_64-linux- > > thread-multi > > /home/nac/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2 > > .
> >