C
coder969
Guest
My C# application is crashing intermittently . I have done the debugging through windbg and it is showing the error in clr .Below is the logging from windbg . C# application is loading a managed cpp dll and the managed dll is loading the native cpp dll(third party dll)
clr!GetMetaDataInternalInterfaceFromPublic+25e75
6e7256fa f70000000080 test dword ptr [eax],80000000h
EXCEPTION_RECORD: ffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 6e7256fa (clr!GetMetaDataInternalInterfaceFromPublic+0x00025e75) ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000 NumberParameters: 2 Parameter[0]: 00000000 Parameter[1]: 6bd15370
Attempt to read from address 6bd15370
FAULTING_THREAD: 00000c8c
DEFAULT_BUCKET_ID: INVALID_POINTER_READ
PROCESS_NAME: application.exe
ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced >memory at 0x%08lx. The memory could not be %s.
EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx >referenced memory at 0x%08lx. The memory could not be %s.
EXCEPTION_PARAMETER1: 00000000
EXCEPTION_PARAMETER2: 6bd15370
READ_ADDRESS: 6bd15370
FOLLOWUP_IP: clr!GetMetaDataInternalInterfaceFromPublic+25e75 6e7256fa f70000000080 test dword ptr [eax],80000000h
MOD_LIST:
NTGLOBALFLAG: 70
APPLICATION_VERIFIER_FLAGS: 0
MANAGED_STACK: SP IP Function 00000000 00000001 App_config_1a0000!Application.Read()+0x2 002EF438 0040174B App_config_1a0000!Application.Re()+0xc3 002EF460 00400081 App_config!Application.Main()+0x31
StackTraceString: HResult: 8007045a
EXCEPTION_OBJECT: !pe 18f41f8 Exception object: 018f41f8 Exception type: System.IO.FileLoadException Message: Could not load file or assembly 'ManagedCPP.dll' or one of its dependencies. A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A) InnerException: StackTrace (generated): SP IP Function 00000000 00000001 App_config_1a0000!Application.Read()+0x2 002EF438 0040174B App_config_1a0000!Application.Re()+0xc3 002EF460 00400081 App_config!Application.Main()+0x31
From the windbg logging, I have seen access violation from clr and after that it is showing dll loading issues. Is it because clr crash the dll is not loading?
Continue reading...
clr!GetMetaDataInternalInterfaceFromPublic+25e75
6e7256fa f70000000080 test dword ptr [eax],80000000h
EXCEPTION_RECORD: ffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 6e7256fa (clr!GetMetaDataInternalInterfaceFromPublic+0x00025e75) ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000 NumberParameters: 2 Parameter[0]: 00000000 Parameter[1]: 6bd15370
Attempt to read from address 6bd15370
FAULTING_THREAD: 00000c8c
DEFAULT_BUCKET_ID: INVALID_POINTER_READ
PROCESS_NAME: application.exe
ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced >memory at 0x%08lx. The memory could not be %s.
EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx >referenced memory at 0x%08lx. The memory could not be %s.
EXCEPTION_PARAMETER1: 00000000
EXCEPTION_PARAMETER2: 6bd15370
READ_ADDRESS: 6bd15370
FOLLOWUP_IP: clr!GetMetaDataInternalInterfaceFromPublic+25e75 6e7256fa f70000000080 test dword ptr [eax],80000000h
MOD_LIST:
NTGLOBALFLAG: 70
APPLICATION_VERIFIER_FLAGS: 0
MANAGED_STACK: SP IP Function 00000000 00000001 App_config_1a0000!Application.Read()+0x2 002EF438 0040174B App_config_1a0000!Application.Re()+0xc3 002EF460 00400081 App_config!Application.Main()+0x31
StackTraceString: HResult: 8007045a
EXCEPTION_OBJECT: !pe 18f41f8 Exception object: 018f41f8 Exception type: System.IO.FileLoadException Message: Could not load file or assembly 'ManagedCPP.dll' or one of its dependencies. A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A) InnerException: StackTrace (generated): SP IP Function 00000000 00000001 App_config_1a0000!Application.Read()+0x2 002EF438 0040174B App_config_1a0000!Application.Re()+0xc3 002EF460 00400081 App_config!Application.Main()+0x31
From the windbg logging, I have seen access violation from clr and after that it is showing dll loading issues. Is it because clr crash the dll is not loading?
Continue reading...