gmp-6.1.2 test suite fails with core dump

Tomasz Kłoczko kloczko.tomasz at gmail.com
Fri Apr 5 04:43:32 UTC 2019


Hi,

Part of the "make check" output:

PASS: t-bin
PASS: t-get_d
../../test-driver: line 107: 32376 Aborted                 (core dumped)
"$@" > $log_file 2>&1
FAIL: t-get_d_2exp


[tkloczko at domek mpz]$ sh -x t-get_d_2exp
+ sed_quote_subst='s|\([`"$\\]\)|\\\1|g'
+ test -n ''
+ case `(set -o) 2>/dev/null` in
+ set -o posix
+ BIN_SH=xpg4
+ export BIN_SH
+ DUALCASE=1
+ export DUALCASE
+ unset CDPATH
+ relink_command=
+ test '' = '%%%MAGIC variable%%%'
+ test '' '!=' '%%%MAGIC variable%%%'
+ file=t-get_d_2exp
+ ECHO='printf %s\n'
+ lt_option_debug=
+ func_parse_lt_options t-get_d_2exp
+ lt_script_arg0=t-get_d_2exp
+ shift
+ test -n ''
++ printf '%s\n' t-get_d_2exp
++ /usr/bin/sed 's%/[^/]*$%%'
+ thisdir=t-get_d_2exp
+ test xt-get_d_2exp = xt-get_d_2exp
+ thisdir=.
++ ls -ld t-get_d_2exp
++ /usr/bin/sed -n 's/.*-> //p'
+ file=
+ test -n ''
+ WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=no
+ test no = yes
++ cd .
++ pwd
+ absdir=/home/tkloczko/rpmbuild/BUILD/gmp-6.1.2/tests/mpz
+ test -n /home/tkloczko/rpmbuild/BUILD/gmp-6.1.2/tests/mpz
+ thisdir=/home/tkloczko/rpmbuild/BUILD/gmp-6.1.2/tests/mpz
+ program=t-get_d_2exp
+ progdir=/home/tkloczko/rpmbuild/BUILD/gmp-6.1.2/tests/mpz/.libs
+ test -f
/home/tkloczko/rpmbuild/BUILD/gmp-6.1.2/tests/mpz/.libs/t-get_d_2exp
+ LD_LIBRARY_PATH=/home/tkloczko/rpmbuild/BUILD/gmp-6.1.2/.libs:
++ /usr/bin/sed 's/::*$//'
++ printf '%s\n' /home/tkloczko/rpmbuild/BUILD/gmp-6.1.2/.libs:
+ LD_LIBRARY_PATH=/home/tkloczko/rpmbuild/BUILD/gmp-6.1.2/.libs
+ export LD_LIBRARY_PATH
+ test '' '!=' '%%%MAGIC variable%%%'
+ func_exec_program
+ case " $* " in
+ func_exec_program_core
+ test -n ''
+ exec /home/tkloczko/rpmbuild/BUILD/gmp-6.1.2/tests/mpz/.libs/t-get_d_2exp
mpz_get_d_2exp wrong on 2**54-1
result out of range, expect 0.5 <= got < 1.0
   rnd_mode = 0
   data[i]  = 54
   z    =0x3FFFFFFFFFFFFF
   got  =[00 00 00 00 00 00 F0 3F] 1
   got exp  54
Aborted (core dumped)

[tkloczko at domek mpz]$
LD_LIBRARY_PATH=/home/tkloczko/rpmbuild/BUILD/gmp-6.1.2/.libs gdb
/home/tkloczko/rpmbuild/BUILD/gmp-6.1.2/tests/mpz/.libs/t-get_d_2exp
GNU gdb (GDB) Fedora 8.3.50.20190321-4.fc31
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from
/home/tkloczko/rpmbuild/BUILD/gmp-6.1.2/tests/mpz/.libs/t-get_d_2exp...
(gdb) r
Starting program:
/home/tkloczko/rpmbuild/BUILD/gmp-6.1.2/tests/mpz/.libs/t-get_d_2exp
Missing separate debuginfos, use: dnf debuginfo-install
glibc-2.29.9000-9.fc31.x86_64
mpz_get_d_2exp wrong on 2**54-1
result out of range, expect 0.5 <= got < 1.0
   rnd_mode = 0
   data[i]  = 54
   z    =0x3FFFFFFFFFFFFF
   got  =[00 00 00 00 00 00 F0 3F] 1
   got exp  54

Program received signal SIGABRT, Aborted.
0x00007ffff7d8fea5 in raise () from /lib64/libc.so.6
(gdb) bt full
#0  0x00007ffff7d8fea5 in raise () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007ffff7d7a8d5 in abort () from /lib64/libc.so.6
No symbol table info available.
#2  0x0000555555555648 in check_onebit () at t-get_d_2exp.c:81
        want = <optimized out>
        want_exp = <optimized out>
        i = <optimized out>
        z = {{_mp_alloc = 2, _mp_size = 1, _mp_d = 0x555555559cf8}}
        got = <optimized out>
        got_exp = 54
        data = <optimized out>
        z = <optimized out>
        got = <optimized out>
        want = <optimized out>
        got_exp = <optimized out>
        want_exp = <optimized out>
        i = <optimized out>
#3  main () at t-get_d_2exp.c:217
No locals.
(gdb)

Q: are you going to move gmp maybe to the git?
Frontends like githiub/gitlab makes way easier to maintain a projects
providing project BTS as well.

kloczek
-- 
Tomasz Kłoczko | LinkedIn: *http://lnkd.in/FXPWxH <http://lnkd.in/FXPWxH>*


More information about the gmp-bugs mailing list