<?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 Invalid Address specified to RtlFreeHeap in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Invalid-Address-specified-to-RtlFreeHeap/m-p/866229#M8005</link>
    <description>&lt;P&gt;I'm using the MKL V10 implementation of dgelss&lt;BR /&gt;in a VS 2005 C++ project to fit some multi-&lt;BR /&gt;dimensional data to a linear model. This works&lt;BR /&gt;correctly, but for problems above a certain size, &lt;BR /&gt;VS issues a warning after the debug version has&lt;BR /&gt;exited.&lt;/P&gt;
&lt;P&gt;HEAP[CalTest.exe]: Invalid Address specified to&lt;BR /&gt;RtlFreeHeap( 00380000, 00382D48 ) &lt;BR /&gt;Windows has triggered a breakpoint in CalTest.exe.&lt;/P&gt;
&lt;P&gt;The release version does not complain and, either&lt;BR /&gt;way, the results seems to be correct. I am worried&lt;BR /&gt;that there might be a problem which is detected&lt;BR /&gt;only in the debug version.&lt;/P&gt;
&lt;P&gt;If I build the program with MKL V9, it runs without&lt;BR /&gt;any such warning. The VS output logs are shown&lt;BR /&gt;below. A visible difference is that the V10 build&lt;BR /&gt;seems to have two threads, and libimalloc.dll is &lt;BR /&gt;loaded and unloaded twice before the program ends.&lt;BR /&gt;I have a one processor system with two cores, and&lt;BR /&gt;no hyperthreading capability.&lt;/P&gt;
&lt;P&gt;Sorry about the long lines in this narrow window.&lt;/P&gt;
&lt;P&gt;&lt;MKL 9=""&gt;&lt;BR /&gt;Loaded '..CalibrationdebugCalTest.exe', Symbols loaded.&lt;BR /&gt;Loaded 'C:WINDOWSsystem32
tdll.dll', No symbols loaded.&lt;BR /&gt;Loaded 'C:WINDOWSsystem32kernel32.dll', No symbols loaded.&lt;BR /&gt;Loaded 'C:WINDOWSWinSxSx86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16cmsvcp80d.dll', Symbols loaded.&lt;BR /&gt;Loaded 'C:WINDOWSWinSxSx86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16cmsvcr80d.dll', Symbols loaded.&lt;BR /&gt;Loaded 'C:WINDOWSsystem32msvcrt.dll', No symbols loaded.&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL9.1.027ia32&amp;#8;inmkl_lapack.dll', Binary was not built with debug information.&lt;BR /&gt;Loaded 'C:WINDOWSsystem32msvcr71.dll', No symbols loaded.&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL9.1.027ia32&amp;#8;inlibguide40.dll', Binary was not built with debug information.&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL9.1.027ia32&amp;#8;inmkl_p4p.dll', Binary was not built with debug information.&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL9.1.027ia32&amp;#8;inlibimalloc.dll', Binary was not built with debug information.&lt;BR /&gt;Unloaded 'C:Program FilesIntelMKL9.1.027ia32&amp;#8;inlibimalloc.dll'&lt;BR /&gt;The program '[3888] CalTest.exe: Native' has exited with code 0 (0x0).&lt;/MKL&gt;&lt;/P&gt;
&lt;P&gt;&lt;MKL 10=""&gt;&lt;BR /&gt;Loaded '..CalibrationdebugCalTest.exe', Symbols loaded.&lt;BR /&gt;Loaded 'C:WINDOWSsystem32
tdll.dll', No symbols loaded.&lt;BR /&gt;Loaded 'C:WINDOWSsystem32kernel32.dll', No symbols loaded.&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL10.0.1.015ia32&amp;#8;inmkl_intel_thread.dll', Binary was not built with debug information.&lt;BR /&gt;Loaded 'C:WINDOWSsystem32msvcr71.dll', No symbols loaded.&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL10.0.1.015ia32&amp;#8;inlibguide40.dll', Binary was not built with debug information.&lt;BR /&gt;Loaded 'C:WINDOWSWinSxSx86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16cmsvcp80d.dll', Symbols loaded.&lt;BR /&gt;Loaded 'C:WINDOWSWinSxSx86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16cmsvcr80d.dll', Symbols loaded.&lt;BR /&gt;Loaded 'C:WINDOWSsystem32msvcrt.dll', No symbols loaded.&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL10.0.1.015ia32&amp;#8;inmkl_lapack.dll', Binary was not built with debug information.&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL10.0.1.015ia32&amp;#8;inmkl_p4p.dll', Binary was not built with debug information.&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL10.0.1.015ia32&amp;#8;inlibimalloc.dll', Binary was not built with debug information.&lt;BR /&gt;Unloaded 'C:Program FilesIn
telMKL10.0.1.015ia32&amp;#8;inlibimalloc.dll'&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL10.0.1.015ia32&amp;#8;inlibimalloc.dll', Binary was not built with debug information.&lt;BR /&gt;Unloaded 'C:Program FilesIntelMKL10.0.1.015ia32&amp;#8;inlibimalloc.dll'&lt;BR /&gt;The thread 'Win32 Thread' (0x220) has exited with code 0 (0x0).&lt;BR /&gt;The thread 'Win32 Thread' (0xbbc) has exited with code 0 (0x0).&lt;BR /&gt;HEAP[CalTest.exe]: Invalid Address specified to RtlFreeHeap( 00380000, 00382D48 )&lt;BR /&gt;Windows has triggered a breakpoint in CalTest.exe.&lt;BR /&gt;This may be due to a corruption of the heap, and indicates a bug in CalTest.exe or any of the DLLs it has loaded.&lt;BR /&gt;&lt;/MKL&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jan 2008 21:15:25 GMT</pubDate>
    <dc:creator>randoob1</dc:creator>
    <dc:date>2008-01-15T21:15:25Z</dc:date>
    <item>
      <title>Invalid Address specified to RtlFreeHeap</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Invalid-Address-specified-to-RtlFreeHeap/m-p/866229#M8005</link>
      <description>&lt;P&gt;I'm using the MKL V10 implementation of dgelss&lt;BR /&gt;in a VS 2005 C++ project to fit some multi-&lt;BR /&gt;dimensional data to a linear model. This works&lt;BR /&gt;correctly, but for problems above a certain size, &lt;BR /&gt;VS issues a warning after the debug version has&lt;BR /&gt;exited.&lt;/P&gt;
