libgmp 4.3.1 coredumps during tests

Dennis Clarke dclarke at blastwave.org
Tue Jun 9 23:32:22 CEST 2009


This is a followup to :

   http://gmplib.org/list-archives/gmp-bugs/2009-April/001338.html

Before going anyfurther, just be advised that I already know that GCC
4.3.3 can build all this and it passes all tests.

However, if you use Solaris 10 on a 64-bit x86 platform, and you use
Studio Express thus :

dclarke at isis: cc -V
cc: Sun Ceres C 5.10 SunOS_i386 2009/03/06
usage: cc [ options] files.  Use 'cc -flags' for details
dclarke at isis: CC -V
CC: Sun Ceres C++ 5.10 SunOS_i386 2009/03/06
Usage: CC [ options ] files.  Use 'CC -flags' for details

CPPFLAGS=-I/opt/csw/include
LD_OPTIONS=-R/opt/csw/lib/amd64 -L/opt/csw/lib/amd64
LC_ALL=C

CXXFLAGS=-m64 -xarch=sse2 -norunpath -R/opt/csw/lib/amd64
-L/opt/csw/lib/amd64 -g -xs -D_TS_ERRNO

PATH=/opt/SSX0903/bin:/opt/csw/bin:/usr/xpg4/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin

LC_MESSAGES=C
LANG=C
TZ=GMT0
CXX=/opt/SSX0903/bin/CC
HOME=/export/home/dclarke

CFLAGS=-erroff=%all -g -m64 -xtarget=sse2 -nofstore -Qy -Xa
-xbuiltin=%none -xmodel=medium -xnolibmil -xnolibmopt -Kpic
-xregs=no%frameptr -xs -xstrconst -D_TS_ERRNO

CC=/opt/SSX0903/bin/cc

so after all is built .. run make check :

PASS: t-addsub
PASS: t-cmp
PASS: t-mul
PASS: t-mul_i
PASS: t-tdiv
PASS: t-tdiv_ui
PASS: t-fdiv
PASS: t-fdiv_ui
PASS: t-cdiv_ui
PASS: t-gcd
PASS: t-gcd_ui
PASS: t-lcm
PASS: dive
PASS: dive_ui
PASS: t-sqrtrem
PASS: convert
PASS: io
PASS: t-inp_str
PASS: logic
PASS: bit
PASS: t-powm
PASS: t-powm_ui
PASS: t-pow
PASS: t-div_2exp
PASS: reuse
PASS: t-root
PASS: t-perfsqr
PASS: t-perfpow
PASS: t-jac
PASS: t-bin
PASS: t-get_d
PASS: t-get_d_2exp
PASS: t-get_si
PASS: t-set_d
PASS: t-set_si
PASS: t-fac_ui
PASS: t-fib_ui
PASS: t-lucnum_ui
PASS: t-scan
PASS: t-fits
PASS: t-divis
PASS: t-divis_2exp
PASS: t-cong
PASS: t-cong_2exp
PASS: t-sizeinbase
PASS: t-set_str
PASS: t-aorsmul
PASS: t-cmp_d
PASS: t-cmp_si
PASS: t-hamdist
PASS: t-oddeven
PASS: t-popcount
PASS: t-set_f
check_in: result wrong
  i=1 zeros=0 neg=0
  got_ret  5
  want_ret 5
  got      =0x8100000000000000
  want     =0x81
/bin/bash: line 4: 29413 Abort                   (core dumped) ${dir}$tst
FAIL: t-io_raw
wrong at data[25]
    count=3 order=1  size=8 endian=1 nail=0  align=0
    got =0x44003300220011008800770066005500CC00BB00AA00990
    want=0x100120023003400450056006700780089009A00AB00BC00C
/bin/bash: line 4: 29433 Abort                   (core dumped) ${dir}$tst
FAIL: t-import
wrong result data
    at data[26]  align=0
    src "0x100120023003400450056006700780089009A00AB00BC00C"
    src=0x100120023003400450056006700780089009A00AB00BC00C
    order=1  size=8 endian=1 nail=0
    want count 3
    got count  3
    want 0x10, 0x01, 0x20, 0x02, 0x30, 0x03, 0x40, 0x04, 0x50, 0x05, 0x60,
0x06, 0x70, 0x07, 0x80, 0x08, 0x90, 0x09, 0xA0, 0x0A, 0xB0, 0x0B,
0xC0, 0x0C,
    got  0x04, 0x40, 0x03, 0x30, 0x02, 0x20, 0x01, 0x10, 0x08, 0x80, 0x07,
0x70, 0x06, 0x60, 0x05, 0x50, 0x0C, 0xC0, 0x0B, 0xB0, 0x0A, 0xA0,
0x09, 0x90,
/bin/bash: line 4: 29453 Abort                   (core dumped) ${dir}$tst
FAIL: t-export
PASS: t-pprime_p
PASS: t-nextprime
====================================
3 of 58 tests failed
Please report to gmp-bugs at gmplib.org
====================================
make[4]: *** [check-TESTS] Error 1

looks like endian issues, same as last time.

dclarke at isis: find . -type f | grep core
./tests/mpz/core.t-import.isis_global_i86pc.16411:101.1244579455.29433
./tests/mpz/core.t-io_raw.isis_global_i86pc.16411:101.1244579455.29413
./tests/mpz/core.t-export.isis_global_i86pc.16411:101.1244579456.29453
dclarke at isis:

there they are , the same core dumps as last time.

This is just an FYI.

Dennis


-- 
Dennis Clarke



More information about the gmp-bugs mailing list