windbg

How to I resolve GetFrameContext failed in Windbg

孤人 提交于 2019-12-18 13:01:33
问题 I'm debugging a .NET 4.0 web application using a full crash dump and Windbg. I seem able to get all the versions of everything to match up however when I try to get the managed stack trace of all the thread I get OS Thread Id: 0x7cd4 (13) Child SP IP Call Site GetFrameContext failed: 1 For all of my managed threads. Any ideas what I'm doing wrong and how I can fix it? 回答1: I was also getting this error, but I noticed that running !DumpStack does give me a trace when !ClrStack does not.

How to list running tasks in .net memory dump

杀马特。学长 韩版系。学妹 提交于 2019-12-18 12:36:23
问题 We have a complex ASP.Net Core application using async/await pattern. The app stopped to respond recently, and we took a memory dump for it. We suspect that there is some async operation that make the app stuck, but not sure which one. After taking memory dump for the web application, we can see very few running threads since the thread is returned to thread pool due to usage of async/await. The question is, is it possible to list running tasks in the memory dump, and where they have run to,

Debugging a Deadlock with Windbg's !clrstack command

烈酒焚心 提交于 2019-12-18 10:56:42
问题 When I issued clrstack command, I got the following output. It is the callstack of a blocking thread which owns a deadlock and results in a deadlock. Is that its exact purpose? Does it have any other purposes (without any parameters). Where can I get more information? !clrstack OS Thread Id: 0x1b2c (6956) ESP EIP 0012f370 7c90e514 [HelperMethodFrame: 0012f370] System.Threading.Thread.SleepInternal(Int32) 0012f3c4 79299275 System.Threading.Thread.Sleep(Int32) 0012f3c8 00e0030f testlock

how to dump string using Windbg poi function

被刻印的时光 ゝ 提交于 2019-12-18 09:28:11
问题 Debugging .Net String value in windbg and WinDbg and SoS, how do I print/dump a large string? show a script that dump the string to a local file: $$ Dumps the managed strings to a file $$ Platform x86 $$ Usage $$>a<"c:\temp\dumpstringtofolder.txt" 6544f9ac 5000 c:\temp\stringtest $$ First argument is the string method table pointer $$ Second argument is the Min size of the string that needs to be used filter the strings $$ Third is the path of the file .foreach ($string {!dumpheap -short -mt

What is WinDbg <unknown> Memory?

戏子无情 提交于 2019-12-18 07:45:38
问题 I'm debugging a Winforms application for a memory leak. In the dump file provided by the customer there is a large discrepancy between the unknown memory usage and the .NET Heap size. (Approximately 1000mb vs 200mb). So what is in the unknown segment other than the VirtualAllocs done by the CLR? !eeheap -gc output !address -summary output 回答1: Memory that is reported as <unknown> by WinDbg is memory that was allocated via VirtualAlloc(). Some commonly known sources are: .NET (because it has

What's the meaning of “Internal” in “!heap -h” output in windbg?

∥☆過路亽.° 提交于 2019-12-18 04:52:54
问题 I am following this stackoverflow post What do the different columns in the "!heap -flt -s xxxx" windbg command represent I am trying to understand the information printed out for one of the heaps that using up a lot of memory. I can understand most of the columns but on my windbg, I see an additional column. Most of my entries are marked as Internal . I wonder what that means. I have done !gflags +ust . So, I can see the call stack for making the memory allocation. I can do it on most of the

Help catching StackOverflowException with WinDbg and ADPlus

只谈情不闲聊 提交于 2019-12-17 23:11:43
问题 Short Version I want an ADPlus script that will do a full memory dump on the first-chance StackOverflowException, before anything is cleaned up, and ignore all other exception types. Log Version After a release of new ASP.NET code, we started getting intermittent StackOverflowExceptions. We've looked for infinite recursions and all the usual suspects in the revisions added since the last known good install, and can't find anything. The website will run for up to an hour, and then crash down.

Kernel trace Windows 7 WinDbg

天涯浪子 提交于 2019-12-17 22:41:59
问题 I'm getting no debug information when debugging en_windows_7_checked_build_dvd_x86_398742. I can't see even my own trace info (ATLTRACE). In opposite, Windows XP Checked works like a charm. I get "Bad QueryIdType:5" msg on debug session start with Windows 7. Kernel debug is set up properly obviously. Please help... 回答1: I was able to fix it from within windbg, on windows 7 32 bit: ed Kd_DEFAULT_Mask 8 According to the msdn article, you can also use the registry, but you must reboot for it to

VB6 Debugging - compiled

血红的双手。 提交于 2019-12-17 22:02:53
问题 My scenario is I'm supporting a VB6 app at the place I work and in the last few weeks it has started crashing more often than it ever used to. It uses both a local Access MDB database and a remote SQL Server DB for different types of storage. The good news is we are writing a replacement app, the band news I need to support this one in the meantime and the vendor is long gone from this world. What are some ways I could try and diagnose what is causing the crash? For example so far I've tried

Unable to load SOS in WinDbg

你说的曾经没有我的故事 提交于 2019-12-17 07:59:29
问题 Background: I'm new to WinDbg and trying to get it running for the first time. I want to examine a memory dump I took from a running ASP.NET 4 site hosted in IIS 7 on Windows Server 2008 (x86) and downloaded to my local machine. I installed the debugging tools and launched WinDbg for the first time, opening the crash dump. I went to File | Symbol File Path and set the path to *srv*c:\symbols*http://msdl.microsoft.com/download/symbols* and waited for all the symbols to load. When trying to