many (wrong ?) error messages with inspector-xe

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 :

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

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".

6 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

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

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

What versions of linux, fortran compiler, and inspector XE are you using?

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.

I forgot the Linux version :

debian squeeze 64bit

Computer : Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz

Laisser un commentaire

Veuillez ouvrir une session pour ajouter un commentaire. Pas encore membre ? Rejoignez-nous dès aujourd’hui