gmp 5.0.2 test failures on ultrasparc2-unknown-linux-gnu

Bruno Haible bruno at clisp.org
Tue Jan 17 01:51:05 CET 2012


Torbjorn Granlund wrote:
> We can only guess what might be wrong when you leave out central
> information.  Please read this before reporting GMP bugs:
> 
> https://gmplib.org/manual/Reporting-Bugs.html

Here are the details that you ask for:

* The GMP version number, and if pre-packaged or patched then say so.

GMP 5.0.2. Only modification is to use libtool 2.4.2. (See the message
"gmp fails to configure when I pass --host" for the recipe.)

* A test program that makes it possible for us to reproduce the bug.
  Include instructions on how to run the program.

The test programs are tests/mpz/reuse and tests/mpz/t-root, generated
in the build tree by running "make" in gmp-5.0.2.

The programs are run through
  $ cd tests/mpz; make check TESTS="reuse t-root"

* A description of what is wrong. If the results are incorrect, in what way.
  If you get a crash, say so.

The messages "GNU MP assertion failed" indicate an assertion failure,
that calls abort().

* If you get a crash, include a stack backtrace from the debugger if it's
  informative (`where' in gdb, or `$C' in adb).

$ ../../libtool --mode=execute gdb reuse
GNU gdb 6.8-debian
Copyright (C) 2008 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 "sparc-linux-gnu"...
(gdb) run
Starting program: /home/haible/multibuild-1611/linuxsparc32/gmp-5.0.2/tests/mpz/.libs/lt-reuse 
rootrem.c:339: GNU MP assertion failed: bn >= qn

Program received signal SIGABRT, Aborted.
0xf7e1374c in raise () from /lib/libc.so.6
(gdb) where
#0  0xf7e1374c in raise () from /lib/libc.so.6
#1  0xf7e15258 in abort () from /lib/libc.so.6
#2  0xf7f58ce8 in __gmp_assert_fail () from /home/haible/multibuild-1611/linuxsparc32/gmp-5.0.2/.libs/libgmp.so.10
#3  0xf7f80b68 in mpn_rootrem_internal () from /home/haible/multibuild-1611/linuxsparc32/gmp-5.0.2/.libs/libgmp.so.10
#4  0xf7f80f4c in __gmpn_rootrem () from /home/haible/multibuild-1611/linuxsparc32/gmp-5.0.2/.libs/libgmp.so.10
#5  0xf7f70f38 in __gmpz_rootrem () from /home/haible/multibuild-1611/linuxsparc32/gmp-5.0.2/.libs/libgmp.so.10
#6  0x000134e0 in main ()

$ ../../libtool --mode=execute gdb t-root
GNU gdb 6.8-debian
Copyright (C) 2008 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 "sparc-linux-gnu"...
(gdb) run
Starting program: /home/haible/multibuild-1611/linuxsparc32/gmp-5.0.2/tests/mpz/.libs/lt-t-root 
rootrem.c:339: GNU MP assertion failed: bn >= qn

Program received signal SIGABRT, Aborted.
0xf7e1374c in raise () from /lib/libc.so.6
(gdb) where
#0  0xf7e1374c in raise () from /lib/libc.so.6
#1  0xf7e15258 in abort () from /lib/libc.so.6
#2  0xf7f58ce8 in __gmp_assert_fail () from /home/haible/multibuild-1611/linuxsparc32/gmp-5.0.2/.libs/libgmp.so.10
#3  0xf7f80b68 in mpn_rootrem_internal () from /home/haible/multibuild-1611/linuxsparc32/gmp-5.0.2/.libs/libgmp.so.10
#4  0xf7f80f4c in __gmpn_rootrem () from /home/haible/multibuild-1611/linuxsparc32/gmp-5.0.2/.libs/libgmp.so.10
#5  0xf7f70f38 in __gmpz_rootrem () from /home/haible/multibuild-1611/linuxsparc32/gmp-5.0.2/.libs/libgmp.so.10
#6  0x0001164c in check_one ()
#7  0x00011b08 in main ()

* Please do not send core dumps, executables or straces.

* The configuration options you used when building GMP, if any.

Configured with options
  '--prefix=/home/haible/prefix-linux-sparc32' 'NM=nm' 'ABI=32' 'CPPFLAGS=-Wall'

* The name of the compiler and its version. For gcc, get the version with
  `gcc -v', otherwise perhaps `what `which cc`', or similar.

$ gcc -v
Using built-in specs.
Target: sparc-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --with-cpu=v8 --with-long-double-128 --enable-checking=release --build=sparc-linux-gnu --host=sparc-linux-gnu --target=sparc-linux-gnu
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1.1) 

* The output from running `uname -a'.

$ uname -srm
Linux 2.6.26-2-sparc64 sparc64

* The output from running `./config.guess', and from running
  `./configfsf.guess' (might be the same).

The latter file is not executable.

$ ./config.guess 
ultrasparc2-unknown-linux-gnu
$ ./configfsf.guess
-bash: ./configfsf.guess: Permission denied
$ sh ./configfsf.guess
sparc64-unknown-linux-gnu

* If the bug is related to `configure', then the compressed contents of
  config.log.

It is most probably not related to configure.

* If the bug is related to an asm file not assembling, then the contents
 of config.m4 and the offending line or lines from the temporary
 mpn/tmp-<file>.s.

N/A

Bruno



More information about the gmp-bugs mailing list