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

SOS.dll ObjSize and DumpObject under the hood intricacies. How to recreate SOS.dll in C#?

This question is largely based on my previous post found here. I'm attempting to recreate some of the functionality of the SOS.dll using reflection. Specifically the ObjSize and DumpObject commands. I use reflection to find all the fields and then…
nbelisle11
  • 172
  • 2
  • 10
1
vote
2 answers

Lost in WinDbg with 64-bit dump on 32-bit machine

I'm a newbie with WinDbg and got this dump from the WER ReportQueue folder on a 64-bit Windows 2008 Server. I need to examine the dump and want to do so on my developer machine on which I've installed the Debugging Tools for Windows package. When I…
Johan Andersson
  • 185
  • 2
  • 8
1
vote
1 answer

Client Machine configuration from memory dump

How do I find the RAM size of a client machine using windbg from the memory dump of a process. I tried vertarget, !address-summary. But i am not able to find the RAM details in any of these commands.
Rockstart
  • 2,337
  • 5
  • 30
  • 59
1
vote
1 answer

Breakpoint not working for SOSEX using !mbp

I'm trying to debug a C# application using SOSEX in WinDbg for 32 bit environment in .NET Framework 4.0. I use sosex.dll for 32 bit v4.0. Here are the steps: sxe ld:mscorlib sxe ld:clrjit load Path to sosex.dll !mbp application.cs 34 (this sets…
user1502952
  • 1,390
  • 4
  • 13
  • 27
1
vote
1 answer

Windbg Cant get values of locals

Iam using Windbg to debug my .net application and loading SOS.dll. After set breakpoint and hit it using command "P" to step into code. Every time a use command "P" I use also Command "!CLRStack -a" to get value or address of parameters and locals…
1
vote
1 answer

Dumping array using Windbg

In C#,I have an object say Shape which has two fields area and length. I got a shapeList which is a collection of Shapes. I have got a shapeList address in my crash dump. I need a script in windbg that iterates through each item in the shapeList…
Rockstart
  • 2,337
  • 5
  • 30
  • 59
1
vote
2 answers

Cannot run 'dd' command in Visual Studio 2010 immediate window

I am debugging a managed application using Son of Strike (SOS) in Visual studio 2010. I want to run a raw memory dump from a specific location, but I get "End of expression expected" error. If I attach WinDbg, then I can run same 'dd' command. How…
imak
  • 6,489
  • 7
  • 50
  • 73
0
votes
2 answers

how to add breakpoint if a method is not jitted

I have an application MyApp.exe. This app uses an assembly MyAssembly1.dll which itself refers to MyAssembly2.dll. Within MyAssembly2, I have a class MyClass that has a method MyMethod. This method is called after user go through several dialog…
imak
  • 6,489
  • 7
  • 50
  • 73
0
votes
0 answers

why i see AppDomain & SharedPerformanceCounter instance on thread stack

When I look run !dso command against a thread, I see following. What I don't understand is why do I see System.AppDomain and System.Diagnostics.SharedPerformanceCounter although in the code I am doing anything specific related to these. 0:090>…
palm snow
  • 2,392
  • 4
  • 29
  • 49
0
votes
2 answers

Strange number of handles in WaitForMultipleObjectsEx

Looking the output of kb, this thread is waiting for some event. Now the first argument for this method is number of handles its waiting for but as you can in the output it has a value of 0024e154. I usually see a number like2, 3, 4 etc. Any ideas…
palm snow
  • 2,392
  • 4
  • 29
  • 49
0
votes
1 answer

InlinedCallFrame in call stack

Sometimes in managed calls stack, inspite any method call I get InlinedCallFrame. What does this exactly mean? 0024e6dc 6fe1e38f Microsoft.Win32.SystemEvents.OnUserPreferenceChanged(Int32, IntPtr, IntPtr) 0024e6fc 6fa64c29…
palm snow
  • 2,392
  • 4
  • 29
  • 49
0
votes
1 answer

What is causing this application to be hung (likely on native side)

I have a .net managed application that interops with a native dll. Problem is that sometimes the application just hangs and doesn't respond. Looking at the managed side, I don't see any threads callstacks doing any wait or sleep. SOS !threads and…
Silverlight Student
  • 3,968
  • 10
  • 37
  • 53
0
votes
1 answer

!address -summary command output for latest Windbg/SOS

I downloaded and installed the latest version (6.12.2.633) of Debugging tools for windows. Running it with .NET 4.0. When I run !address -summary command seem like its output is different than what I used to see with previous version of Windbg/SOS…
Silverlight Student
  • 3,968
  • 10
  • 37
  • 53
0
votes
1 answer

Windbg C# dump analysis: how to retrieve the module an object belongs to?

I have taken the memory dump of a running process (Task manager, right-click, "Create dump file", and now I'm investigating it using Windbg. !Dumpheap -stat has revealed an enormous amount of objects, which seem to be collections of 14 entries: the…
Dominique
  • 16,450
  • 15
  • 56
  • 112
0
votes
1 answer

How i can send a sms message (SOS) to a saved contact by shaking the phone - Android Studio

I want to send an sms to all saved contact only by shaking the phone. But i don't know how to link the database of saved contact and the code of sendind sms. Please help me with that. This is the code for sending an sms by shaking the phone : public…