Compiling gmp, during make check, FAIL: t-scan

Ray Lauff crazed.husk at gmail.com
Fri Jun 3 16:35:02 UTC 2016


Received the following failure during a check of gmp-4.3.2 on a RedHat Linux 6.7 system.
	( Linux esg.temple.edu 2.6.32-573.8.1.el6.x86_64 #1 SMP Fri Sep 25 19:24:22 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux )


make  check-TESTS
make[4]: Entering directory '/usr/local/src/gcc-6.1.0/gmp-4.3.2/tests/mpz'
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
/bin/sh: line 4: 20777 Segmentation fault      (core dumped) ${dir}$tst
FAIL: 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
PASS: t-io_raw
PASS: t-import
PASS: t-export
PASS: t-pprime_p
PASS: t-nextprime
====================================
1 of 58 tests failed
Please report to gmp-bugs at gmplib.org
====================================



I recompiled the tests with -g and found the following with gdb.

If you need additional information from my system please let me know.


(gdb) run
Starting program: /usr/local/src/gcc-6.1.0/gmp-4.3.2/tests/mpz/.libs/lt-t-scan 

Program received signal SIGSEGV, Segmentation fault.
0x00000000004019b8 in check_ref () at t-scan.c:73
73                mpz_random2 (z, size);
(gdb) list
68        mpz_init (z);
69        for (test = 0; test < 5; test++)
70          {
71            for (size = 0; size < 5; size++)
72              {
73                mpz_random2 (z, size);
74      
75                for (neg = 0; neg <= 1; neg++)
76                  {
77                    if (neg)
(gdb) print z
$1 = {{_mp_alloc = 1, _mp_size = 0, _mp_d = 0x604a38}}
(gdb) print size
$2 = 0
(gdb) 




More information about the gmp-bugs mailing list