Crash in FFT after updating

Crash in FFT after updating

We recently updated from MKL 9.0 to 10.0.1.015. I have updated my
header which handles linking (shown below). The program compiles,
links, and loads (it's a plug-in for another software). However,
when the FFT code is called, I get a crash. The code uses the
wrappers for FFTW3.

Unhandled exception at 0x112b781e (FloodSurf.dlo) in
3dsmax_minidump.dmp: 0xC0000005: Access violation reading location
0x00000000.

// ---- Use these for Intel MKL ----
#ifdef WIN64

//#pragma message( "Linking with C:/Program Files/Intel/MKL/9.0/em64t/lib/mkl_em64t.lib" )
//#pragma comment( lib, "C:/Program Files/Intel/MKL/9.0/em64t/lib/mkl_em64t.lib" )
//
//#pragma message( "Linking with C:/Program Files/Intel/MKL/9.0/em64t/lib/libguide.lib" )
//#pragma comment( lib, "C:/Program Files/Intel/MKL/9.0/em64t/lib/libguide.lib" )
//
//#pragma message( "Linking with C:/Program Files/Intel/MKL/9.0/em64t/lib/fftw3xc_ms.lib" )
//#pragma comment( lib, "C:/Program Files/Intel/MKL/9.0/em64t/lib/fftw3xc_ms.lib" )

#pragma message( "Linking with C:/Program Files/Intel/MKL/10.0.1.015/em64t/lib/fftw3xc_ms.lib" )
#pragma comment( lib, "C:/Program Files/Intel/MKL/10.0.1.015/em64t/lib/fftw3xc_ms.lib" )

#pragma message( "Linking with C:/Program Files/Intel/MKL/10.0.1.015/em64t/lib/mkl_intel_ilp64.lib" )
#pragma comment( lib, "C:/Program Files/Intel/MKL/10.0.1.015/em64t/lib/mkl_intel_ilp64.lib" )

#pragma message( "Linking with C:/Program Files/Intel/MKL/10.0.1.015/em64t/lib/mkl_sequential.lib" )
#pragma comment( lib, "C:/Program Files/Intel/MKL/10.0.1.015/em64t/lib/mkl_sequential.lib" )

#pragma message( "Linking with C:/Program Files/Intel/MKL/10.0.1.015/em64t/lib/mkl_core.lib" )
#pragma comment( lib, "C:/Program Files/Intel/MKL/10.0.1.015/em64t/lib/mkl_core.lib" )

#pragma message( "Linking with C:/Program Files/Intel/MKL/10.0.1.015/em64t/lib/libguide.lib" )
#pragma comment( lib, "C:/Program Files/Intel/MKL/10.0.1.015/em64t/lib/libguide.lib" )

#else

//#pragma message( "Linking with C:/Program Files/Intel/MKL/9.0/ia32/lib/mkl_c.lib" )
//#pragma comment( lib, "C:/Program Files/Intel/MKL/9.0/ia32/lib/mkl_c.lib" )
//
//#pragma message( "Linking with C:/Program Files/Intel/MKL/9.0/ia32/lib/mkl_ia32.lib" )
//#pragma comment( lib, "C:/Program Files/Intel/MKL/9.0/ia32/lib/mkl_ia32.lib" )
//
//#pragma message( "Linking with C:/Program Files/Intel/MKL/9.0/ia32/lib/libguide.lib" )
//#pragma comment( lib, "C:/Program Files/Intel/MKL/9.0/ia32/lib/libguide.lib" )
//
//#pragma message( "Linking with C:/Program Files/Intel/MKL/9.0/ia32/lib/fftw3xc_ms.lib" )
//#pragma comment( lib, "C:/Program Files/Intel/MKL/9.0/ia32/lib/fftw3xc_ms.lib" )

#pragma message( "Linking with C:/Program Files/Intel/MKL/10.0.1.015/ia32/lib/fftw3xc_ms.lib" )
#pragma comment( lib, "C:/Program Files/Intel/MKL/10.0.1.015/ia32/lib/fftw3xc_ms.lib" )

#pragma message( "Linking with C:/Program Files/Intel/MKL/10.0.1.015/ia32/lib/mkl_intel_c.lib" )
#pragma comment( lib, "C:/Program Files/Intel/MKL/10.0.1.015/ia32/lib/mkl_intel_c.lib" )

#pragma message( "Linking with C:/Program Files/Intel/MKL/10.0.1.015/ia32/lib/mkl_sequential.lib" )
#pragma comment( lib, "C:/Program Files/Intel/MKL/10.0.1.015/ia32/lib/mkl_sequential.lib" )

#pragma message( "Linking with C:/Program Files/Intel/MKL/10.0.1.015/ia32/lib/mkl_core.lib" )
#pragma comment( lib, "C:/Program Files/Intel/MKL/10.0.1.015/ia32/lib/mkl_core.lib" )

//#pragma message( "Linking with C:/Program Files/Intel/MKL/10.0.1.015/ia32/lib/libguide40.lib" )
//#pragma comment( lib, "C:/Program Files/Intel/MKL/10.0.1.015/ia32/lib/libguide40.lib" )

#endif

//#include "C:/Program Files/Intel/MKL/9.0/include/fftw/fftw3.h"
#include "C:/Program Files/Intel/MKL/10.0.1.015/include/fftw/fftw3.h"

//---- End Intel MKL -----

STACK DUMP
FloodSurf.dlo!_mkl_serv_allocate() + 0x1e bytes C
00000021()
FloodSurf.dlo!_fftw_plan_dft_c2r_2d() + 0x94 bytes C

FloodSurf.dlo!frantic::simulation::floodsurf_ocean_generator::init_waves()
+ 0xdd bytes C++
FloodSurf.dlo!FloodSurfNode::Update() + 0x580 bytes C++
FloodSurf.dlo!FloodSurfMod::ModifyObject() + 0x1d7 bytes C++
core.dll!65166513()
[Frames below may be incorrect and/or missing, no symbols loaded for core.dll]
core.dll!65166fc2()
core.dll!651675da()
core.dll!65166294()
core.dll!651677ef()
core.dll!651655bb()
core.dll!6516b869()
3dsmax9_real.exe!0050cbdb()
3dsmax9_real.exe!005893cb()
3dsmax9_real.exe!005894f6()
3dsmax9_real.exe!0043de38()
3dsmax9_real.exe!004466d8()
3dsmax9_real.exe!00453310()
3dsmax9_real.exe!00453318()
3dsmax9_real.exe!00459dba()
3dsmax9_real.exe!0057ffeb()
3dsmax9_real.exe!005803e0()
3dsmax9_real.exe!005827a0()
3dsmax9_real.exe!00582af4()
user32.dll!7d95a28a()
3dsmax9_real.exe!00583056()
3dsmax9_real.exe!004067c9()
user32.dll!7d969b90()
user32.dll!7d9538e0()
user32.dll!7d9538ef()
user32.dll!7d9538ef()
ntdll.dll!7d61c839()
user32.dll!7d954a03()
&nbs
p; ntdll.dll!7d61ea0e()
user32.dll!7d969b3a()
user32.dll!7d95d3ec()
3dsmax9_real.exe!00410658()
ntdll.dll!7d630a5d()
gdi32.dll!7d815069()
user32.dll!7d947d00()
user32.dll!7d94969f()
comctl32.dll!7755c139()
ntdll.dll!7d61ca01()
ntdll.dll!7d623873()
ntdll.dll!7d62364b()
ntdll.dll!7d6215aa()
ntdll.dll!7d61f784()
ntdll.dll!7d625108()
ntdll.dll!7d62510f()
ntdll.dll!7d62510f()
ntdll.dll!7d6264f3()
ntdll.dll!7d62682d()
ntdll.dll!7d6215aa()
ntdll.dll!7d61f784()
> msvcr80.dll!_encode_pointer(void * ptr=0x0025ae60) Line 150 + 0x6 bytes C
msvcr80.dll!_encoded_null() Line 175 C
msvcr80.dll!_unlock(int locknum=2015116160) Line 376 C
msvcr80.dll!_unlock(int locknum=1708) Line 376 C
00000004()
msvcr80.dll!_msize(void * pblock=0x0303b2a8) Line 88 + 0xe bytes C
msvcr80.dll!_encode_pointer(void * ptr=0x781c3bc8) Line 150 + 0x6 bytes C
msvcr80.dll!_unlock(int locknum=8) Line 376 C
msvcr80.dll!_unlockexit() Line 760 + 0x7 bytes C
msvcr80.dll!_onexit(int (void)* func=0x00000000) Line 94 + 0x5 bytes C
00000004()
msvcr80.dll!_msize(void * pblock=0x00400000) Line 88 + 0xe bytes C
3dsmax9_real.exe!0077ce05()
kernel32.dll!7d4e6e1a()

Thanks for your help.
-- James --

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.