线程试图读取或写入对其没有适当访问权限的虚拟地址. [英] The thread tried to read from or write to a virtual address for which it does not have the appropriate access.

查看:141
本文介绍了线程试图读取或写入对其没有适当访问权限的虚拟地址.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在.NET 3.5 WPF应用程序中遇到随机崩溃.崩溃大约每周发生一次.

I am experiencing a random crash in a .NET 3.5 WPF application. The crash happens around once a week.

事件日志通过故障模块mscorwks.dll指示其.NET致命执行引擎错误.

The event log indicates its a .NET fatal execution engine error with the faulting module mscorwks.dll

我使用adplus捕获了一个转储文件.

Using adplus I have captured a dump file.

转储指示基本异常消息如下

The dump indicates the underlying exception message was as follows

线程试图从其没有适当访问权限的虚拟地址中读取或写入该虚拟地址."

"The thread tried to read from or write to a virtual address for which it does not have the appropriate access."

我一直无法将错误追溯到我的代码中,转储中的调用堆栈似乎完全在框架内部,并且该问题似乎是随机发生的.

I have been unable to trace the error back into my code, the call stack in the dump seems to be entirely inside the framework itself and the problem seems to happen at random times.

我不确定是否有人可以从下面的调用堆栈中了解到可能发生的情况.任何帮助表示赞赏.

