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
0 answers

AppDomain Stage Meaning

In windbg using sos I can dump all the appdomains and they have a stage on them. I can't find any documentation stating what each of these stages mean. I assume this is documented but the property must not be stage and windbg just calls it stage, or…
Max Young
  • 1,522
  • 1
  • 16
  • 42
0
votes
1 answer

UNKNOWN classes in dumpheap sos plugin in linux

I try to detect memory leak on my .net core server and make memory dump via gcore. Try to analyze it via lldb and sos on debian 9. ulimit -c unlimited sudo gcore -o dump $(pidof dotnet) sudo lldb-4.0 $(which dotnet) --core ./dump.MY_PID (lldb)…
0
votes
1 answer

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug'

I need help what is the problem i cant fix it i am so frustrated /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / …
0
votes
2 answers

cannot run sos comamnd for Silverlight 4.0 app in IE 8.0

I am trying to debug my silverlight application running under IE8.0. Its using .NET framework 4.0 and Silverlight 4.0. So I attach Windbg to IE running instance, I understand that with IE8 I need to connect to right instance of internet explorer. So…
Silverlight Student
  • 3,968
  • 10
  • 37
  • 53
0
votes
1 answer

Unable to find root cause of ArgumentException

I'm investigating the cause of the huge amount of ArgumentException in an application (and I'm suspecting that its main reason for memory fragmentation/out of memory exception). The problem is that I can't find where this exception is coming from.…
0
votes
1 answer

Source code information missing with SOS/SOSEX

I'm using cdb with the sosex extension. Everything seems to be working fine except that I am unable to get any !mbp breakpoints to to resolve and !mu/!muf don't show source info. Got going with the following commands: .lines sxe ld:clrjit g .loadby…
Tom
  • 1,204
  • 2
  • 10
  • 25
0
votes
0 answers

Difference between !sos.rcw and !sos.dumprcw output

Recently I needed to debug a memory dump of a CLR process where the finalization queue was being blocked by a COM object. While I have largely identified the issue, I am not sure about the difference between some of the output and seek some…
Dono
  • 1,254
  • 13
  • 30
0
votes
0 answers

Visual Studio can locate mscordacwks but WinDBG fails

I've been working on a tool to pull some information out of crash dumps (minidumps) and create a report. In some cases I'm finding that WinDBG is unable to automatically download the correct combination of mscordacwks and SOS. The source of the…
rupertmulrenan
  • 355
  • 1
  • 3
  • 13
0
votes
0 answers

"Missing" information with `Name2EE`

Advanced .NET Debugging says that, when I run !Name2EE I should get some output that includes the JITTED Code Address. 0:004>!name2ee 03Breakpoint.exe Advanced.NET.Debugging.Chapter3.Breakpoint.AddAndPrint Module: 00c2db8c…
BanksySan
  • 27,362
  • 33
  • 117
  • 216
0
votes
1 answer

View managed stack from a full memory dump

My managed process is suspected to have caused a BSOD at a client site. I received a full memory dump (i.e.: including kernel, physical pages only) - but still am not able to inspect my process' stacks. After switching to my process context…
Ofek Shilon
  • 14,734
  • 5
  • 67
  • 101
0
votes
1 answer

windbg: version of loaded assemblies

does anybody know how to figure out the assembly versions (not file versions) of loaded assemblies if I have a full memory dump? Suppose I have a full dump of the .net process and I found two assemblies with the same name loaded in one AppDomain. I…
AC.
  • 714
  • 8
  • 27
0
votes
1 answer

onchange event on a textbox when i type a number or string

So i got this exercise at my school and i cant for the life of me find the answer here is : Take advantage of the onchange event to make a page with a text box where if the user types a number, it will turn yellow if you type a String then turn…
0
votes
1 answer

For k collections all of which have length = N, finding common elements with a O((k-1)*N)

I am supposed to write a code which is supposed to find the common elements existing in k collections of N-elements efficiently. All collections are sorted and they may have various sizes, but let's assume same sizes for the sake of simplicity here.…
0
votes
1 answer

3GB strings in Gen 2, How to dump limited large objects in Gen 2 only?

by using command !dumpgen 2 -stat, I find that there are 3GB strings, 23,531,124 3,110,704,598 System.String, if I dump all of them, it will hang the windbg, is there any way I can only dump limited large object result in Gen 2 only? thus I…
Sky Line
  • 47
  • 1
  • 7
0
votes
1 answer

What command in SOS windbg can dump heap for Gen 2 and LOH only?

I got a high memory dump to investigate. when I use !eeheap -gc, it gives 20 heaps, each heap has Gen 2 and LOH address info and size info. However I want to get a overall summary of Gen 2 and LOH, and see a statistic summary on what objects are…
Sky Line
  • 47
  • 1
  • 7