Questions tagged [sos]

SOS is a debugger extension that allows a developer to inspect the managed state of a .NET Core and desktop runtime process. SOS can be loaded by WinDbg/cdb debuggers on Windows and lldb on Linux and macOS.

SOS (Son of Strike) is a debugger extension that allows a developer to inspect the managed state of a .NET Core and desktop runtime process. SOS can be loaded by WinDbg/cdb debuggers on Windows and lldb on Linux and macOS.

Useful links:

344 questions
1
vote
0 answers

Dictionary object is shown as HashTable during runtime

DataColumnCollection class has a columnFromName field that is defined as Dictionary of string and DataColumn as shown below public sealed class DataColumnCollection : InternalDataCollectionBase { private readonly DataTable table; …
paul deter
  • 857
  • 2
  • 7
  • 20
1
vote
1 answer

Windbg with SOS, stopping on the correct exception

I have a windows service that is, intermittently, throwing an exception that sometimes kills its SQLConnection, and other times kills the service completely. It is running live on a customer's site. I have planned to use Windbg + SOS on it to get a…
johnc
  • 39,385
  • 37
  • 101
  • 139
1
vote
1 answer

Error with !runaway command

I am looking a dump file collected from production environment for high cpu usage. I ran !threadpool and !runaway command as follows 0:000> !ThreadPool CPU utilization: 100% Worker Thread: Total: 6 Running: 2 Idle: 4 MaxLimit: 32767 MinLimit: 4 Work…
paul deter
  • 857
  • 2
  • 7
  • 20
1
vote
0 answers

DebugDiagv2 shows UNKNOWN_MODULE responsible for largest leak

The top memory consuming function is DomainBoundILStubClass.IL_STUB_PInvoke(UInt32). The module's base address is 0x00000000 so that's probably why it's the "UNKNOWN_MODULE" module. Here are the function details: Function details Function …
Marc Sherman
  • 2,303
  • 14
  • 22
1
vote
1 answer

c# code for mobile app that sends sos message to selected contacts

I am just a beginner in c# and I need your help regarding this project.I need some help reg How to send a SOS message to selected contacts from my mobile phone to other phones at a click of a button and help with some code is appreciated.
user5616935
1
vote
1 answer

Find a .NET object nearest to the given address on the heap (.NET2.0/3.5)

I would like to locate a .NET object nearest to a specific address on the heap. Example situation Imagine that from some source I got an address 0x00000000ffaaa690. When I try to dump an object (using SOS !do command) I receive: 0:000> !do…
Sebastian
  • 3,764
  • 21
  • 28
1
vote
1 answer

PDB symbol for clr.dll not loaded

I get following message when I execute "!name2ee app.exe!Program".How can I fix that? I am using VS2013. .load sos extension C:\Windows\Microsoft.NET\Framework\v4.0.30319\sos.dll loaded !name2ee app.exe!Program PDB symbol for clr.dll not loaded
Chanchal
  • 47
  • 1
  • 11
1
vote
1 answer

!DumpHeap - possible to disable GC warning?

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…
xxbbcc
  • 16,930
  • 5
  • 50
  • 83
1
vote
2 answers

How to inspect WeakReference values with WinDBG/SOS and ClrMD?

I'm investigating a memory leak issue from production and retrieved a memory dump. I'm trying to dump the values of the accumulated object, the I met WeakReference. Here's what I got in WinDBG: 0:000> !do 000000011a306510 Name: …
Jeffrey Zhao
  • 4,923
  • 4
  • 30
  • 52
1
vote
1 answer

How can I match up a CLR method table entry with a MethodDesc?

Using sos, I can get the method table entry list for a particular class: !DumpMT -MD 1d3c58 PDB symbol for mscorwks.dll not loaded EEClass: 001d195c Module: 001d2f2c Name: Class1.B mdToken: 02000005 BaseSize: 0xc ComponentSize: 0x0 Number of IFaces…
thecoop
  • 45,220
  • 19
  • 132
  • 189
1
vote
1 answer

Win dbg Dump OOM exception in IIS

Occasionally, we get an OutOfMemoryException in one of our IIS processes. I tried to analyze the dump but wasn't able to reach concrete conclusions. I also tried looking into MS hotfixes, found similar problems and resolutions, but not sure if its…
Nauty
  • 166
  • 1
  • 13
1
vote
0 answers

How can a critical section is owned by a dead thread?

I have a .NET Winform application and its UI hung. The UI thread is blocked on the CritSec ntdll!LdrpLoaderLock+0 at 774920c0. 0:010> kb ChildEBP RetAddr Args to Child 0fc4e034 773c8df4 000000d4 00000000 00000000…
Steven
  • 43
  • 4
1
vote
1 answer

Silverlight SOS (Son of Strike) documentation

Is there any Microsoft or even non-official documentation for SOS for Silverlight. Other than a few web posts I have seen zero documentation for it on MSDN. Even official documentation for the CLR version of SOS seems hard to find, this ancient…
Kris Erickson
  • 33,454
  • 26
  • 120
  • 175
1
vote
1 answer

Calculate size of object such that it include size of all its children and (grand children chain)

Let's say class A contains instances of B and C. B contains D, E and F whereas C contains instances of G, H and I. So when calculating the size of A, I would like to include size of all of its and its child items. When I use !dumpheap -stats…
crazy novice
  • 1,757
  • 3
  • 14
  • 36
1
vote
0 answers

What are the Module specific heaps reported by sos.eeheap?

When I run !eeheap -loader SOS command in WinDbg against a memory dump of any .NET process, it outputs two strange groups of of heaps after the domains and JIT code heap. Here is the output: 0:000> !eeheap -loader Loader…
Woutan
  • 11
  • 1