sos

Debugging 32 bit application running in 64 bit environment

风流意气都作罢 提交于 2021-02-07 10:20:57
问题 I have a 32 bit .Net 4.0 application running in a wow64 environment in a 64 bit machine. The application encountered an error and I took a dump with 32 bit taskmanager present in C:\Windows\SysWOW64\taskmgr.exe I am using a 32 bit Windebugger to analyze this dump. I loaded the following dlls. 1).loadby sos CLR 2).load mscordacwks ( from the client machine). But still I am not able to use SOS commands like !clrstack,!threads etc. I get the error: Failed to load data access DLL, 0x80004005 What

In Windbg how to get the whole content from !do Command

≡放荡痞女 提交于 2020-01-16 00:36:10
问题 I'm currently working in a memory issue on a .NET application, I'm debugging the Issue using Windbg I have come across to what the memory issue is, but during the investigation !do command is getting me the object which has a content that is excessive large BUT the Content that gets displayed by the command is truncated, Is there a way that I can get the Content in its entirely from the !do command? The result of the command looks something like this: 0:000> !do [Address] Name: System.Byte[]

Use WinDbg to Write Contents of Managed Byte[] to File

戏子无情 提交于 2020-01-10 10:00:10
问题 I have a crash dump from a production server that shows an OutOfMemoryException. The exception itself is not relevant here. I happened to run a !dso to view the stack objects: 0:042> !dso OS Thread Id: 0x1014 (42) ESP/REG Object Name 246eeb24 109a21bc System.UnhandledExceptionEventHandler 246eeb2c 39083998 System.Runtime.Remoting.Proxies.__TransparentProxy 246eeb34 39083b5c System.UnhandledExceptionEventArgs 246eeb48 39073280 System.Byte[] 246eec10 2e720050 System.OutOfMemoryException [snip]

OutOfMemoryException - is this a false alarm

。_饼干妹妹 提交于 2020-01-03 16:46:14
问题 My dump file contains OutOfMemoryException but all the object fields seem to be null. Is it just a false alarm or is there someway to know about this exception? 0:052> !do 000000027fff10e8 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 Version: 4.0.30319.18449 SOS Version: 4.0.30319.34011 Name: System.OutOfMemoryException MethodTable: 000007fcb5476920 EEClass: 000007fcb4f3cd88 Size:

Is it possible to call a method from WinDbg / SOS

青春壹個敷衍的年華 提交于 2019-12-30 09:27:22
问题 Is it possible to call managed method from windbg? Is there any .NET equivalent for .call ? Or how to use it to call managed method? I'm interested in attaching as a live session to a process on production (Release with no pdb) where is no possibility to use Visual Studio Debugger. 来源: https://stackoverflow.com/questions/7151301/is-it-possible-to-call-a-method-from-windbg-sos

Where can I get SOS for Windows 10 IoT?

南楼画角 提交于 2019-12-30 09:00:26
问题 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 uses coreclr like Silverlight did before. 0:000> lm vm coreclr start end module name 6e430000 6e7fd000 coreclr (export symbols) coreclr.dll Loaded symbol image file: coreclr.dll ... Timestamp: Thu Jul 16 21:37:39 2015 (55A88693) ... File version: 4

Understanding CLR object size between 32 bit vs 64 bit

半世苍凉 提交于 2019-12-29 03:57:24
问题 I am trying to understand the object size difference between 32 bit and 64 bit processors. Let’s say I have a simple class class MyClass { int x; int y; } So on a 32 bit machine, an integer is 4 bytes. If I add the Syncblock into it ( another 4 bytes), the object size will be 12 bytes. Why is it showing 16 bytes? 0:000> !do 0x029d8b98 Name: ConsoleApplication1.Program+MyClass MethodTable: 000e33b0 EEClass: 000e149c Size: 16(0x10) bytes (C:\MyTemp\ConsoleApplication1\ConsoleApplication1\bin

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

醉酒当歌 提交于 2019-12-24 23:58:13
问题 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 I load .net 2.0 sos.dll and .net 2.0 mscorwks.dll into windbg and execute !clrstack, I get the following error: "Failed to find runtime DLL (mscorwks.dll), 0x80004005 Extension commands need mscorwks.dll in order to have something to do." What am I

Go back to previous view controller with help of swipe back (to the left)

人盡茶涼 提交于 2019-12-24 01:44:57
问题 I have 2 view controllers. 1: Login page(Main View Controller) 2: Sign Up page .Lets assume that I want to go back from Sign Up page to Login page . How to solve this problem(with Navigation Controller), I am new in swift and iOS . Here is my code in AppDelegate.swift. func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { self.window = UIWindow(frame: UIScreen.mainScreen().bounds) self.window?.backgroundColor = UIColor

Windbg - How can I Dump Strings which match a given filter

时光毁灭记忆、已成空白 提交于 2019-12-23 13:15:38
问题 One can dump all the string using the following command !dumpheap -type System.string How can dump or print only those string which starts or contains a specific "string" Example. I am only intrested to view the string which contains "/my/app/request" 回答1: Use sosex instead of sos for this. It has a !strings command which allows you to filter strings using the /m:<filter> option. 回答2: Use !sosex.strings. See !sosex.help for options to filter strings based on content and/or length. 回答3: Not