Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

Traceback truncated unless /Od is in effect

$
0
0

The following test program, when run on a file with fewer lines (2) than the program tries to read (3), gives an incomplete traceback if, in addition to the /traceback option, the /Od option is also specified.

program maj
  integer i,j
  dimension x(3)

  call readfil(x)

end

subroutine readfil(x)
  dimension x(*)
  open(unit=11,file='inp.txt',status='old')
  do i=1,3
    read(11,*)x(i)
  end do
  return
end

The input data file contents (for example) :

10.1
11.2

The traceback from 14.0.4.237, 15.0.0.108 when /Od is not used:

forrtl: severe (24): end-of-file during read, unit 11, file S:\lang\inp.txt
Image              PC                Routine            Line        Source
libifcoremd.dll    00007FF92DB7C352  Unknown               Unknown  Unknown
libifcoremd.dll    00007FF92DBCDD39  Unknown               Unknown  Unknown
tbk.exe            00007FF7DD771151  MAIN__                      5  tbk.f90
tbk.exe            00007FF7DD771F5E  Unknown               Unknown  Unknown
tbk.exe            00007FF7DD772307  Unknown               Unknown  Unknown
KERNEL32.DLL       00007FF93CDD16AD  Unknown               Unknown  Unknown
ntdll.dll          00007FF93EE434A5  Unknown               Unknown  Unknown

The traceback when /traceback /Od is used:

forrtl: severe (24): end-of-file during read, unit 11, file S:\lang\inp.txt
Image              PC        Routine            Line        Source
libifcoremd.dll    5EA5C64A  Unknown               Unknown  Unknown
tbk.exe            009E10F6  _READFIL                   13  tbk.f90
tbk.exe            009E1029  _MAIN__                     5  tbk.f90
tbk.exe            009E1172  Unknown               Unknown  Unknown
tbk.exe            009E2031  Unknown               Unknown  Unknown
KERNEL32.DLL       754D919F  Unknown               Unknown  Unknown
ntdll.dll          772CA22B  Unknown               Unknown  Unknown
ntdll.dll          772CA201  Unknown               Unknown  Unknown

If this is the intended behavior, the documentation of /traceback should make it clear that if the user desires a full traceback the /Od option should also be specified.


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>