如何调试环境特定的错误? [英] How do I debug an environment specific bug?

查看:65
本文介绍了如何调试环境特定的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用各种环境(SQL,Windows)在本地计算机上运行都很好的应用程序.但是,我们有一个特定的环境无法运行它,在clr.dll中抛出了c0000005错误.

I have an application that is running absolutely fine on local computers, using a variety of environments (SQL, Windows). However, we have one particular environment where it fails to run, throwing up a c0000005 error in clr.dll.

在这种特殊(有些受限制)的环境中,我有什么技术可以用来识别正在发生的事情?C#代码未命中,因此应用程序的初始加载和设置中有一些失败.

Are there any techniques that I can use to identify what is going on in this particular (somewhat restricted) environment? The C# code is not hit, so there is something in the initial load and setup of the app that is failing.

我不希望得到为什么它失败的答案,但是除了非常有限的崩溃报告之外,我还能找到一些其他帮助.该代码使用的是.net 4.6.2,因此与Windows工具本身之间的直接交互应该很少(如果有的话).我怀疑这是服务器上的dll损坏或应用程序试图加载此环境中缺少的内容.或者,也许它正在尝试访问不允许访问的内容(这只是两个服务器之间的问题).

I don't expect an answer to why it is failing, but some help on how I can find anything more than the very limited crash report. The code is using .net 4.6.2, so there should be very little (if any) direct interaction with the windows tools themselves. I suspect it is either a corrupt dll on the server or the app is trying to load something that is missing in this environment. Or, possibly, it is seeking to access something that it is not allowed to (it is only a problem across two servers).

推荐答案

Windows 2008已经为您创建了一个小型转储.在这里阅读: https://msdn.microsoft.com/zh-CN/library/windows/desktop/ee416349(v=vs.85).aspx#writing_a_minidump

Windows 2008 is already creating a mini dump for you. Read here: https://msdn.microsoft.com/en-us/library/windows/desktop/ee416349(v=vs.85).aspx#writing_a_minidump

找到小型转储,然后在Visual Studio,dmpcheck或其他工具中将其打开.在某个堆栈跟踪中的某处应该有写着SEH或访问冲突的内容.这将告诉您令人反感的方法或功能.

Find the minidump and open it in Visual Studio, dmpcheck, or another tool. Somewhere there should be something that says SEH or Access Violation in one of the stack traces. That will tell you the offending method or function.

这篇关于如何调试环境特定的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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