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
2 answers

Host information from a crash dump file

Is it possible to get information about the host where a dump file was been created e.g., OS version, service pack, .NET framework version etc.
imak
  • 6,489
  • 7
  • 50
  • 73
1
vote
0 answers

Lot of System.Invalidoperation - SOS has no stack trace

I have a Azure Web role. I have setup performance counters and one such counter is .NET CLR excpetions per sec. This seems to have a high value of 110 per sec. When i checked the process ump, I could see there are lot of…
Hari Subramaniam
  • 1,814
  • 5
  • 26
  • 46
1
vote
1 answer

stack trace of an obfuscated assembly

I am using Windbg/SOS and looking into some managed code. Problem is that code is been obfuscated. Any idea how these could be debugged?
imak
  • 6,489
  • 7
  • 50
  • 73
1
vote
2 answers

What does fields in method table mean in this example?

I am trying to understand information stored in the method table. Here is my code. class MyClass { private int x = 60; private int y = 90; public void MethodB() { Console.WriteLine("MethodB"); } public void…
imak
  • 6,489
  • 7
  • 50
  • 73
1
vote
2 answers

search objects with size larger then a threshold

One of class has many object present in .NET heap as discovered through following sos command. !dumpheap -stat -type MyClass Statistics: MT Count TotalSize Class Name 00007ff8e6253494 1700 164123 …
whoami
  • 1,689
  • 3
  • 22
  • 45
1
vote
0 answers

Deadend whilst Debugging Silverlight with WinDBG and SOS

I'm new to WinDBG. I'm looking for the cause of a memory leak and I've got as far as my current knowledge can take me. My MVVM App is leaking MyLovelyView objects. In WinDBG I run !dumpheap -type MyLovelyView and get the following: Address MT…
Montgomery 'monty' Jones
  • 1,061
  • 2
  • 14
  • 27
1
vote
1 answer

How to make a general method to check for winners in Tic-Tac-Toe

I made a Tic-Tac-Toe game in Ruby. The method below checks for a winner in the vertical columns. How do I make it so that this method can be applied to boards of different sizes, like 4x4, 6x6? def vertical_check(array) result = nil if…
Paly CS
  • 19
  • 3
1
vote
1 answer

How to output partial of the result !da address with windbg?

If the array contains 100000000 item , it is too long to output all of the itemsm so may I know if I want to just output ten items of the array with windbg, such as !da top 10 address, how to deal with it ?
Jason
  • 1,115
  • 14
  • 25
1
vote
1 answer

How to get the Method Table for the pinned handle?

I tried to dump the pinned handle by !dumpvc however I don't know the MethodTable for the pinned handle. How to get it? 0:000> !gcroot 0000000384b8a160 HandleTable: 00000002008e1bf8 (pinned handle) -> 000000067fff3978 System.Object[] ->…
Jason
  • 1,115
  • 14
  • 25
1
vote
3 answers

Information about object that thread is waiting for

If I have following stack trace where I see that a thread is waiting on certain lock. How can I get information about the object this thread is waiting for? I was thinking that I should be able to SyncBlk command but seem like it can only give…
imak
  • 6,489
  • 7
  • 50
  • 73
1
vote
1 answer

How do I load sos through windbg in asp.net core

I have an Asp.Net Core application which I would like to examine with windbg. How would I load the managed extensions, such as I would normally do with .loadby sos clr?
PatMac
  • 79
  • 9
1
vote
2 answers

How to get the managed function name from the jitted output in SOS?

I'm debugging the source code for mscorlib1 with WinDbg/SOS. I'm curious, is it possible to get the managed function name if you see its address in assembly? For example, this is some of the code I'm seeing in the disassembly…
James Ko
  • 32,215
  • 30
  • 128
  • 239
1
vote
0 answers

WinDbg/SOS: Is it possible to highlight the source line in managed code when a breakpoint is hit?

I'm a relative newcomer to WinDbg. I'm trying to use it to debug the mscorlib source code in CoreCLR, but I seem to be having some problems getting SOS to highlight the source line for C# code (like WinDbg does for C/C++ code). Here are the steps…
James Ko
  • 32,215
  • 30
  • 128
  • 239
1
vote
1 answer

!ClrStack local variables - is it value type or reference type

How can I determine if the local variable is a value type or a reference type? 0:000> !CLRStack -a OS Thread Id: 0xf74 (0) Child-SP RetAddr Call Site 000000000023e9c0 000007fef6b32012…
imak
  • 6,489
  • 7
  • 50
  • 73
1
vote
1 answer

debug wpf by using sos.dll issue

I am using sos.dll to find memory leak in wpf . And I found a wpf object was not released, then I tried to find out why it is not released by using !gcroot it gave me a warming that: Please note that 6c369950 is not a valid object. snippet of the…
Park Wu
  • 41
  • 5