Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
6981 Discussions

HEAP[testmklc.exe]: Invalid Address specified to RtlFreeHeap

srususoftwin_ro
Beginner
472 Views

Hello,

Im using Intel MKL version 10.0.2.019 andI compiled in debug mode the following code:

#include "fftw\\rfftw.h"

int main()

{

rfftwnd_plan forwardPlan = 0;

int buffLength = 8192;

forwardPlan = rfftwnd_create_plan(1,

&buffLength,

FFTW_FORWARD,

FFTW_ESTIMATE);

return 0;

}

As additional dependencies of the linker,I added: fftw2xc_ms.lib mkl_intel_c_dll.lib mkl_intel_thread_dll.lib mkl_core_dll.lib.

If a choose Start Debugging from Visual Studio 2005, Im getting this error in output:

'testmklc.exe': Loaded 'D:\\Teste\\testmklc\\Debug\\testmklc.exe', Symbols loaded.

'testmklc.exe': Loaded 'C:\\WINDOWS\\system32\\ntdll.dll', No symbols loaded.

'testmklc.exe': Loaded 'C:\\WINDOWS\\system32\\kernel32.dll', No symbols loaded.

'testmklc.exe': Loaded 'C:\\Program Files\\Intel\\MKL\\10.0.2.019\\ia32\\bin\\mkl_intel_thread.dll', Binary was not built with debug information.

'testmklc.exe': Loaded 'C:\\WINDOWS\\system32\\msvcr71.dll', Symbols loaded.

'testmklc.exe': Loaded 'C:\\Program Files\\Intel\\MKL\\10.0.2.019\\ia32\\bin\\libguide40.dll', Binary was not built with debug information.

'testmklc.exe': Loaded 'C:\\Program Files\\Intel\\MKL\\10.0.2.019\\ia32\\bin\\mkl_p4m.dll', Binary was not built with debug information.

'testmklc.exe': Loaded 'C:\\Program Files\\Intel\\MKL\\10.0.2.019\\ia32\\bin\\libimalloc.dll', Binary was not built with debug information.

'testmklc.exe': Unloaded 'C:\\Program Files\\Intel\\MKL\\10.0.2.019\\ia32\\bin\\libimalloc.dll'

HEAP[testmklc.exe]: Invalid Address specified to RtlFreeHeap( 00390000, 00395D70 )

Windows has triggered a breakpoint in testmklc.exe.

This may be due to a corruption of the heap, and indicates a bug in testmklc.exe or any of the DLLs it has loaded.

The output window may have more diagnostic information

Here is the call stack:

ntdll.dll!7c90120e()

[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]

ntdll.dll!7c96e139()

ntdll.dll!7c96e576()

ntdll.dll!7c96f75e()

ntdll.dll!7c96f8cc()

ntdll.dll!7c94bc4c()

ntdll.dll!7c927784()

ntdll.dll!7c918f21()

ntdll.dll!7c94bc4c()

ntdll.dll!7c91005d()

ntdll.dll!7c910435()

ntdll.dll!7c91043e()

ntdll.dll!7c92770a()

ntdll.dll!7c927784()

ntdll.dll!7c927784()

ntdll.dll!7c927573()

ntdll.dll!7c91005d()

ntdll.dll!7c927573()

ntdll.dll!7c96e5df()

ntdll.dll!7c96f8e8()

ntdll.dll!7c96f8cc()

ntdll.dll!7c91005d()

> msvcr71.dll!free(void * pBlock=0x00390000) Line 103 C

msvcr71.dll!free(void * pBlock=0x00395d70) Line 103 C

mkl_p4m.dll!00471074()

mkl_p4m.dll!0047103b()

mkl_p4m.dll!004728b3()

......



If I choose Start without debugging there is no anomaly.

Pls help me.

Thanks in advance.
Sorin

0 Kudos
3 Replies
Gennady_F_Intel
Moderator
472 Views
Sorin,
if you linked with threaded lib's, then you have to addlibiomp5md.lib or libguide40.lib. Isn't it? See more Linking Examples into User's guide.
--Gennady
0 Kudos
srususoftwin_ro
Beginner
472 Views

Gennady,

