- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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".
- Tags:
- CC++
- Debugging
- Development Tools
- Fortran
- Intel® Inspector
- Optimization
- Parallel Computing
- Vectorization
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
![](/skins/images/7FC17B7B85029576C25F1E43CE255B51/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page