应用程序崩溃与"内部错误在.NET运行库" [英] Application Crashes With "Internal Error In The .NET Runtime"

查看:540
本文介绍了应用程序崩溃与"内部错误在.NET运行库"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经写在.NET 4.0这周末崩溃的应用程序,把下面的消息到事件日志:

  

应用:PnrRetrieverService.exe Framework版本:v4.0.30319
  说明:该工艺在适当的终止内部错误   在.NET运行时的IP 791F9AAA(79140000)与退出code 80131506。

这是在Windows Server 2003 R2标准版框。谷歌搜索这个错误并没有变成任何东西有关。例如,这不是发生在VS工作室,但在代替生产箱;当服务最终被重新启动,它经历了没有进一步的问题。

如何去有关.NET运行时诊断一个错误?

解决方案
  

,退出code 80131506

这是一个讨厌的,ExecutionEngineException。与.NET 4.0开始,此异常立即终止程序。通用的原因是垃圾回收堆状态的腐败。而这又不可避免会受到非托管code引起的。在code中的确切位置,在此引发异常是无益的,腐败常常发生井发现损坏了。

查找此确切原因将是困难的。查看所有非托管code你的服务可能会被使用。如果没有明显的候选人可疑的环境问题,行为不端的恶意软件扫描仪是臭名昭著。如果它重复像软RAM的错误非常糟糕,然后犯罪嫌疑人的硬件问题。

We have an application written against .NET 4.0 which over the weekend crashed, putting the following message into the event log:

Application: PnrRetrieverService.exe Framework Version: v4.0.30319
Description: The process was terminated due to an internal error in the .NET Runtime at IP 791F9AAA (79140000) with exit code 80131506.

This is on a Windows Server 2003 R2 Standard Edition box. Googling this error hasn't turned up anything pertinent. For example, this isn't occurring in VS Studio, but instead on a production box; when the service was eventually restarted, it experienced no further problems.

How does one go about diagnosing a bug in the .NET Runtime?

解决方案

with exit code 80131506

That's a nasty one, ExecutionEngineException. Starting with .NET 4.0, this exception immediately terminates the program. The generic cause is corruption of the state of the garbage collected heap. Which in turn is invariably caused by unmanaged code. The exact location in code at which this exception is raised isn't helpful, the corruption usually occurred well before the damage is detected.

Finding the exact cause for this is going to be difficult. Review any unmanaged code your service might be using. Suspect environmental problems if there is no obvious candidate, misbehaving malware scanners are notorious. If it repeats very poorly then suspect hardware problems like soft RAM errors.

这篇关于应用程序崩溃与"内部错误在.NET运行库"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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