Re: LIBEAY32.dll: Unhandeled exception in iexplorer.exe 0xC0000005: Access violation
Thanks for your response Kyle. It actually turned out to be that I was missing a cleanup of the locks. Specifically, I was missing CRYPTO_set_id_callback( NULL ); as below: static void initOpenSSLLocks() { CRYPTO_set_id_callback( ( unsigned long (*)() ) openSSLThreadID ); CRYPTO_set_locking_callback( ( void (*)( int, int, const char *, int ) ) openSSLLockCB ); } static void freeOpenSSLLocks() { CRYPTO_set_id_callback( NULL ); CRYPTO_set_locking_callback( NULL ); } Chris, On Wed, Aug 13, 2008 at 6:27 AM, Kyle Hamilton [EMAIL PROTECTED] wrote: Most likely, it probably has something to do with http://www.openssl.org/support/faq.html#PROG2 , probably a lack of CRYPTO_malloc_init(). -Kyle H On Tue, Aug 12, 2008 at 12:17 PM, Chris Hatko [EMAIL PROTECTED] wrote: I've got a ActiveX control which uses several different dll's (LIBEAY32.dll being one). When I shut down iexplorer, my control is deleted as expected but I get a crash when _DllMainCRTStartup tries to DLL_THREAD_DETACH on the LIBEAY32.dll I get the following crash: Unhandeled exception in iexplorer.exe 0xC005: Access violation... Any idea whats going on? Or what else I can do to debug (please see below)? LIBEAY32.DLL version: 0.9.8.8 namke version: 7.10.3077 Windows: Xp 2002 SP2 Compiled using the folllowing: CFLAG= /MD /Ox /O2 /Ob2 /W3 /WX /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DAES_ASM -DBN_ASM -DOPENSSL_BN_ASM_PART_WORDS -DMD5_ASM -DSHA1_ASM -DRMD160_ASM -DOPENSSL_USE_APPLINK -I. /Fdout32dll -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_TLSEXT -DOPENSSL_NO_CMS -DOPENSSL_NO_KRB5 -DOPENSSL_NO_DYNAMIC_ENGINE Stack trace: (nothing visible) 109549e0() libeay32.dll!0381e6e2() ntdll.dll!7c919a9c() ntdll.dll!7c919b3f() ntdll.dll!7c919aeb() ole32.dll!774fea59() ole32.dll!774fe9b4() ntdll.dll!7c919aeb() ntdll.dll!7c919ba0() kernel32.dll!7c80adde() ntdll.dll!7c90e027() ntdll.dll!7c91392e() libexpat.dll!039b7c65() libexpat.dll!039b7ce8() libexpat.dll!039b5cd2() libeay32.dll!0381e68a() libeay32.dll!037e1893() libeay32.dll!038718bb() ntdll.dll!7c9011a7() ntdll.dll!7c919213() kernel32.dll!7c80c096() ole32.dll!774fea59() mshtml.dll!7dcc9bb8() kernel32.dll!7c80b689() ole32.dll!774fea59() Crash occurs after instruction: mov ecx,dword ptr ds:[38CFCBCh] Registeres(useful?): EAX = 109549E0 EBX = ECX = 80284006 EDX = 7C90EB94 ESI = 0003 EDI = EIP = 109549E0 ESP = 022DFD14 EBP = 022DFEE4 EFL = 0202 Thanks Chris -- Chris Hatko Email: [EMAIL PROTECTED] iMsg: [EMAIL PROTECTED] __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager [EMAIL PROTECTED] __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager [EMAIL PROTECTED] -- Chris Hatko Email: [EMAIL PROTECTED] iMsg: [EMAIL PROTECTED] __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]
Re: LIBEAY32.dll: Unhandeled exception in iexplorer.exe 0xC0000005: Access violation
Most likely, it probably has something to do with http://www.openssl.org/support/faq.html#PROG2 , probably a lack of CRYPTO_malloc_init(). -Kyle H On Tue, Aug 12, 2008 at 12:17 PM, Chris Hatko [EMAIL PROTECTED] wrote: I've got a ActiveX control which uses several different dll's (LIBEAY32.dll being one). When I shut down iexplorer, my control is deleted as expected but I get a crash when _DllMainCRTStartup tries to DLL_THREAD_DETACH on the LIBEAY32.dll I get the following crash: Unhandeled exception in iexplorer.exe 0xC005: Access violation... Any idea whats going on? Or what else I can do to debug (please see below)? LIBEAY32.DLL version: 0.9.8.8 namke version: 7.10.3077 Windows: Xp 2002 SP2 Compiled using the folllowing: CFLAG= /MD /Ox /O2 /Ob2 /W3 /WX /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DAES_ASM -DBN_ASM -DOPENSSL_BN_ASM_PART_WORDS -DMD5_ASM -DSHA1_ASM -DRMD160_ASM -DOPENSSL_USE_APPLINK -I. /Fdout32dll -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_TLSEXT -DOPENSSL_NO_CMS -DOPENSSL_NO_KRB5 -DOPENSSL_NO_DYNAMIC_ENGINE Stack trace: (nothing visible) 109549e0() libeay32.dll!0381e6e2() ntdll.dll!7c919a9c() ntdll.dll!7c919b3f() ntdll.dll!7c919aeb() ole32.dll!774fea59() ole32.dll!774fe9b4() ntdll.dll!7c919aeb() ntdll.dll!7c919ba0() kernel32.dll!7c80adde() ntdll.dll!7c90e027() ntdll.dll!7c91392e() libexpat.dll!039b7c65() libexpat.dll!039b7ce8() libexpat.dll!039b5cd2() libeay32.dll!0381e68a() libeay32.dll!037e1893() libeay32.dll!038718bb() ntdll.dll!7c9011a7() ntdll.dll!7c919213() kernel32.dll!7c80c096() ole32.dll!774fea59() mshtml.dll!7dcc9bb8() kernel32.dll!7c80b689() ole32.dll!774fea59() Crash occurs after instruction: mov ecx,dword ptr ds:[38CFCBCh] Registeres(useful?): EAX = 109549E0 EBX = ECX = 80284006 EDX = 7C90EB94 ESI = 0003 EDI = EIP = 109549E0 ESP = 022DFD14 EBP = 022DFEE4 EFL = 0202 Thanks Chris -- Chris Hatko Email: [EMAIL PROTECTED] iMsg: [EMAIL PROTECTED] __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager [EMAIL PROTECTED] __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]
LIBEAY32.dll: Unhandeled exception in iexplorer.exe 0xC0000005: Access violation
I've got a ActiveX control which uses several different dll's (LIBEAY32.dll being one). When I shut down iexplorer, my control is deleted as expected but I get a crash when _DllMainCRTStartup tries to DLL_THREAD_DETACH on the LIBEAY32.dll I get the following crash: Unhandeled exception in iexplorer.exe 0xC005: Access violation... Any idea whats going on? Or what else I can do to debug (please see below)? LIBEAY32.DLL version: 0.9.8.8 namke version: 7.10.3077 Windows: Xp 2002 SP2 Compiled using the folllowing: CFLAG= /MD /Ox /O2 /Ob2 /W3 /WX /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DAES_ASM -DBN_ASM -DOPENSSL_BN_ASM_PART_WORDS -DMD5_ASM -DSHA1_ASM -DRMD160_ASM -DOPENSSL_USE_APPLINK -I. /Fdout32dll -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_TLSEXT -DOPENSSL_NO_CMS -DOPENSSL_NO_KRB5 -DOPENSSL_NO_DYNAMIC_ENGINE Stack trace: (nothing visible) 109549e0() libeay32.dll!0381e6e2() ntdll.dll!7c919a9c() ntdll.dll!7c919b3f() ntdll.dll!7c919aeb() ole32.dll!774fea59() ole32.dll!774fe9b4() ntdll.dll!7c919aeb() ntdll.dll!7c919ba0() kernel32.dll!7c80adde() ntdll.dll!7c90e027() ntdll.dll!7c91392e() libexpat.dll!039b7c65() libexpat.dll!039b7ce8() libexpat.dll!039b5cd2() libeay32.dll!0381e68a() libeay32.dll!037e1893() libeay32.dll!038718bb() ntdll.dll!7c9011a7() ntdll.dll!7c919213() kernel32.dll!7c80c096() ole32.dll!774fea59() mshtml.dll!7dcc9bb8() kernel32.dll!7c80b689() ole32.dll!774fea59() Crash occurs after instruction: mov ecx,dword ptr ds:[38CFCBCh] Registeres(useful?): EAX = 109549E0 EBX = ECX = 80284006 EDX = 7C90EB94 ESI = 0003 EDI = EIP = 109549E0 ESP = 022DFD14 EBP = 022DFEE4 EFL = 0202 Thanks Chris -- Chris Hatko Email: [EMAIL PROTECTED] iMsg: [EMAIL PROTECTED] __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]