Community
cancel
Showing results for 
Search instead for 
Did you mean: 
lcoul
Beginner
104 Views

many (wrong ?) error messages with inspector-xe

I try to use inspector-xe to find mistakes in a quite large Fortran/C software. But I get many memory mistakes which I don't understand. Most of the time : "memory leaks",  "Missing allocation" or "Invalid partial memory access". But I am unable to fix the problems.

For instance, in case of "Missing allocation", the explanation says that one tries to deallocate twice a same array or that a pointer is invalid. But in most of my programs, there is no DEALLOCATE statements because  ! use the automatic deallocation feature of F95 at the end of procedures.

As demonstration of these inaccurate error messages, look at the following very short program :

[fortran]

PROGRAM main
  CHARACTER(255) string
  WRITE(string,"(I0)") 1234
  WRITE(*,*) string
END PROGRAM

[/fortran]

Inspector-xe indicates here that a memory leak occurs at the line 3. In more complicated programs, in the same situation (writing an integer value into a string), I often gets an "Invalid partial memory access" instead of a "Memory leak".

0 Kudos
5 Replies
Peter_W_Intel
Employee
104 Views

Here are results, I used your example code: # ifort --version ifort (IFORT) 13.0.0 20120731 Copyright (C) 1985-2012 Intel Corporation. All rights reserved. # inspxe-cl -version Intel(R) Inspector XE 2013 Update 2 (build 250094) Command Line tool Copyright (C) 2009-2012 Intel Corporation. All rights reserved. # ifort -debug full simple.f90 -o simple # inspxe-cl -collect mi3 -- ./simple Used suppression file(s): 1234 0 new problem(s) found
lcoul
Beginner
104 Views

Sorry but I don't get the same result as you : coul@b10p5001:~/test$ ifort -g t69.f90 coul@b10p5001:~/test$ inspxe-cl -collect mi3 -- ./a.out Used suppression file(s): 1234 1 new problem(s) found 1 Memory not deallocated problem(s) detected
Mark_D_Intel
Employee
104 Views

What versions of linux, fortran compiler, and inspector XE are you using?
lcoul
Beginner
104 Views

coul@b10p5001:~/MDB/Tools$ ifort --version ifort (IFORT) 13.0.0 20120731 Copyright (C) 1985-2012 Intel Corporation. All rights reserved. coul@b10p5001:~/MDB/Tools$ inspxe-cl --version Intel(R) Inspector XE 2013 (build 242865) Command Line tool Copyright (C) 2009-2012 Intel Corporation. All rights reserved.
lcoul
Beginner
104 Views

I forgot the Linux version : debian squeeze 64bit Computer : Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz
Reply