On Tue, 1 Feb 2022, Toon Moene wrote:

I just ran a "ubsan" build on my x86_64-linux-gnu system.

See: https://gcc.gnu.org/pipermail/gcc-testresults/2022-February/754454.html

This is an interesting failure:

Executing on host: /home/toon/scratch/bld1142336/gcc/testsuite/gfortran29/../../gfortran -B/home/toon/scratch/bld1142336/gcc/testsuite/gfortran29/../../ -B/home/toon/scratch/bld1142336/x86_64-pc-linux-gnu/./libgfortran/ /home/toon/compilers/gcc/gcc/testsuite/gfortran.dg/graphite/pr39516.f -fdiagnostics-plain-output -fdiagnostics-plain-output -O -O2 -ftree-loop-linear -S -o pr39516.s (timeout = 300) spawn -ignore SIGHUP /home/toon/scratch/bld1142336/gcc/testsuite/gfortran29/../../gfortran -B/home/toon/scratch/bld1142336/gcc/testsuite/gfortran29/../../ -B/home/toon/scratch/bld1142336/x86_64-pc-linux-gnu/./libgfortran/ /home/toon/compilers/gcc/gcc/testsuite/gfortran.dg/graphite/pr39516.f -fdiagnostics-plain-output -fdiagnostics-plain-output -O -O2 -ftree-loop-linear -S -o pr39516.s gcd_1.c:188:13: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int'
FAIL: gfortran.dg/graphite/pr39516.f   -O  (test for excess errors)
Excess errors:
gcd_1.c:188:13: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int'

Note that the test case is pure Fortran source. The undefined error seems to come from a function inside the graphite library ...

Maybe try with a more recent version of GMP first? gcd_1.c has only 103 lines in release 6.2.1.

A stack trace (UBSAN_OPTIONS=print_stacktrace=1) would make it easier to guess where this is coming from.

--
Marc Glisse

Reply via email to