来自CLR的访问冲突错误! Getmetadatainternalinterfacefrompublic [英] Access violation error from CLR! Getmetadatainternalinterfacefrompublic

查看:409
本文介绍了来自CLR的访问冲突错误! Getmetadatainternalinterfacefrompublic的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序间歇性崩溃。我已经通过windbg进行了调试,它显示了clr中的错误.Below是来自windbg的记录



clr!GetMetaDataInternalInterfaceFromPublic + 25e75

6e7256fa f70000000080 test dword ptr [eax],80000000h



EXCEPTION_RECORD:ffffffff - (.exr 0xffffffffffffffff)

异常地址:6e7256fa(clr !GetMetaDataInternalInterfaceFromPublic + 0x00025e75)ExceptionCode:c0000005(访问冲突)

ExceptionFlags:00000000 NumberParameters:2参数[0]:00000000参数[1]:6bd15370

尝试从地址6bd15370



FAULTING_THREAD:00000c8c



DEFAULT_BUCKET_ID:INVALID_POINTER_READ



PROCESS_NAME:application.exe



ERROR_CODE:(NTSTATUS)0xc0000005 - 0x%08lx处的指令引用>内存为0x%08lx。内存不能是%s。



EXCEPTION_CODE:(NTSTATUS)0xc0000005 - 0x%08lx处的指令>引用0x%08lx处的内存。内存不能是%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功能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异常对象:018f41f8异常类型:System.IO.FileLoadException消息:无法加载文件或程序集ManagedCPP.dll或其依赖项之一。动态链接库(DLL)初始化例程失败。 (来自HRESULT的异常:0x8007045A)InnerException:StackTrace(生成):SP IP功能00000000 00000001 App_config_1a0000!Application.Read()+ 0x2 002EF438 0040174B App_config_1a0000!Application.Re()+ 0xc3 002EF460 00400081 App_config!Application.Main()+ 0x31



从windbg日志记录中,我看到了来自clr的访问冲突,之后它显示了dll加载问题。是因为clr崩溃dll没有加载吗?



我尝试过:



关于clr中的错误,互联网上没有很多信息!

My 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

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?

What I have tried:

Much information is not available in internet about the error in clr!

GetMetaDataInternalInterfaceFromPublic method

推荐答案

这与如何检查dllmain函数返回false [ ^ ]。请不要重新发布。
This is the same question as How to check dllmain function is returning false[^]. Please do not repost.


这篇关于来自CLR的访问冲突错误! Getmetadatainternalinterfacefrompublic的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