Stack overflow before debugging main function in amd64
I have a working 32 bit application with several dependency. A rough
estimation of the dependency is like below -
[handshake_win32.exe] ----> [libhandshake32.dll] ----> [libeay32,
ssleay32.dll] ----> [zlib1.dll]
Now I would like to use my libhandshake32.dll through JNI for code reuse.
As the JVM is 64-bit so I guess those library needed to be recompiled for
x64 arch.
My first target is running the current baseline handshake_win32.exe in
x64. So I have recompiled all the dll for x64. But after successful
recompilation when I start into debug mode I am getting immediate Stack
Overflow at main function.
Unhandled exception at 0x000007f602f79567 in handshake_win32.exe:
0xC00000FD: Stack overflow.
I have tried to check the dll signature with dumpbin and it seems all have
machine type x64. dependency walker gives the following error message for
all of x64 modules -
Error: At least one module has an unresolved import due to a missing
export function in an implicitly dependent module. Error: Modules with
different CPU types were found.
It shows that x86 version of MSVCR100.dll was loaded where the actual
dll's arch is x64.
Can anyone suggest what are the possible causes of this problem?
Thanks in advance.
No comments:
Post a Comment