Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in Math::BigInt tests #7264

Closed
p5pRT opened this issue Apr 23, 2004 · 4 comments
Closed

Errors in Math::BigInt tests #7264

p5pRT opened this issue Apr 23, 2004 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented Apr 23, 2004

Migrated from rt.perl.org#29116 (status was 'resolved')

Searchable as RT29116$

@p5pRT
Copy link
Author

p5pRT commented Apr 23, 2004

From silume@earthlink.net

Created by silume@earthlink.net

Several of the Math​::BigInt tests fail, often off by one​:

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils​::Command​::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/_e_math......ok
t/bare_mbf.....# Test 1222 got​: '10101010100.99' (../t/bigfltpm.inc at
line 138 fail #672)
# Expected​: '10101010101'
FAILED test 1222
Failed 1/1815 tests, 99.94% okay
t/bare_mbi.....# Test 1329 got​: '10101010100' (../t/bigintpm.inc at line
196 fail #746)
# Expected​: '10101010101'
# Test 1449 got​: '1393602002710965299543995' (../t/bigintpm.inc at line
# 196 fail #806)
# Expected​: '3104744730915914415259518'
# Test 2650 got​: '122' (../t/bigintpm.inc at line 405)
# Expected​: '123'
# Test 2651 got​: '122' (../t/bigintpm.inc at line 406)
# Expected​: '123'
# Test 2652 got​: '122' (../t/bigintpm.inc at line 407)
# Expected​: '123'
FAILED tests 1329, 1449, 2650-2652
Failed 5/2832 tests, 99.82% okay
t/bare_mif.....ok
t/bigfltpm.....# Test 1224 got​: '10101010100.99' (../t/bigfltpm.inc at
line 138 fail #672)
# Expected​: '10101010101'
FAILED test 1224
Failed 1/1817 tests, 99.94% okay
t/bigintc......ok
t/bigintpm.....# Test 1329 got​: '10101010100' (bigintpm.inc at line 196
fail #746)
# Expected​: '10101010101'
# Test 1449 got​: '1393602002710965299543995' (bigintpm.inc at line 196
# fail #806)
# Expected​: '3104744730915914415259518'
# Test 2650 got​: '122' (bigintpm.inc at line 405)
# Expected​: '123'
# Test 2651 got​: '122' (bigintpm.inc at line 406)
# Expected​: '123'
# Test 2652 got​: '122' (bigintpm.inc at line 407)
# Expected​: '123'
FAILED tests 1329, 1449, 2650-2652
Failed 5/2832 tests, 99.82% okay
t/bigints......ok
t/biglog.......ok
t/bigroot......ok
t/calling......ok
t/config.......ok
t/const_mbf....ok
t/constant.....ok
t/downgrade....ok
t/fallback.....ok
t/inf_nan......ok
t/isa..........ok
t/mbf_ali......ok
t/mbi_ali......ok
t/mbi_rand.....# Test 179 got​:
'4646464646464646464444444444444475757575757575757575756666666666666666
6666666666878787878787878786' (t/mbi_rand.t at line 73 fail #45)
# Expected​:
# '4646464646464646464444444444444475757575757575757575756666666666
# 6666666666666666878787878787878787'
# Test 371 got​:
# '34343434343434343436363625252525255454545454545454545454545454546767
# 676767676767676767676760606060606060606059' (t/mbi_rand.t at line 73
# fail #93)
# Expected​:
# '3434343434343434343636362525252525545454545454545454545454545454
# 6767676767676767676767676760606060606060606060'
# Test 387 got​:
# '99999999999999999999999999515151515151515151515151515151151515151515
# 14' (t/mbi_rand.t at line 73 fail #97)
# Expected​:
# '9999999999999999999999999951515151515151515151515151515115151515
# 151515'
FAILED tests 179, 371, 387
Failed 3/512 tests, 99.41% okay
t/mbimbf.......ok
t/req_mbf0.....ok
t/req_mbf1.....ok
t/req_mbfa.....ok
t/req_mbfi.....ok
t/req_mbfn.....ok
t/req_mbfw.....ok
t/require......ok
t/sub_ali......ok
t/sub_mbf......# Test 1222 got​: '10101010100.99' (../t/bigfltpm.inc at
line 138 fail #672)
# Expected​: '10101010101'
FAILED test 1222
Failed 1/1821 tests, 99.95% okay
t/sub_mbi......# Test 1329 got​: '10101010100' (../t/bigintpm.inc at line
196 fail #746)
# Expected​: '10101010101'
# Test 1449 got​: '1393602002710965299543995' (../t/bigintpm.inc at line
# 196 fail #806)
# Expected​: '3104744730915914415259518'
# Test 2650 got​: '122' (../t/bigintpm.inc at line 405)
# Expected​: '123'
# Test 2651 got​: '122' (../t/bigintpm.inc at line 406)
# Expected​: '123'
# Test 2652 got​: '122' (../t/bigintpm.inc at line 407)
# Expected​: '123'
FAILED tests 1329, 1449, 2650-2652
Failed 5/2837 tests, 99.82% okay
t/sub_mif......ok
t/trap.........ok
t/upgrade......# Test 1127 got​: '10101010100.99' (../t/upgrade.inc at
line 205 fail #602)
# Expected​: '10101010101'
FAILED test 1127
Failed 1/2100 tests, 99.95% okay
t/upgradef.....ok
t/use..........ok
t/use_lib1.....ok
t/use_lib2.....ok
t/use_lib3.....ok
t/use_lib4.....ok
t/use_mbfw.....ok
t/with_sub.....# Test 1223 got​: '10101010100.99' (../t/bigfltpm.inc at
line 138 fail #672)
# Expected​: '10101010101'
FAILED test 1223
Failed 1/1816 tests, 99.94% okay
Failed 9/43 test scripts, 79.07% okay. 23/23249 subtests failed, 99.90%
okay. Failed Test Stat Wstat Total Fail Failed List of Failed
-----------------------------------------------------------------------
-------- t/bare_mbf.t 1815 1 0.06% 1222
t/bare_mbi.t 2832 5 0.18% 1329 1449 2650-2652
t/bigfltpm.t 1817 1 0.06% 1224
t/bigintpm.t 2832 5 0.18% 1329 1449 2650-2652
t/mbi_rand.t 512 3 0.59% 179 371 387
t/sub_mbf.t 1821 1 0.05% 1222
t/sub_mbi.t 2837 5 0.18% 1329 1449 2650-2652
t/upgrade.t 2100 1 0.05% 1127
t/with_sub.t 1816 1 0.06% 1223
make​: *** [test_dynamic] Error 255

