Unknown testsuite failure
Tobias Burnus
burnus@net-b.de
Tue Apr 29 15:48:00 GMT 2008
NightStrike wrote:
> Executing on mingw: /tmp/allocate_zerosize_3.exe.4981 (timeout = 300)
> Executing on mingw: rm -f /tmp/allocate_zerosize_3.exe.4981.o
> /tmp/allocate_zerosize_3.exe.4981 (timeout = 300)
> XYZ0ZYX
> FAIL: gfortran.dg/allocate_zerosize_3.f -O2 execution test
>
> The execution of the test fails, but there is no indication as to why
> it failed in the log. There is no XYZ return code. It just goes on to
> removing the file.
> How do I debug things like this?
>
Most likely some of the test fail and "abort()" is called. To test,
simply compile and run the program (best in e.g. a debugger; compile
then with "-g" and look at the backtrace, this shows where it failed).
However, the following is probably easier and more informative.
For testing it is best to replace:
IF (ILA1(J1) .NE. IVAL) call abort ()
by
IF (ILA1(J1) .NE. IVAL) print *, 'ILA1=',ILA1, 'IVAL=', IVAL, 'J1
= ',J1
and analogously for ILA2. It should print no line, but it probably
prints something which indicates an error. If nothing is printed, this
indicates some other problem such as a wrong memory access.
Tobias
More information about the Fortran
mailing list