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

Is there a way to check if garbage collection was triggered while analyzing dump file through SOS.dll

I am analyzing a .dmp file for "OutofMemory" exception. The objects are staying in the memory for very long time, so is there a command to check if the garbage collection was triggered by using SOS.dll or SOSEX?
m_d_p29
  • 163
  • 8
0
votes
1 answer

Get primitive value with ClrMD

I have the following class Test { private MyStruct myStruct; } struct MyStruct { private int structValue; } How can I get the value of structValue? I tried the following but with no success field.GetFieldValue(_address,…
Maya
  • 989
  • 4
  • 12
  • 19
0
votes
1 answer

Which version of sos and clr/mscorwks.dll to load?

I have a 32-bit application (targeting .NET 3.5) hosted on a 64-bit machine. I want to analyze the memory dump of this 32-bit application. I captured the memory dump using 32-bit adplus and cdb. I am loading the memory dump into 32-bit windbg. When…
DBK
  • 403
  • 4
  • 13
0
votes
1 answer

How can DebugDiag analyse a dump file without having matching debugging dlls

I am getting following error when trying to analyze a dump file. 0:000> !threads The version of SOS does not match the version of CLR you are debugging. Please load the matching version of SOS for the version of CLR you are debugging. CLR…
whoami
  • 1,689
  • 3
  • 22
  • 45
0
votes
1 answer

.loadby not work, but .load works well

When I try to use windbg, .load C:\Windows\Microsoft.NET\Framework64\v4.0.30319\SOS.dll works perfectly to load SOS extension. But when I tried to used the suggested pattern .loadby SOS OR .loadby sos.dll I could only got a error message…
Tiger.Xing
  • 491
  • 5
  • 14
0
votes
1 answer

Find source of NullReferenceException in dump file

I have several System.NullReferenceExceptions present in the dump file. Is there anyway to know which object is null and what is the call stack that caused this reference? Below is what I see in the dump file. 0:000> !DumpHeap -type…
crazy novice
  • 1,757
  • 3
  • 14
  • 36
0
votes
1 answer

SOSEX mdt command wrong output

I found quite strange issue with sosex !mdt command. I was investigating crash memory dump and was checking the value of System.Web.EtwTrace class static field using !mdt command: !mdt System.Web.EtwTrace [s]_traceLevel: int ... AppDomain…
Nikolay Mitikov
  • 523
  • 2
  • 16
0
votes
2 answers

Displaying multiple ImageView in an activity

Basically my android activity displays a Pizza with 4 different toppings represented by 4 imageview over one another and having their visibility set to gone. There are 4 checkboxes that when checked displays the respective imageview by setting it to…
BarryHub20
  • 27
  • 5
0
votes
0 answers

not able to read Manifest.xml when using

I am incorporating a button which will send an sms to a fixed no. when pressed. I have done the code but when I am incorporating the app is failing to launch. logCat error 01-16…
saptarshi
  • 97
  • 1
  • 14
0
votes
1 answer

Impact of UTF-16 on debugging .NET in WinDbg?

.NET uses UTF-16 to represent strings, which is usually 2 bytes per character. Many debugging tricks (including my own answers) will use the output of !do to get the address of the first character and then use the string length*2 in order to get the…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
0
votes
1 answer

Debug a crash dump from a different machine with different Windows path

I have a crash dump from a Windows Azure server. I can't seem to debug it on my local pc (Win 7) because Azure installs windows on D: and my local pc is installed on C:. This seems to have the effect that when I tried to load sos via .loadby sos…
Ian1971
  • 3,666
  • 7
  • 33
  • 61
0
votes
1 answer

how to use windbg find out SqlConnection.ConnectionString?

I can use "!do" to dump the SqlConnection instance but not sure how to find out its ConnectionString: 0:018> !do 2fa7730 Name: System.Data.SqlClient.SqlConnection MethodTable: 000007fef4455968 EEClass: 000007fef42b6530 Size: 104(0x68) bytes …
wangzq
  • 896
  • 8
  • 17
0
votes
1 answer

setting breakpoint in WINDBG SOS with generically typed classes

Asking for help for the SOS extension command !BPMD in Windbg (i.e. typing !help BPMD) results in a text which contains, among other things, a description on how to break into generecally typed methods. This reads as follows: !BPMD works equally…
Thomas
  • 1,160
  • 3
  • 16
  • 34
0
votes
1 answer

Using SOS, it possible to merge all files in a branch to the trunk in one operation?

Is there any way to tell SOS to merge all the latest files in a given branch into the trunk? I've checked out all the files that are going to change. I can merge single files by selecting the latest branch revision and using the Revision->Merge…
Marty
  • 6,494
  • 3
  • 37
  • 40
0
votes
1 answer

VS2010 loaded SOS.dll successfully but other commands can't be used on my 64bit OS

As you see,I use VS2010 Professional to load sos.dll ,but other commands can't be used and continues throw an Exception,like this: .load sos.dll extension C:\Windows\Microsoft.NET\Framework\v4.0.30319\sos.dll loaded !clrstack PDB symbol for…
Lyon Gu
  • 23
  • 8
1 2 3
22
23