Perl Info

Flags:
    category=library
    severity=medium

Site configuration information for perl v5.8.4:

Configured by qleah at Fri Apr 23 16:17:30 CDT 2004.

Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
  Platform:
    osname=linux, osvers=2.4.22, archname=i586-linux-multi-64int-ld
    uname='linux cantoras 2.4.6 #5 sun oct 13 19:23:24 mdt 2002 i586
unknown '    config_args=''
    hint=previous, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=define    useperlio=define d_sfio=undef
uselargefiles=define usesocks=undef    use64bitint=define
use64bitall=undef uselongdouble=define    usemymalloc=n,
bincompat5005=undef  Compiler:
    cc='gcc', ccflags ='-march=i586 -pipe -w -fforce-mem -fforce-addr
-finline-functions -funroll-loops -fmove-all-movables -freduce-all-givs
-ftracer -ffast-math -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',   
optimize='-O2',    cppflags='-w -pipe -fno-strict-aliasing -fforce-mem
-fforce-addr -fomit-frame-pointer -funroll-loops -ffast-math -w -pipe
-fno-strict-aliasing -fforce-mem -fforce-addr -fomit-frame-pointer
-funroll-loops -ffast-math -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-march=i586 -pipe -w -fforce-mem -fforce-addr -finline-functions
-funroll-loops -fmove-all-movables -freduce-all-givs -ftracer
-ffast-math -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=i586 -pipe
-w -fforce-mem -fforce-addr -finline-functions -funroll-loops
-fmove-all-movables -freduce-all-givs -ftracer -ffast-math
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=i586 -pipe -w
-fforce-mem -fforce-addr -finline-functions -funroll-loops
-fmove-all-movables -freduce-all-givs -ftracer -ffast-math
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'    ccversion='',
gccversion='3.3.3', 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='gcc', ldflags =''
    libpth=/lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
    libc=/lib/libc-2.2.3.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.3'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic
-Wl,-rpath,/usr/lib/perl5/5.8.4/i586-linux-multi-64int-ld/CORE'   
cccdlflags='-fpic', lddlflags='-shared'

Locally applied patches:



@INC for perl v5.8.4:
    /usr/lib/perl5/5.8.4/i586-linux-multi-64int-ld
    /usr/lib/perl5/5.8.4
    /usr/lib/perl5/site_perl/5.8.4/i586-linux-multi-64int-ld
    /usr/lib/perl5/site_perl/5.8.4
    /usr/lib/perl5/site_perl
    .

@p5pRT
Copy link
Author

p5pRT commented May 3, 2004

From @nwc10

On Fri, Apr 23, 2004 at 11​:21​:30PM -0000, Leah wrote​:

Summary of my perl5 (revision 5 version 8 subversion 4) configuration​:
Platform​:
osname=linux, osvers=2.4.22, archname=i586-linux-multi-64int-ld
uname='linux cantoras 2.4.6 #5 sun oct 13 19​:23​:24 mdt 2002 i586
unknown ' config_args=''
hint=previous, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=define useperlio=define d_sfio=undef
uselargefiles=define usesocks=undef use64bitint=define
use64bitall=undef uselongdouble=define usemymalloc=n,
bincompat5005=undef Compiler​:
cc='gcc', ccflags ='-march=i586 -pipe -w -fforce-mem -fforce-addr
-finline-functions -funroll-loops -fmove-all-movables -freduce-all-givs
-ftracer -ffast-math -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2', cppflags='-w -pipe -fno-strict-aliasing -fforce-mem
-fforce-addr -fomit-frame-pointer -funroll-loops -ffast-math -w -pipe
-fno-strict-aliasing -fforce-mem -fforce-addr -fomit-frame-pointer
-funroll-loops -ffast-math -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-march=i586 -pipe -w -fforce-mem -fforce-addr -finline-functions
-funroll-loops -fmove-all-movables -freduce-all-givs -ftracer
-ffast-math -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=i586 -pipe
-w -fforce-mem -fforce-addr -finline-functions -funroll-loops
-fmove-all-movables -freduce-all-givs -ftracer -ffast-math
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=i586 -pipe -w
-fforce-mem -fforce-addr -finline-functions -funroll-loops
-fmove-all-movables -freduce-all-givs -ftracer -ffast-math
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' ccversion='',
gccversion='3.3.3', 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​:

I can't replicate this on x86 linux even with all the -f flags you use.
Do you still have these errors if you build perl without any -f flags
(except -fno-strict-aliasing) ?

Nicholas Clark

@p5pRT
Copy link
Author

p5pRT commented May 3, 2004

The RT System itself - Status changed from 'new' to 'open'

@p5pRT p5pRT closed this as completed May 31, 2008
@p5pRT
Copy link
Author

p5pRT commented May 31, 2008

p5p@spam.wizbit.be - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant