Memory issues or not?

Memory issues or not?

imagem de Scott-K

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

2 posts / 0 new
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.
imagem de Kirill Rogozhin (Intel)

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

Faça login para deixar um comentário.