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
1 answer

Check variable provided by form input to see if it exists in an array. What am I missing?

Not really sure what I have missed, but I would appreciate some help. I never get a true calculation. function isValid(){ var zipCode = $("input[name='zipCode']").val(); var zipCodeRedRiverHonda = [ 11, 22, 33, 44 ]; var…
chadbear
  • 29
  • 6
1
vote
1 answer

how to see my managed objects on the stack?

I use SOS.dll in VisualStudio to debug my C# program. The program is as below. The debug command is !DumpStackObjects. class Program { static void Main() { Int32 result = f(1); } static Int32 f(Int32 i) { Int32 j…
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
1
vote
1 answer

Number of GC perfomred for various generations from a dump file

Is there anyway to get information about how many Garbage collection been performed for different generations from a dump file. When I try to run some psscor4 commands I get following. 0:003> !GCUsage The garbage collector data structures are not in…
whoami
  • 1,689
  • 3
  • 22
  • 45
1
vote
2 answers

Making sense of !address -summary for managed allocations

I am trying to understand how !address -summary report managed allocations. I have following code to try to test it out. I basically change the size of array and then attach windbg to inspect results for !address -summary static void Main(string[]…
crazy novice
  • 1,757
  • 3
  • 14
  • 36
1
vote
2 answers

In Windbg how to get the whole content from !do Command

I'm currently working in a memory issue on a .NET application, I'm debugging the Issue using Windbg I have come across to what the memory issue is, but during the investigation !do command is getting me the object which has a content that is…
Bongo Sharp
  • 9,450
  • 8
  • 25
  • 35
1
vote
0 answers

How to use WinDbg SOS extension to debug a process with 2 .NET runtimes?

I'm debugging a process with .NET 2 and Silverlight 5.1 runtime at the same time using WinDbg SOS. Get the following error if I run any SOS command: Failed to load data access DLL, 0x80004005 Verify that 1) you have a recent build of the debugger…
ken
  • 63
  • 1
  • 4
1
vote
0 answers

Debug Diagnostic not generating dumps on Crash

I have configured DebugDiag to monitor all app pools for crashes. One of our App pool stopped today but DD did not generate any dump files. Event Viewer shows the error: Application Poole is being automatically disabled due to a series of failures…
Chints
  • 21
  • 2
1
vote
1 answer

Where can I find .net 4.0 SOS.dll?

I'm looking for the SOS.dll for .net 4.0. I have 4.5 installed so my SOS.dll is not valid for the 4.0 builds we create. Is there somewhere I can find the old version of this file?
playerone
  • 127
  • 1
  • 8
1
vote
2 answers

Debugging 32 bit application running in 64 bit environment

I have a 32 bit .Net 4.0 application running in a wow64 environment in a 64 bit machine. The application encountered an error and I took a dump with 32 bit taskmanager present in C:\Windows\SysWOW64\taskmgr.exe I am using a 32 bit Windebugger to…
Rockstart
  • 2,337
  • 5
  • 30
  • 59
1
vote
1 answer

How do I evaluate dependency properties in silverlight/WPF from S.O.S.?

This question is fairly straightforward -- I am trying to debug a memory leak in a silverlight application using s.o.s. I was able to get some good info using !gcroot to determine what objects have open references to the one that should be getting…
David Hay
  • 3,027
  • 2
  • 27
  • 29
1
vote
1 answer

Can I see what is referencing an object while debugging?

Is it possible, while debugging a Silverlight app, to view all current references to an object? I know that WPF developers have the ability to use the SOS.dll, but that cannot be loaded in the VS2008 IDE while debugging a Silverlight app. I've…
Andrew Garrison
  • 6,977
  • 11
  • 50
  • 77
1
vote
1 answer

Unable to debug Win 8 app using Mixed (Managed and Native) debugger

In a WinRT app when switching the debugger type to mixed (from managed), the application fails to start.. pausing the debugger shows execution is at: static void Main(string[] args) { global::Windows.UI.Xaml.Application.Start((p) => new…
user1694394
  • 101
  • 3
1
vote
1 answer

.net memory usage reporting difference between task manager and windbg/sos

I have a .net application. In task manager it showing 249 MB usage in Memory (private working set) column. Then I attach windb and ran !address –summary command. Below is its result. The memory usage its showing in .NET heap(RegionUsageIsVAD) is…
crazy novice
  • 1,757
  • 3
  • 14
  • 36
1
vote
3 answers

How to walk a native object in WinDbg?

I am investigating what is taking up lots of memory in my app. Using the !DumpObj command, I can get around the managed objects. But how do I do the equivalent for native objects? For example, this .NET object has a pointer to native code. I am…
noctonura
  • 12,763
  • 10
  • 52
  • 85
1
vote
1 answer

How to closely recreate SOS.dll functionality in C# managed code? How does SOS.dll ObjSize and DumpObject work under the hood?

I have done a lot of research on this topic and am still stumped. I've previously asked this question to stackOverflow and recieved a less than satisfactory response. This leads me to believe that this is a rather advanced topic needing a strong…
nbelisle11
  • 172
  • 2
  • 10