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

The following prevent me from using sos, help

Failed to load data access DLL, 0x80004005 Verify that 1) you have a recent build of the debugger (6.2.14 or newer) 2) the file mscordacwks.dll that matches your version of mscorwks.dll is in the version directory …
user496949
  • 83,087
  • 147
  • 309
  • 426
0
votes
0 answers

!dumpheap -min for strings does not work as expected

It seems like !DumpHeap does not handle string types correctly when given the size parameter. Please, observe: 0:000> !DumpMT 00007fff6c9c16b8 EEClass: 00007fff6c3447a8 Module: 00007fff6c341000 Name: …
mark
  • 59,016
  • 79
  • 296
  • 580
0
votes
0 answers

How to determine which of the IDisposable type using memory

I have a .NET application that uses many IDisposable types. In one of environment, application is showing high memory usage. I collected a dump file and see following. 0:000> !address -summary Mapping file section regions... Mapping module…
jim crown
  • 473
  • 3
  • 11
0
votes
2 answers

What i am doing wrong to disassembled code

I am trying the code sample provided at Naveen's blog at http://naveensrinivasan.com/2010/06/11/piracy-in-net-code-%e2%80%93-part-3-%e2%80%93-even-when-the-code-is-obfuscated/. When he runs the !u ($ip) command, he is getting a nice disassembly but…
imak
  • 6,489
  • 7
  • 50
  • 73
0
votes
0 answers

"Frames may be missing no binary loaded" for all my assemblies in the dump file, why?

I have a dump file which I'm trying to debug. But when I open it in the Visual Studio, I can't see any callstack for my code (only system DLLs), for my code it is only Frames may be missing no binary loaded for xxxx.dll I do have right…
pastorgluk
  • 191
  • 1
  • 1
  • 7
0
votes
2 answers

Debugging .net using SOS

I have created a dump using clrdump. When I go to view it using sos, I load up sos and then run !dso, but the error I get is: PDB symbol for mscorwks.dll not loaded However, in the module window it says that the symbol is loaded. I have obtained…
Darren Young
  • 10,972
  • 36
  • 91
  • 150
0
votes
1 answer

Windbg: Breakpoint SOS, or SOSEX.DLL name of the method

While debugging with SOS or SOSEX in managed code, I can set breakpoints using !mbm *!*GetSubscription for example, is there any way to get the method name? Example: bp 8373772 ".printf \"methodname\";gc". The idea is to have the name of the methods…
jrpz
  • 73
  • 1
  • 8
0
votes
2 answers

SOS flashlight - How to

I made a flashlight app and now I want to add sos morse code flashing. This is my code for it but it doesen't work quite well, it blinks too fast so I need some kind of a delay, can anyone help? public void sos(View v) { String myString =…
0
votes
1 answer

How do I find which assembly could not be loaded by looking at the dump file?

I see this when analyzing my dump file: 0:000> !pe Exception object: 0000000000ec2228 Exception type: System.IO.FileNotFoundException Message: Could not load file or assembly 'MyTest.exe' or one of its dependencies. The system cannot find…
Denis
  • 11,796
  • 16
  • 88
  • 150
0
votes
1 answer

Silverlight application under IE attached to Windbg

Is it possible to attach Windbg to a Silverlight based application running under internet explorer ( or any other browser)? If its possible, then will I have to attach windbg to the browser and this will get me into that mini CLR under Internet…
imak
  • 6,489
  • 7
  • 50
  • 73
0
votes
2 answers

Why syncblk is located at -4 and not at 0?

So if you want to look at sync block for an object, under sos you have to look at -4 bytes (on 32 bit machines) before the object address. Does anyone know what is the wisdom for going back 4 bytes? I mean they could have sync block at 0, then type…
imak
  • 6,489
  • 7
  • 50
  • 73
0
votes
0 answers

How to get the class name if only knowing the object pointer?

We can get the method table and EEClass if we know the object pointer in .Net managed code. Based on that, but how the Windbg with SOS to get the object name? Just curious.
ken
  • 63
  • 1
  • 4
0
votes
1 answer

"Failed to request ThreadStore" - WinDbg debugging live process

I am debugging the live process (not dump) of PresentationHost.exe. It used to works fine, but suddenly few days ago I get the above error message. !Threads, !pe, virtually all SOS command doesn't work. All I remember is that I installed Visual…
chenz
  • 730
  • 7
  • 13
0
votes
0 answers

How to find related SqlCommand object

I am looking into a dump file for high memory issue. One thing that stands out in that dump file is over 300,000 DataRow objects. We run queries against sql database that are stored in-memory DataTable objects. I would like to know that what query…
whoami
  • 1,689
  • 3
  • 22
  • 45
0
votes
0 answers

Silverlight SOS 5.1.40620 for WinDbg is missing

I already downloaded the latest SDK and Runtime. The older runtime 5.1.40416 contains the SOS extension. Where do i get the current one? Is it possible to convince WinDbg to use the old one as an alternative?
sanosdole
  • 2,469
  • 16
  • 18