Subject: | Illegal division by zero |
Date: | Wed, 27 Sep 2006 10:56:07 -0400 (EDT) |
To: | bug-Linux-Statistics [...] rt.cpan.org |
From: | Lance Heller <lheller [...] atdesk.com> |
Thankyou for making Linux-Statistics available.
The snag noted below was encountered while migrating to a 9.1 SuSE
platform from an older Redhat 7.3 system. The problem appears to be
related to a difference in the display of the /proc/meminfo data.
#:../Linux-Statistics-1.14-1041: make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/1.....ok
t/10....ok
t/11....ok
t/2.....ok
t/3.....Illegal division by zero at
/tmp/Linux-Statistics-1.14/blib/lib/Linux/Statistics.pm line 720.
# Looks like your test died before it could output anything.
t/3.....dubious
Test returned status 255 (wstat 65280, 0xff00)
Scalar found where operator expected at (eval 153) line 1, near "'int'
$__val"
(Missing operator before $__val?)
DIED. FAILED tests 1-10
Failed 10/10 tests, 0.00% okay
t/4.....ok
t/5.....ok
t/6.....ok
t/7.....ok
t/8.....ok
t/9.....ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/3.t 255 65280 10 20 200.00% 1-10
Failed 1/11 test scripts, 90.91% okay. 10/112 subtests failed, 91.07%
okay.
make: *** [test_dynamic] Error 255
(SuSE 9.1)
#: cat /proc/version
Linux version 2.6.5-7.257-smp (geeko@buildhost) (gcc version 3.3.3 (SuSE Linux)) #1 SMP Mon May 15 14:14:14 UTC 2006
#:../Linux-Statistics-1.14-1045: perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 3)
configuration:
Platform:
osname=linux, osvers=2.6.4, archname=i586-linux-thread-multi
uname='linux f195 2.6.4 #1 smp tue nov 29 14:32:29 utc 2005 i686 i686 i386 gnulinux '
config_args='-ds -e -Dprefix=/usr -Dvendorprefix=/usr -Dinstallusrbinperl -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm -Duseshrplib=true -Doptimize=-O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -Wall -pipe'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=6
4',
optimize='-O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -Wall -pipe',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing'
ccversion='', gccversion='3.3.3 (SuSE Linux)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =''
libpth=/lib /usr/lib /usr/local/lib
libs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.3.3'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.3/i586-linux-thread-multi/CORE'
cccdlflags='-fPIC', lddlflags='-shared'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
Locally applied patches:
SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962
Built under linux
Compiled at Dec 17 2005 03:22:07
@INC:
/usr/lib/perl5/5.8.3/i586-linux-thread-multi
/usr/lib/perl5/5.8.3
/usr/lib/perl5/site_perl/5.8.3/i586-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.3/i586-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3
/usr/lib/perl5/vendor_perl
.
--
------------------------------------------------------------------------
ATD, 11 eWall Street, Mount Pleasant, SC 29464, USA
voice: (843)789-2146, fax: (834)789-2010
------------------------------------------------------------------------
Leveraging technology for smarter trading.(r)
Automated Trading Desk, LLC (ATD) is the sole owner of Automated Trading
Desk Brokerage Services, LLC (ATDB) and Automated Trading Desk Financial
Services, LLC (AUTO), both NASD members and Members SIPC. ATD does not
offer any brokerage services and is not a NASD member. All brokerage
services, trading functions, execution of order flow and related matters
are performed through ATDB and AUTO utilizing ATD's proprietary
technology and software. Any reference to ATD trading, ATD trading
services, ATD trading performance, ATD orders, we, us, our or other such
usage refers to the services and trading activities of ATDB and AUTO
utilizing ATD's proprietary technology and software. Periods of market
volatility or other system delays may adversely affect trade execution
and related services.
------------------------------------------------------------------------