windbg

Good tutorial for WinDbg?

霸气de小男生 提交于 2019-11-26 14:57:57
问题 This post is a Community Wiki . Edit existing answers to improve this post. It is not currently accepting new answers. Are there good tutorials for showing how to use WinDbg? 回答1: Basic Tutorials & Usage Demos Installing and Configuring WinDbg (Windows Debug Tools) Mike Taulty - A word for WinDbg WinDbg Tutorials Windows Debuggers: Part 1: A WinDbg Tutorial Different Ways to "Start"/Attach WinDbg Start Debugging with WinDbg (includes how to debug an .msi) How to debug a Windows service

在WinDbg里使用MEX调试扩展

本秂侑毒 提交于 2019-11-26 12:15:32
简介 针对WinDbg的MEX调试扩展可以帮助您简化常见的调试器任务,并为调试器提供强大的文本筛选功能。此扩展被Microsoft支持工程师广泛用于解决流程应用程序的故障。 下载&安装 下载mex.exe存档。下载地址 https://www.microsoft.com/en-us/download/details.aspx?id=53304 解压缩到任何文件夹。 使用以下命令将“MEX Debugging Extension for WinDbg”加载到调试器中:.load(提取的文件夹)\MEX.dll。 下载之后,解压缩,有两个目录,X64和X86,大家根据自己的需要进行加载,目前我们主要用X64。建议直接把这个扩展拷贝到Windbg运行目录中。 使用帮助 加载到windbg后,输入 !mex help 命令,获取帮助 可以看到已经分类显示帮助信息,点击一项查看详细信息,比如“General” 使用举例 !clrstack2 此命令用于显示当前线程的托管调用堆栈。 !dae 此命令是DumpAllExceptions的缩写。 它列出了收集转储时内存中的所有异常。 !us 这个命令是UniqueStacks的缩写,它负责列出所有按调用堆栈线程分组的对象。 ! Mex.writemodule -a -p "destination path"

Dump File analysis

岁酱吖の 提交于 2019-11-26 11:36:38
问题 Recently I start facing issue on few servers where CPU start consuming more resources than usual trend. I am trying to find out the root cause for this and took the dump of w3wp process from Task Manager(right click on process and took the dump). Now the dmp file size is 14GB and I am trying to analyze it through WinDBG but the tool is not working and getting message: I also took few minidumps but some of them opening fine while few are not so it\'s not related to confusion between 32bit or

What is an “Async Pinned Handle”?

女生的网名这么多〃 提交于 2019-11-26 11:20:59
问题 I\'m trying to investigate a really nasty software crash which is possibly related to a managed heap corruption (since it happens during a garbage collection). Using WinDbg with the (SOS) !gshandles command I get something like 0:000> !gchandles GC Handle Statistics: Strong Handles: 259 Pinned Handles: 137 Async Pinned Handles: 1 Ref Count Handles: 79 Weak Long Handles: 197 Weak Short Handles: 650 Other Handles: 0 Statistics: And I\'m just curious, what is the difference between a \"normal\"

How to use WinDBG to track down .net out of memory exceptions?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-26 06:41:09
问题 I need to track down the reason for out of memory (OOM) exceptions in a .NET application. Using perfmon, the app crashes with an OOM when using relatively low memory (500-700mb), so I\'m assuming some sort of heap fragmentation. After researching it looks like WinDBG is the tool to use to track this kind of problem down. I\'ve set up DebugDiag on the server running the processes. I\'ve also managed to load the dump from DebugDiag into WinDBG, hook up the symbol server and my own private

Large Object Heap Fragmentation

会有一股神秘感。 提交于 2019-11-26 02:16:58
问题 The C#/.NET application I am working on is suffering from a slow memory leak. I have used CDB with SOS to try to determine what is happening but the data does not seem to make any sense so I was hoping one of you may have experienced this before. The application is running on the 64 bit framework. It is continuously calculating and serialising data to a remote host and is hitting the Large Object Heap (LOH) a fair bit. However, most of the LOH objects I expect to be transient: once the

How do I take a good crash dump for .NET?

末鹿安然 提交于 2019-11-25 23:03:35
问题 I have captured a crash dump of my 32 bit .NET application running on a 64 bit Windows operating system. During the analysis somebody found out that I have a 64 bit dump and told me that it is not possible to analyze this dump due to wrong bitness. When using Windows Task Manager to create the dump, I was not aware that I was doing something wrong. This always worked for 32 bit operating systems. How can I take a good dump for .NET, especially with the correct bitness? 回答1: Why is bitness

How to set up symbols in WinDbg?

流过昼夜 提交于 2019-11-25 22:34:27
问题 I am using Debugging Tools for Windows and I get the following error message when starting WinDbg / cdb or ntsd: Symbol search path is: *** Invalid *** **************************************************************************** * Symbol loading may be unreliable without a symbol search path. * * Use .symfix to have the debugger choose a symbol path. * * After setting your symbol path, use .reload to refresh symbol locations. * *****************************************************************