- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm trying to detect some errors in my program for memory leaks. When I compile my code with the default debug mode, it's ok. I have used static verification options and I obtained: 'error #12171, dereference of NULL pointer"H"...'. What does this error mean? The variable "H" has the following atribute: "REAL(KIND=8), ALLOCATABLE, TARGET"...
Moreover, using static verification options is the solution to detect memory leaks ?
Thanks.
I'm trying to detect some errors in my program for memory leaks. When I compile my code with the default debug mode, it's ok. I have used static verification options and I obtained: 'error #12171, dereference of NULL pointer"H"...'. What does this error mean? The variable "H" has the following atribute: "REAL(KIND=8), ALLOCATABLE, TARGET"...
Moreover, using static verification options is the solution to detect memory leaks ?
Thanks.
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It could be an incorrect message. Unfortunately, the static verifier, while it can be useful at times, also has a tendency to "cry wolf" a lot. The way I use it is to take a quick look at the error and if I can't easily see the problem myself, move on to the next.
I think that in your case that SV is not seeing the allocation of H.
Some people have successfully used valgrind to detect memory leaks in Fortran code.
I think that in your case that SV is not seeing the allocation of H.
Some people have successfully used valgrind to detect memory leaks in Fortran code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I try to solve a similar problem of memory leaks. What is valgrind? Do you have a reference, or URL? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - rase
I try to solve a similar problem of memory leaks. What is valgrind? Do you have a reference, or URL? Thanks.
There are similar products available for Windows, but usually not for free:
- Rational Purify Plus (http://www.ibm.com/developerworks/downloads/r/rpp/?S_TACT=105AGX28&S_CMP=TRIALS)
- Memory Validator (http://www.softwareverify.com/cpp/memory/index.html)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - jirina
Valgrind is a set of tools to detect memory management problems, to do profiling etc., but it is available only in Linux: http://valgrind.org/
There are similar products available for Windows, but usually not for free:
- Rational Purify Plus (http://www.ibm.com/developerworks/downloads/r/rpp/?S_TACT=105AGX28&S_CMP=TRIALS)
- Memory Validator (http://www.softwareverify.com/cpp/memory/index.html)
There are similar products available for Windows, but usually not for free:
- Rational Purify Plus (http://www.ibm.com/developerworks/downloads/r/rpp/?S_TACT=105AGX28&S_CMP=TRIALS)
- Memory Validator (http://www.softwareverify.com/cpp/memory/index.html)
I'm working on a Windows platform so I can't use Valgrind.
Thanks for the reference of Memory Validator! I have downloaded the evaluation version and it seems to be perfect to solve my problems of memory leaks!

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page