libgmp 4.3.1 coredumps during tests

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

This is a followup to :

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

LD_OPTIONS=-R/opt/csw/lib/amd64 -L/opt/csw/lib/amd64

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



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


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
/bin/bash: line 4: 29433 Abort                   (core dumped) ${dir}$tst
FAIL: t-import
wrong result data
    at data[26]  align=0
    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
make[4]: *** [check-TESTS] Error 1

looks like endian issues, same as last time.

dclarke at isis: find . -type f | grep core
dclarke at isis:

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

This is just an FYI.


Dennis Clarke

More information about the gmp-bugs mailing list