&lt;P&gt;HEAP[CalTest.exe]: Invalid Address specified to&lt;BR /&gt;RtlFreeHeap( 00380000, 00382D48 ) &lt;BR /&gt;Windows has triggered a breakpoint in CalTest.exe.&lt;/P&gt;
&lt;P&gt;The release version does not complain and, either&lt;BR /&gt;way, the results seems to be correct. I am worried&lt;BR /&gt;that there might be a problem which is detected&lt;BR /&gt;only in the debug version.&lt;/P&gt;
&lt;P&gt;If I build the program with MKL V9, it runs without&lt;BR /&gt;any such warning. The VS output logs are shown&lt;BR /&gt;below. A visible difference is that the V10 build&lt;BR /&gt;seems to have two threads, and libimalloc.dll is &lt;BR /&gt;loaded and unloaded twice before the program ends.&lt;BR /&gt;I have a one processor system with two cores, and&lt;BR /&gt;no hyperthreading capability.&lt;/P&gt;
&lt;P&gt;Sorry about the long lines in this narrow window.&lt;/P&gt;
&lt;P&gt;&lt;MKL 9=""&gt;&lt;BR /&gt;Loaded '..CalibrationdebugCalTest.exe', Symbols loaded.&lt;BR /&gt;Loaded 'C:WINDOWSsystem32
tdll.dll', No symbols loaded.&lt;BR /&gt;Loaded 'C:WINDOWSsystem32kernel32.dll', No symbols loaded.&lt;BR /&gt;Loaded 'C:WINDOWSWinSxSx86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16cmsvcp80d.dll', Symbols loaded.&lt;BR /&gt;Loaded 'C:WINDOWSWinSxSx86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16cmsvcr80d.dll', Symbols loaded.&lt;BR /&gt;Loaded 'C:WINDOWSsystem32msvcrt.dll', No symbols loaded.&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL9.1.027ia32&amp;#8;inmkl_lapack.dll', Binary was not built with debug information.&lt;BR /&gt;Loaded 'C:WINDOWSsystem32msvcr71.dll', No symbols loaded.&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL9.1.027ia32&amp;#8;inlibguide40.dll', Binary was not built with debug information.&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL9.1.027ia32&amp;#8;inmkl_p4p.dll', Binary was not built with debug information.&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL9.1.027ia32&amp;#8;inlibimalloc.dll', Binary was not built with debug information.&lt;BR /&gt;Unloaded 'C:Program FilesIntelMKL9.1.027ia32&amp;#8;inlibimalloc.dll'&lt;BR /&gt;The program '[3888] CalTest.exe: Native' has exited with code 0 (0x0).&lt;/MKL&gt;&lt;/P&gt;
&lt;P&gt;&lt;MKL 10=""&gt;&lt;BR /&gt;Loaded '..CalibrationdebugCalTest.exe', Symbols loaded.&lt;BR /&gt;Loaded 'C:WINDOWSsystem32
tdll.dll', No symbols loaded.&lt;BR /&gt;Loaded 'C:WINDOWSsystem32kernel32.dll', No symbols loaded.&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL10.0.1.015ia32&amp;#8;inmkl_intel_thread.dll', Binary was not built with debug information.&lt;BR /&gt;Loaded 'C:WINDOWSsystem32msvcr71.dll', No symbols loaded.&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL10.0.1.015ia32&amp;#8;inlibguide40.dll', Binary was not built with debug information.&lt;BR /&gt;Loaded 'C:WINDOWSWinSxSx86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16cmsvcp80d.dll', Symbols loaded.&lt;BR /&gt;Loaded 'C:WINDOWSWinSxSx86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16cmsvcr80d.dll', Symbols loaded.&lt;BR /&gt;Loaded 'C:WINDOWSsystem32msvcrt.dll', No symbols loaded.&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL10.0.1.015ia32&amp;#8;inmkl_lapack.dll', Binary was not built with debug information.&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL10.0.1.015ia32&amp;#8;inmkl_p4p.dll', Binary was not built with debug information.&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL10.0.1.015ia32&amp;#8;inlibimalloc.dll', Binary was not built with debug information.&lt;BR /&gt;Unloaded 'C:Program FilesIn
telMKL10.0.1.015ia32&amp;#8;inlibimalloc.dll'&lt;BR /&gt;Loaded 'C:Program FilesIntelMKL10.0.1.015ia32&amp;#8;inlibimalloc.dll', Binary was not built with debug information.&lt;BR /&gt;Unloaded 'C:Program FilesIntelMKL10.0.1.015ia32&amp;#8;inlibimalloc.dll'&lt;BR /&gt;The thread 'Win32 Thread' (0x220) has exited with code 0 (0x0).&lt;BR /&gt;The thread 'Win32 Thread' (0xbbc) has exited with code 0 (0x0).&lt;BR /&gt;HEAP[CalTest.exe]: Invalid Address specified to RtlFreeHeap( 00380000, 00382D48 )&lt;BR /&gt;Windows has triggered a breakpoint in CalTest.exe.&lt;BR /&gt;This may be due to a corruption of the heap, and indicates a bug in CalTest.exe or any of the DLLs it has loaded.&lt;BR /&gt;&lt;/MKL&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2008 21:15:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Invalid-Address-specified-to-RtlFreeHeap/m-p/866229#M8005</guid>
      <dc:creator>randoob1</dc:creator>
      <dc:date>2008-01-15T21:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Address specified to RtlFreeHeap</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Invalid-Address-specified-to-RtlFreeHeap/m-p/866230#M8006</link>
      <description>&lt;P&gt;[Clarification] The anomaly occurs only when I run&lt;BR /&gt;from VS by clicking "Start Debugging". If I click&lt;BR /&gt;"Start Without Debugging" or run from acmd window, &lt;BR /&gt;there is no anomaly. &lt;/P&gt;
&lt;P&gt;[Correction] It doesn't matter which program version&lt;BR /&gt;I use, Debug or Release, the behavior is the same.&lt;/P&gt;
&lt;P&gt;[News] The antics of libimalloc.dll are irrelevant.&lt;BR /&gt;If I make that DLL unavailable, by moving it to an&lt;BR /&gt;undisclosed location, the program behavior is &lt;BR /&gt;exactly as before except that libimalloc.dll is&lt;BR /&gt;never loaded.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;We are starting to see the same behavior in a &lt;BR /&gt;completely different program which uses MKL10 to do&lt;BR /&gt;Fourier transforms (DFTI interface). In this case,&lt;BR /&gt;the anomaly is intermittent instead of reproducible.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2008 16:32:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Invalid-Address-specified-to-RtlFreeHeap/m-p/866230#M8006</guid>
      <dc:creator>randoob1</dc:creator>
      <dc:date>2008-02-21T16:32:25Z</dc:date>
    </item>
  </channel>
</rss>

