Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)

Memory issues or not?

Scott-K
Beginner
358 Views

I'm working with a large FORTRAN codebase and running into what appears to be a large number of false positives. I'm working with the latest version of the compiler and Inspector, but I do not understand how I can refactor the code to remove these errors. Any help into understanding these issues would be appreciated.

RE:

------

Allocation site MEMORY LEAK

69 icount = 0

70 do

>71 read(73,*, end = 101, err = 102)

72 icount = icount + 1

73 enddo

-----

Allocation site, Read MEMORY LEAK

239 line = ' '

240

>241 OPEN(lun,FILE=file_str%file,STATUS='OLD',ACTION='READ',IOSTAT=ios)

242 IF( ios /= 0 )GOTO 9999

243


-----

Allocation site, Read UNINITIALIZED MEMORY ACCESS

22 !==== Open the file

23

>24 OPEN( UNIT=lunit,FILE=file,STATUS='OLD',ACTION='READ',IOSTAT=ios )

25 IF( ios /= 0 )THEN

26 nError = OP_ERROR

0 Kudos
1 Reply
Kirill_R_Intel
Employee
358 Views

Hi,

Is it possible to provide working sample of your application where the arguable errors can be found? Your results would be helpful as well. And please let me know the Inspector XEcommand line("Show command line" buttom from GUI).

You can make the thread private to secure your code samples. I'll try to reproduce them on my side and experiment with possible resolutions.

Regards,
Kirill

0 Kudos
Reply