I'm not sure if anyone can decipher what might be happening from the call stack below. Any help is appreciated.

   mscorwks.dll!ArrayClass :: GetApproxArrayElementTypeHandle()  + 0x13字节 
      mscorwks.dll!ArrayBase :: GetArrayElementTypeHandle()  + 0x36字节 
      mscorwks.dll!ArrayBase :: GetTypeHandle()  + 0x11字节 
      mscorwks.dll!Object :: GetTypeHandle()  + 0x143944字节 
      mscorwks.dll!ObjIsInstanceOf()  + 0x2f字节 
      mscorwks.dll!@ JITutil_ChkCastAny @ 8()  + 0xa0字节 
      System.ni.dll!6face3ab()    
      [以下框架可能不正确和/或丢失,没有为System.ni.dll加载任何符号]  
      System.ni.dll!6face306()    
      PresentationFramework.ni.dll!5c8f3bcf()    
      PresentationFramework.ni.dll!5c8f3ae5()    
      WindowsBase.ni.dll!5e11c366()    
      WindowsBase.ni.dll!5e1056c3()    
      PresentationFramework.ni.dll!5d240b42()    
      PresentationFramework.ni.dll!5c8686bf()    
      WindowsBase.ni.dll!5e10a31a()    
      WindowsBase.ni.dll!5e10a20a()    
      WindowsBase.ni.dll!5e108384()    
      WindowsBase.ni.dll!5e10d26d()    
      WindowsBase.ni.dll!5e10d1f8()    
      mscorlib.ni.dll!70365991()    
      mscorwks.dll!_CallDescrWorker @ 20()  + 0x33字节 
      mscorwks.dll!_CallDescrWorkerWithHandler @ 24()  + 0x9f字节 
      mscorwks.dll!MethodDesc :: CallDescr()  + 0x15a字节 
      mscorwks.dll!MethodDesc :: CallTargetWorker()  + 0x1f字节 
      mscorwks.dll!MethodDescCallSite :: CallWithValueTypes_RetArgSlot()  + 0x1a字节 
      mscorwks.dll!ExecuteCodeWithGuaranteedCleanupHelper()  + 0x9f字节 
      mscorwks.dll!ReflectionInvocation :: ExecuteCodeWithGuaranteedCleanup()  + 0xfe字节 
      mscorlib.ni.dll!70365887()    
      mscorlib.ni.dll!703504b5()    
      WindowsBase.ni.dll!5e10d133()    
      WindowsBase.ni.dll!5e107a27()    
      WindowsBase.ni.dll!5e107d13()    
      WindowsBase.ni.dll!5e10a4fe()    
      WindowsBase.ni.dll!5e10a42a()    
      WindowsBase.ni.dll!5e10a31a()    
      WindowsBase.ni.dll!5e10a20a()    
      WindowsBase.ni.dll!5e108384()    
      WindowsBase.ni.dll!5e1074e1()    
      WindowsBase.ni.dll!5e107430()    
      WindowsBase.ni.dll!5e109b6c()    
      user32.dll!_InternalCallWinProc @ 20()  + 0x23字节 
      user32.dll!_UserCallWinProcCheckWow @ 32()  + 0xb3字节 
      user32.dll!_DispatchMessageWorker @ 8()  + 0xe6字节 
      user32.dll!_DispatchMessageW @ 4()  + 0xf字节 
      0012be8a()   
      WindowsBase.ni.dll!5e107b24()    
      WindowsBase.ni.dll!5e1071f9()    
      WindowsBase.ni.dll!5e10719c()    
      PresentationFramework.ni.dll!5c88f07e()    
      PresentationFramework.ni.dll!5c88e37f()    
      PresentationFramework.ni.dll!5c8756d6()    
      PresentationFramework.ni.dll!5c875699()    
      mscorwks.dll!_CallDescrWorker @ 20()  + 0x33字节 
      mscorwks.dll!_CallDescrWorkerWithHandler @ 24()  + 0x9f字节 
      mscorwks.dll!MethodDesc :: CallDescr()  + 0x15a字节 
      mscorwks.dll!MethodDesc :: CallTargetWorker()  + 0x1f字节 
      mscorwks.dll!MethodDescCallSite :: CallWithValueTypes_RetArgSlot()  + 0x1a字节 
      mscorwks.dll!ClassLoader :: RunMain()  -0x38e85字节 
      mscorwks.dll!Assembly :: ExecuteMainMethod()  + 0xa4字节 
      mscorwks.dll!SystemDomain :: ExecuteMainMethod()  + 0x3e3字节 
      mscorwks.dll!ExecuteEXE()  + 0x49字节 
      mscorwks.dll!__ CorExeMain @ 0()  + 0x98字节 
      mscoreei.dll!712af5a3()    
      mscoree.dll!_ShellShim__CorExeMain @ 0()  + 0x227字节 
      mscoree.dll!__ CorExeMain_Exported @ 0()  + 0x8字节 
      kernel32.dll!@ BaseThreadInitThunk @ 12()  + 0x12字节 
      ntdll.dll!___ RtlUserThreadStart @ 8()  + 0x27字节 
      ntdll.dll!__ RtlUserThreadStart @ 8()  + 0x1b字节 

    mscorwks.dll!ArrayClass::GetApproxArrayElementTypeHandle()  + 0x13 bytes    
     mscorwks.dll!ArrayBase::GetArrayElementTypeHandle()  + 0x36 bytes    
     mscorwks.dll!ArrayBase::GetTypeHandle()  + 0x11 bytes    
     mscorwks.dll!Object::GetTypeHandle()  + 0x143944 bytes    
     mscorwks.dll!ObjIsInstanceOf()  + 0x2f bytes    
     mscorwks.dll!@JITutil_ChkCastAny@8()  + 0xa0 bytes    
     System.ni.dll!6face3ab()     
     [Frames below may be incorrect and/or missing, no symbols loaded for System.ni.dll]    
     System.ni.dll!6face306()     
     PresentationFramework.ni.dll!5c8f3bcf()     
     PresentationFramework.ni.dll!5c8f3ae5()     
     WindowsBase.ni.dll!5e11c366()     
     WindowsBase.ni.dll!5e1056c3()     
     PresentationFramework.ni.dll!5d240b42()     
     PresentationFramework.ni.dll!5c8686bf()     
     WindowsBase.ni.dll!5e10a31a()     
     WindowsBase.ni.dll!5e10a20a()     
     WindowsBase.ni.dll!5e108384()     
     WindowsBase.ni.dll!5e10d26d()     
     WindowsBase.ni.dll!5e10d1f8()     
     mscorlib.ni.dll!70365991()     
     mscorwks.dll!_CallDescrWorker@20()  + 0x33 bytes    
     mscorwks.dll!_CallDescrWorkerWithHandler@24()  + 0x9f bytes    
     mscorwks.dll!MethodDesc::CallDescr()  + 0x15a bytes    
     mscorwks.dll!MethodDesc::CallTargetWorker()  + 0x1f bytes    
     mscorwks.dll!MethodDescCallSite::CallWithValueTypes_RetArgSlot()  + 0x1a bytes    
     mscorwks.dll!ExecuteCodeWithGuaranteedCleanupHelper()  + 0x9f bytes    
     mscorwks.dll!ReflectionInvocation::ExecuteCodeWithGuaranteedCleanup()  + 0xfe bytes    
     mscorlib.ni.dll!70365887()     
     mscorlib.ni.dll!703504b5()     
     WindowsBase.ni.dll!5e10d133()     
     WindowsBase.ni.dll!5e107a27()     
     WindowsBase.ni.dll!5e107d13()     
     WindowsBase.ni.dll!5e10a4fe()     
     WindowsBase.ni.dll!5e10a42a()     
     WindowsBase.ni.dll!5e10a31a()     
     WindowsBase.ni.dll!5e10a20a()     
     WindowsBase.ni.dll!5e108384()     
     WindowsBase.ni.dll!5e1074e1()     
     WindowsBase.ni.dll!5e107430()     
     WindowsBase.ni.dll!5e109b6c()     
     user32.dll!_InternalCallWinProc@20()  + 0x23 bytes    
     user32.dll!_UserCallWinProcCheckWow@32()  + 0xb3 bytes    
     user32.dll!_DispatchMessageWorker@8()  + 0xe6 bytes    
     user32.dll!_DispatchMessageW@4()  + 0xf bytes    
     0012be8a()    
     WindowsBase.ni.dll!5e107b24()     
     WindowsBase.ni.dll!5e1071f9()     
     WindowsBase.ni.dll!5e10719c()     
     PresentationFramework.ni.dll!5c88f07e()     
     PresentationFramework.ni.dll!5c88e37f()     
     PresentationFramework.ni.dll!5c8756d6()     
     PresentationFramework.ni.dll!5c875699()     
     mscorwks.dll!_CallDescrWorker@20()  + 0x33 bytes    
     mscorwks.dll!_CallDescrWorkerWithHandler@24()  + 0x9f bytes    
     mscorwks.dll!MethodDesc::CallDescr()  + 0x15a bytes    
     mscorwks.dll!MethodDesc::CallTargetWorker()  + 0x1f bytes    
     mscorwks.dll!MethodDescCallSite::CallWithValueTypes_RetArgSlot()  + 0x1a bytes    
     mscorwks.dll!ClassLoader::RunMain()  - 0x38e85 bytes    
     mscorwks.dll!Assembly::ExecuteMainMethod()  + 0xa4 bytes    
     mscorwks.dll!SystemDomain::ExecuteMainMethod()  + 0x3e3 bytes    
     mscorwks.dll!ExecuteEXE()  + 0x49 bytes    
     mscorwks.dll!__CorExeMain@0()  + 0x98 bytes    
     mscoreei.dll!712af5a3()     
     mscoree.dll!_ShellShim__CorExeMain@0()  + 0x227 bytes    
     mscoree.dll!__CorExeMain_Exported@0()  + 0x8 bytes    
     kernel32.dll!@BaseThreadInitThunk@12()  + 0x12 bytes    
     ntdll.dll!___RtlUserThreadStart@8()  + 0x27 bytes    
     ntdll.dll!__RtlUserThreadStart@8()  + 0x1b bytes    

推荐答案

Hiya,

 崩溃的程序,是您编写的吗?还是第三方?您遇到的错误是

 The program that crashed, is it something you coded? Or 3rd party? The error you got is

表示某个程序试图读取/写入不允许执行的部分存储器.

saying that a program tried to read from/write to a part memory that it was not allowed to do.

 这是发生这种情况的一些原因;

 Here are a few reason why this occurs;

1.程序损坏,请重新安装,以便解决.

1. Program corruption, re-install so solve.

2.恶意代码,更新AV并重新扫描.

2. Malicious code, update AV and re-scan.

 如果这些都不是原因,请提供有关该程序的更多信息

 If none of those are a cause then please provide more information about the program

那崩溃了.

希望这会有所帮助.谢谢:)

Hope this helps. Thanks :)


这篇关于线程试图读取或写入对其没有适当访问权限的虚拟地址.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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