<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic memory leaks using &amp;quot;heap_arrays&amp;quot; in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/memory-leaks-using-quot-heap-arrays-quot/m-p/878910#M74665</link>
    <description>The new "heap_arrays" option is great. But I'm noticing some occasional memory leaks which are quite serious. For instance, within a "where" block the program's memory usage suddenly begins to spike until it hits 4GB. The same thing happens while passing an array subset (using an array of indices) to a subroutine. These problems only occur when I build using the "heap_arrays" option.&lt;BR /&gt;&lt;BR /&gt;My application is a DLL being called by a larger program (SAS). Unfortunately I haven't been able to reproduce the problems with example code, even when I'm calling the exact subroutine where the trouble occurs. Not sure why -- maybe I need to put my test case inside a DLL (need some time to do this...). Until I can do this, I'm not sure if I should go to the trouble of submitting a bug report. Anyway, I'm curious to see if anyone else has been seeing similar things with heap_arrays.&lt;BR /&gt;</description>
    <pubDate>Wed, 12 Dec 2007 21:05:21 GMT</pubDate>
    <dc:creator>dlemmon1</dc:creator>
    <dc:date>2007-12-12T21:05:21Z</dc:date>
    <item>
      <title>memory leaks using "heap_arrays"</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/memory-leaks-using-quot-heap-arrays-quot/m-p/878910#M74665</link>
      <description>The new "heap_arrays" option is great. But I'm noticing some occasional memory leaks which are quite serious. For instance, within a "where" block the program's memory usage suddenly begins to spike until it hits 4GB. The same thing happens while passing an array subset (using an array of indices) to a subroutine. These problems only occur when I build using the "heap_arrays" option.&lt;BR /&gt;&lt;BR /&gt;My application is a DLL being called by a larger program (SAS). Unfortunately I haven't been able to reproduce the problems with example code, even when I'm calling the exact subroutine where the trouble occurs. Not sure why -- maybe I need to put my test case inside a DLL (need some time to do this...). Until I can do this, I'm not sure if I should go to the trouble of submitting a bug report. Anyway, I'm curious to see if anyone else has been seeing similar things with heap_arrays.&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Dec 2007 21:05:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/memory-leaks-using-quot-heap-arrays-quot/m-p/878910#M74665</guid>
      <dc:creator>dlemmon1</dc:creator>
      <dc:date>2007-12-12T21:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: memory leaks using "heap_arrays"</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/memory-leaks-using-quot-heap-arrays-quot/m-p/878911#M74666</link>
      <description>If you are using the Page File information from Task Manager then the information you see is the amount of virtualmemory your program walked on. It is not the amount of memory for program + allocations.</description>
      <pubDate>Wed, 12 Dec 2007 21:29:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/memory-leaks-using-quot-heap-arrays-quot/m-p/878911#M74666</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2007-12-12T21:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: memory leaks using "heap_arrays"</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/memory-leaks-using-quot-heap-arrays-quot/m-p/878912#M74667</link>
      <description>Thanks for the help. I'll be more clear. I am looking at the column "Memory (Private Working Set)" for the host process (sas.exe) in Task Manager under "Processes". In the debugger it's simply performing a simple "where" block operation for a fairly large array, and the amount of memory starts rapidly increasing by hundreds of megabytes until it runs out of memory. So something strange is happening. Also, in the other scenario I mentioned, I'm passing array subsets to a function (using an indexing array), and each time I call the subroutine, the "Memory (Private Working Set)" for sas.exe increases by several megabytes, but it is not freed up after the function exits. I've tried to reproduce this situation in a simple Fortran program but it doesn't happen...&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Dec 2007 22:18:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/memory-leaks-using-quot-heap-arrays-quot/m-p/878912#M74667</guid>
      <dc:creator>dlemmon1</dc:creator>
      <dc:date>2007-12-12T22:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: memory leaks using "heap_arrays"</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/memory-leaks-using-quot-heap-arrays-quot/m-p/878913#M74668</link>
      <description>You will not see the working set go down when memory is freed. That memory is still in your address space in a pool belonging to the memory allocator.&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Dec 2007 22:33:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/memory-leaks-using-quot-heap-arrays-quot/m-p/878913#M74668</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-12-12T22:33:33Z</dc:date>
    </item>
  </channel>
</rss>

