sos

Windbg: psscor4 doesn't work

瘦欲@ 提交于 2019-12-10 15:48:46
问题 I searched and tried a lot of things, but can't get psscor4 to work properly. When I invoke !threads , I'm always getting Failed to request ThreadStore The things I checked are as follows: I'm having a .NET 4 application that's compiled for X86 platform I'm using Windbg version 6.2.9200.16384, X86 version I'm using current psscor4 from Microsoft and it loads properly. I'm loading the X86 version, so that should be fine Symbols are loaded from MS Symbol server (command .symfix+ , then .reload

Please explain !SyncBlk the windbg command

↘锁芯ラ 提交于 2019-12-10 14:52:21
问题 Firstly, is there a command for getting help and parameters for each sos command in windbg ? Secondly, I'd like to understand !syncblk output Index SyncBlock MonitorHeld Recursion Owning Thread Info SyncBlock Owner 201 05b9493c 979 1 05bc1040 bcc 45 022f3490 System.Collections.ArrayList 2875 05b4c914 1 1 17b99e10 1af8 290 024862d8 MyClass 2945 05b4b66c 1 1 17d1a290 12c0 752 02482940 MyClass MonitorHeld shows # of monitor held by the synblk . 1 for write and 2 for read, but what does the rest

clr.dll exception causes the iis crashed, PDB symbol for clr.dll not loaded, The version of SOS does not match the version of CLR you are debugging

安稳与你 提交于 2019-12-10 10:28:13
问题 Recently, my asp.net application crashed. I got the event logs on windows, two type exception message: Application: w3wp.exe Framework Version: v4.0.30319 Description: The process was terminated due to an internal error in the .NET Runtime at IP 000007FEF9CFDDE3 (000007FEF9B00000) with exit code 80131506. Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7afa2 Faulting module name: clr.dll, version: 4.0.30319.1008, time stamp: 0x517a18ff Exception code: 0xc0000005

How to display managed objects with certain value in one of the fields in WinDbg using SOS (or SOSEX)?

佐手、 提交于 2019-12-09 18:29:31
问题 My problem is this: 0:000> !DumpHeap -type Microsoft.Internal.ReadLock -stat ------------------------------ Heap 0 total 0 objects ------------------------------ Heap 1 total 0 objects ------------------------------ Heap 2 total 0 objects ------------------------------ Heap 3 total 0 objects ------------------------------ total 0 objects Statistics: MT Count TotalSize Class Name 000007fef3d14088 74247 2375904 Microsoft.Internal.ReadLock Total 74247 objects The way I read this output is that I

Why psscor4 command will not run

只愿长相守 提交于 2019-12-09 17:58:51
问题 For some reason, I cannot run any commands once I load psscor4. I have downloaded x64 of psscor4 from MS website and put it in same folder where windbg is. Before loading psscor4, I can run sos commands fine without any problem. 0:003> .loadby sos clr 0:003> lmvm clr start end module name 00007ffa`35630000 00007ffa`35fc8000 clr (deferred) Image path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll Image name: clr.dll Timestamp: Wed Nov 27 19:25:30 2013 (52968D7A) CheckSum: 00996ED8

Can WinDBG be made to find mscordacwks.dll in the symbol store?

心已入冬 提交于 2019-12-09 06:09:40
问题 The Question There are plenty of manual ways to make WinDBG find mscordacwks.dll without a symbol store (putting the file in the path somewhere, putting it in the same folder as windbg.exe, putting it in my Framework\v folder, specifying the path in WinDBG using .cordll -lp c:\dacFolder , etc.), but they all only fix it for me . I need to fix it more generally for everyone who uses my symbol store . The possible solutions I can imagine are: WinDBG be made to check the symbol store using

!DumpHeap - possible to disable GC warning?

浪尽此生 提交于 2019-12-08 08:21:30
问题 I have a full process dump from an NT service (implemented using C# / .NET 4.5.2) that's in the middle of a GC cycle. When I load it into WinDbg and try to run !DumpHeap -stat (or any other variant of DumpHeap ), I get this warning: The garbage collector data structures are not in a valid state for traversal. It is either in the "plan phase," where objects are being moved around, or we are at the initialization or shutdown of the gc heap. Commands related to displaying, finding or traversing

Determine line number of InnerException from minidump using WinDbg

末鹿安然 提交于 2019-12-07 03:07:50
问题 I'm trying to track down a NullReferenceException from a dump. The NullReferenceException is not the crashing exception, rather the crashing exception is a TargetInvocationException with an InnerException which is the NullReferenceException. I'm using Windbg with SOS, I use the the command analyze -v and this gives me the call stack of the NullReferenceException: EXCEPTION_OBJECT: !pe f6cb150 Exception object: 000000000f6cb150 Exception type: System.NullReferenceException Message: Object

sos.dll usage in visual studio 2013

梦想的初衷 提交于 2019-12-05 22:55:58
问题 When I am reading docs about sos.dll @MSDN, encounter a note says If you are using Visual Studio 2013, SOS.dll is supported in the Windows Debugger within Visual Studio I know how to use sos.dll in the immediate window in Visual Studio 2012. But how to use sos.dll with visual studio 2013 debugger? 回答1: From MSDN documentation of What’s New for the Debugger in Visual Studio 2013 (Excerpt from the part Debug With Debugging Tools for Windows ) The SOS.dll (SOS Debugging Extension) that helps you

Mismatch in object size returned by sos.dll and in-memory process size

戏子无情 提交于 2019-12-05 21:41:59
I have used the following sos command to enumerate all instances of a particular type in a running asp application (hosted on windows xp 4 GB machine). .foreach (obj { !dumpheap -type ::my type:: -short ::start of address space:: ::end of address space:: }) { !objsize ${obj} }. This enumerates all objects of the given type in gc gen2. The object size on an average seems to be around 500 KB and there are around 2000 objects. This alone adds up to around 1 GB of memory whereas my asp-process memory in task manager shows only around 700 MB. One more point is that I haven't considered other loaded