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

!clrstack -p not giving the values of the parameters for the methods in the call stack

We are trying to analyze a w3wp memory dump using windbg and we found that w3wp process is crashing due to stack overflow. I loaded the psscor4.dll and got the call stack by issuing !clrstack. But I also want to know the paramaters being passed to…
arul
  • 225
  • 2
  • 10
10
votes
2 answers

Download SOS.dll by version number

I got a mini dump that requires SOS.dll 4.0.30319.1008, however the winDBG failed to download the correct dll. The symbol path has already been set to SRV*C:\symcache*http://msdl.microsoft.com/download/symbols Does anyone know where to download the…
mind1n
  • 1,196
  • 3
  • 15
  • 34
9
votes
2 answers

WinDbg/SOS: How to correlate managed threads from !threads command with System.Threading.Thread instances

Using WinDbg and SOS, I have the following: 0:011> !threads ThreadCount: 7 UnstartedThread: 0 BackgroundThread: 4 PendingThread: 0 DeadThread: 2 PreEmptive GC Alloc Lock ID ThreadOBJ State …
Chris Dickson
  • 11,964
  • 1
  • 39
  • 60
9
votes
5 answers

Interpret UInt64 dateData in .NET DateTime structure?

In looking at a DateTime struct in the debugger via SOS.dll, I see... 0:096> !DumpVC 000007feed1ddff8 000000028036d890 Name: System.DateTime MethodTable: 000007feed1ddff8 EEClass: 000007feecbed6b0 Size: 24(0x18) bytes …
noctonura
  • 12,763
  • 10
  • 52
  • 85
8
votes
1 answer

Why is my break point not triggered using !bpmd in Windbg with SOS and .Net Core 3.1?

I recently learned about the process for debugging managed code in Windbg with sos. I've looked through numerous examples and from what I've seen, this should work. But it doesn't. This is a .net core 3.1 app. I'm simply trying to break inside of…
Baruch
  • 87
  • 6
8
votes
1 answer

How to list running tasks in .net memory dump

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…
Zhiliang
  • 101
  • 5
8
votes
1 answer

Windbg with SOS, How to dump a c# struct

How do I dump a struct using windbg, is there a dumpstruct command similar to dumpobject? Or can dumpobject dump structs aswell?
MatteS
  • 1,542
  • 1
  • 16
  • 35
8
votes
1 answer

How to identify array type?

I have an OutOfMemoryException and I'd like to analyze the size and the type of the array which shall be created. I have created a demo purpose dump for that situation and I'm able to get the following information: 0:000> !pe Exception object:…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
8
votes
3 answers

How to break WinDbg in an anonymous method?

Title kinda says it all. The usual SOS command !bpmd doesn't do a lot of good without a name. Some ideas I had: dump every method, then use !bpmd -md when you find the corresponding MethodDesc not practical in real world usage, from what I can…
Richard Berg
  • 20,629
  • 2
  • 66
  • 86
8
votes
2 answers

Debugging Mixed mode (C# , C++) application

I am debugging an issue with a mixed mode (managed and unmanaged) application. The actual issue is within the unmanaged code. I have loaded SOS dll into Windebugger. But is shows me the call stack only upto managed mode since i have loaded SOS dll.…
Rockstart
  • 2,337
  • 5
  • 30
  • 59
8
votes
3 answers

Stepping through Source Code using Windbg SOS Extension

I have recently switched from native to managed code programming. I am using .NET. Since i have been using Windbg for quite some time , i want to use it for managed code debugging as well. My search has brought me to the SOS (Son of Strike)…
Dev28
  • 497
  • 5
  • 16
7
votes
6 answers

live debugging a stack overflow

I have a managed code Windows Service application that is crashing occasionally in production due to a managed StackOverFlowException. I know this because I've run adplus in crash mode and analyzed the crash dump post mortem using SoS. I have even…
JD Conley
  • 2,916
  • 1
  • 19
  • 17
7
votes
2 answers

Windbg - dumping System.Guid

When I use !do in windbg for System.Guid object I got list of fields for that GUID object. How can I see what is value of this GUID (string representation)?
Mijalko
  • 529
  • 4
  • 13
7
votes
0 answers

Is it possible to call a method from WinDbg / SOS

Is it possible to call managed method from windbg? Is there any .NET equivalent for .call? Or how to use it to call managed method? I'm interested in attaching as a live session to a process on production (Release with no pdb) where is no…
frizik
  • 71
  • 2
7
votes
1 answer

what does it mean when an object has no root using !gcroot with SOS?

I'm tracking a memory leak where I'm using !dumpheap -stat !dumpheap -mt !gcroot however !gcroot doesnt show anything, I've been thinking this means the object has no refs but hasnt been collected. but I'm not 100% confident. 0:018> !dumpheap…
stuck
  • 2,264
  • 2
  • 28
  • 62
1
2
3
22 23