Thank you for your answer. I tried also to add libiomp5md.lib or libguide40.lib but the result is the same. :(

Sorin

0 Kudos
Gennady_F_Intel
Moderator
472 Views
I have no installed VS2005 at this moment but I checked your test with 2008 and MKL 10.2 update5.
no problems with/without Debug mode.
I used the same linking line.
'test.exe': Loaded 'C:\D\_QuAD\Forum_MKL\76273\Debug\test.exe', Symbols loaded.
'test.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll'
'test.exe': Loaded 'C:\APPS\Intel\MKL\10.2.5\ia32\bin\mkl_intel_thread.dll', Binary was not built with debug information.
'test.exe': Loaded 'C:\Windows\SysWOW64\msvcr71.dll'
'test.exe': Loaded 'C:\APPS\Intel\MKL\10.2.5\ia32\bin\mkl_core.dll', Binary was not built with debug information.
'test.exe': Loaded 'C:\APPS\Intel\MKL\10.2.5\ia32\bin\libiomp5md.dll'
'test.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll', Symbols loaded.
'test.exe': Loaded 'C:\Windows\SysWOW64\apphelp.dll'
'test.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\user32.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\userenv.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\winspool.drv'
'test.exe': Loaded 'C:\Windows\SysWOW64\mpr.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll'
'test.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll'
'test.exe': Loaded 'C:\APPS\Intel\MKL\10.2.5\ia32\bin\mkl_p4m.dll', Binary was not built with debug information.
'test.exe': Loaded 'C:\APPS\Intel\MKL\10.2.5\ia32\bin\libimalloc.dll'
'test.exe': Unloaded 'C:\APPS\Intel\MKL\10.2.5\ia32\bin\libimalloc.dll'
'test.exe': Loaded 'C:\D\_QuAD\Forum_MKL\76273\Debug\test.exe', Symbols loaded.'test.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll''test.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll''test.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll''test.exe': Loaded 'C:\APPS\Intel\MKL\10.2.5\ia32\bin\mkl_intel_thread.dll', Binary was not built with debug information.'test.exe': Loaded 'C:\Windows\SysWOW64\msvcr71.dll''test.exe': Loaded 'C:\APPS\Intel\MKL\10.2.5\ia32\bin\mkl_core.dll', Binary was not built with debug information.'test.exe': Loaded 'C:\APPS\Intel\MKL\10.2.5\ia32\bin\libiomp5md.dll''test.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll', Symbols loaded.'test.exe': Loaded 'C:\Windows\SysWOW64\apphelp.dll''test.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll''test.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll''test.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll''test.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll''test.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll''test.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll''test.exe': Loaded 'C:\Windows\SysWOW64\user32.dll''test.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll''test.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll''test.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll''test.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll''test.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll''test.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll''test.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll''test.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll''test.exe': Loaded 'C:\Windows\SysWOW64\userenv.dll''test.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll''test.exe': Loaded 'C:\Windows\SysWOW64\winspool.drv''test.exe': Loaded 'C:\Windows\SysWOW64\mpr.dll''test.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll''test.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll''test.exe': Loaded 'C:\APPS\Intel\MKL\10.2.5\ia32\bin\mkl_p4m.dll', Binary was not built with debug information.'test.exe': Loaded 'C:\APPS\Intel\MKL\10.2.5\ia32\bin\libimalloc.dll''test.exe': Unloaded 'C:\APPS\Intel\MKL\10.2.5\ia32\bin\libimalloc.dll'
'test.exe': Loaded 'C:\D\_QuAD\Forum_MKL\76273\Debug\test.exe', Symbols loaded.'test.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll''test.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll''test.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll''test.exe': Loaded 'C:\APPS\Intel\MKL\10.2.5\ia32\bin\mkl_intel_thread.dll', Binary was not built with debug information.'test.exe': Loaded 'C:\Windows\SysWOW64\msvcr71.dll''test.exe': Loaded 'C:\APPS\Intel\MKL\10.2.5\ia32\bin\mkl_core.dll', Binary was not built with debug information.'test.exe': Loaded 'C:\APPS\Intel\MKL\10.2.5\ia32\bin\libiomp5md.dll''test.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll', Symbols loaded.'test.exe': Loaded 'C:\Windows\SysWOW64\apphelp.dll''test.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll''test.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll''test.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll''test.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll''test.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll''test.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll''test.exe': Loaded 'C:\Windows\SysWOW64\user32.dll''test.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll''test.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll''test.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll''test.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll''test.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll''test.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll''test.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll''test.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll''test.exe': Loaded 'C:\Windows\SysWOW64\userenv.dll''test.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll''test.exe': Loaded 'C:\Windows\SysWOW64\winspool.drv''test.exe': Loaded 'C:\Windows\SysWOW64\mpr.dll''test.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll''test.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll''test.exe': Loaded 'C:\APPS\Intel\MKL\10.2.5\ia32\bin\mkl_p4m.dll', Binary was not built with debug information.'test.exe': Loaded 'C:\APPS\Intel\MKL\10.2.5\ia32\bin\libimalloc.dll''test.exe': Unloaded 'C:\APPS\Intel\MKL\10.2.5\ia32\bin\libimalloc.dll'
0 Kudos
Reply