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

Is there a Windbg command to find out if a process is a 32-bit one or a 64-bit one?

Is there a Windbg/NTSD command to tell me if a process I have attached to in a live debugging session is a 32-bit one or a 64-bit one? Could you please tell me for both: An unmanaged process? and A managed one? For a managed one, I can find that…
Water Cooler v2
  • 32,724
  • 54
  • 166
  • 336
7
votes
3 answers

sos.dll usage in visual studio 2013

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…
BartMao
  • 651
  • 7
  • 21
7
votes
2 answers

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

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…
bob
  • 452
  • 4
  • 11
6
votes
4 answers

Determine if process dump was generated on x64 or x86 machine

If I have a process dump file, is there anyway of knowing if the dump was generated on a x64 machine or x86 machines?
Silverlight Student
  • 3,968
  • 10
  • 37
  • 53
6
votes
1 answer

How can I download correct versions of mscordacwks and mscorwks?

I am trying to analyze an IIS memory dump usinf Windbg and SOS and ran into an issue with version of files mentioned above. My question is - is there a way I can download the different versions of these files? Assume that I have no access to the…
Devaiah
  • 61
  • 2
6
votes
1 answer

Cannot attach to process in .net 4.0

** post was edited, more info below I've just watched two great videos about Advanced Dotnet Debugging (by Brian Rasmussen) and I am trying to repeat some steps, but just don't know how to proceed with tis error: An attempt to set a processes…
Krzysztof Szynter
  • 835
  • 4
  • 14
  • 24
6
votes
2 answers

How can I view the local variables on the evaluation stack when debugging a .NET CLR application?

I'm using Windbg (with the sos extention) and trying to debug a crashed application. I was able to dump the IL of the call that threw the exception and by examining the code, it seems like I could obtain the information that I need if I could dump…
Mike Dinescu
  • 54,171
  • 16
  • 118
  • 151
6
votes
5 answers

SOS commands fail while live debugging a process which has multiple versions of CLR loaded

I have a ASP.net 2.0 application that I am trying to debug live using Windbg and SOS.dll. When I attach the debugger to the process, I see it loads both 2.0 and 4.0 versions of CLR.[ mscorwks.dll and CLR.dll].I load my SOS by - .loadby sos…
Mallika Ravi
  • 61
  • 1
  • 4
6
votes
1 answer

Comparing two dump files for report on objects with highest growth

For debugging managed applications If I have two dump files, is there anyway to compare these two file? I am thinking about the scenario of memory leaks and if I take process snapshots at different time, I was wondering if there are anyways of…
imak
  • 6,489
  • 7
  • 50
  • 73
6
votes
2 answers

How can I get complete stack traces for mixed-mode minidumps when (WPF) native images are involved?

I have a mixed-mode C++/CLI application which uses WPF. Crashes from our customers are reported as minidumps to our own server. When I try to investigate a minidump using the !pe or !clrstack commands from the windbg sos-extension, I often get…
Peter Schneider
  • 121
  • 1
  • 6
6
votes
1 answer

inspect field on all instances in memory dump

I have a memory dump that I'm using to troubleshoot a client issue. This is a .NET (C#) application. The problem with my application is that too many instances of a particular class are being created. There are 6300 instances of this class when…
Bryan
  • 2,775
  • 3
  • 28
  • 40
6
votes
1 answer

How to find a content of the default TaskScheduler in a dump of a .NET application?

I am trying to find a content of the default TaskScheduler in a dump of a .NET application. How I can do that? An application was hung. I need to make sure that the default scheduler contains a delayed task with a certain delegate.
Lunar Whisper
  • 210
  • 1
  • 6
6
votes
1 answer

Where can I get SOS for Windows 10 IoT?

I have a dump of a .NET Universal App running on Raspberry Pi 2, Windows 10 IoT: 0:000> vertarget Windows 10 Version 10240 MP (4 procs) Free ARM (NT) Thumb-2 Product: WinNt, suite: SingleUserTS Built by: 10.0.10240.16384 (th1.150709-1700) I see it…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
6
votes
2 answers

Why psscor4 command will not run

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…
crazy novice
  • 1,757
  • 3
  • 14
  • 36
6
votes
1 answer

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

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…
mark
  • 59,016
  • 79
  • 296
  • 580
1 2
3
22 23