windbg

windbg first connect then stuck on “Debuggee not connected.” message during kernel debugging

。_饼干妹妹 提交于 2019-11-30 23:43:10
I am trying to do Windows kernel debugging so I have set up two machines for this purpose: HOST - DEBUGGER - The computer that runs the windbg debugger TARGET - DEBUGEE - The computer being debugged Both HOST and TARGET runs Windows 7 32 bit and both have Windows Driver Kit 8.0 installed. I did the following steps: On TARGET I've enabled kernel debugging with following commands: bcdedit /copy {current} /d "Windows 7 wih debug" bcdedit /debug {02b760e4-eafc-11e4-8847-ac1155aec81a} on bcdedit /dbgsettings serial debugport:1 baudrate:115200 bcdedit /set {bootmgr} displaybootmenu yes bcdedit

WinDbg: Copy of SOS.dll x86 4.0.30319.237

别来无恙 提交于 2019-11-30 22:24:50
I am using WinDbg to look into a process dump. The dump has been taken on an x86 server with .NET 4 SP1 (4.0.30319.237). I'm attempting to debug on my x64 machine using the x86 version of WinDbg, but I get the following issue. 0:000> !EEVersion 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.237 SOS Version: 4.0.30319.239 4.0.30319.237 retail Workstation mode SOS Version: 4.0.30319.239 retail build As my machine has taken a recent security patch, the SOS DLL file is

Unable to verify checksum for exe

≡放荡痞女 提交于 2019-11-30 21:34:24
hi i have attached crash dump for an exe and symbols also.but i am getting this error: Unable to verify checksum for abc.exe. What would be the reason for this? Unable to verify checksum is emitted when the checksum in pe header isnt verifiable this can happen if the exe in question was compiled and linked without using /RELEASE linker option normal project based compile link sets this option nmake / batfile based compilation can omit this switch and can lead to this output a simple helloworld compiled and linked with and without /RELEASE Linker Option (pdb not generated for simpilicity and

Crash dump - WinDbg - force PDB files to match doesn't work?

跟風遠走 提交于 2019-11-30 19:21:27
I have a crash dump for a customer's application built with a very old version of our dll (release build, don't have original symbols) that I've been analyzing in WinDbg. In order to get more information, I rebuilt the dll in release mode, with symbols this time, using the same compiler version and I believe the same settings as when the dll was originally built. I added the symbol file to my symbol path, but the WinDbg extension !itoldyouso tells me the module in the dump doesn't match the PDB file. Enabling SYMOPT_LOAD_ANYTHING doesn't help either. !itoldyouso tells me they don't match

windbg first connect then stuck on “Debuggee not connected.” message during kernel debugging

拟墨画扇 提交于 2019-11-30 18:14:58
问题 I am trying to do Windows kernel debugging so I have set up two machines for this purpose: HOST - DEBUGGER - The computer that runs the windbg debugger TARGET - DEBUGEE - The computer being debugged Both HOST and TARGET runs Windows 7 32 bit and both have Windows Driver Kit 8.0 installed. I did the following steps: On TARGET I've enabled kernel debugging with following commands: bcdedit /copy {current} /d "Windows 7 wih debug" bcdedit /debug {02b760e4-eafc-11e4-8847-ac1155aec81a} on bcdedit

SOS Debugging Extensions for Microsoft.NET.CoreRuntime

≯℡__Kan透↙ 提交于 2019-11-30 16:36:09
While trying to track down a fatal null pointer language exceptions (c000027b) in a UWP C#/XAML store project with WinDbg, I cannot get to the CLR Exception object because of a missing SOS debugging extention for Microsoft.NET.CoreRuntime. I was unable to locate a matching sos.dll. What am I missing? Note: The app crash is reproducible, but only happens when not debugging. So running the project under the Visual Studio debugger is unfortunately not a solutions in this case. [...] 0:009> dt -a6 000001c37c6587e0 combase!PSTOWED_EXCEPTION_INFORMATION_V2 [0] @ 000001c3`7c6587e0 -------------------

diassemble managed code issue

放肆的年华 提交于 2019-11-30 16:33:58
I am using Windbg to diassemble managed code (written in C#, console application) using Windbg's !U command from sos.dll. I find when using !U to diassemble a managed function, the diassembled IL code only contains function calls I made, and for remaining parts (non-function call C# code), for example a=a*2 , and foreach loops in C#, only native assembly language code is shown, is that the correct expected behavior? My question is, I want to know whether !U is capable of diassemble managed code binary DLL into IL with all code (besides function call code)? Thanks in advance, George If you want

Where can I find and download different version of mscorwks.dll and mscordacwks.dll?

試著忘記壹切 提交于 2019-11-30 16:31:29
I'm trying to get used to working with WinDbg to troubleshoot crash dumps when I'm able to get them, but every time I do it seems it's asking me for a different version of mscorwks.dll and mscordacwks.dll, and I don't always have access to the machine the dump came from. Other than telling end users they have to dig around in their Windows directory for these files on top of sending me an absurdly large "mini"-dump, is there somewhere I can get copies of different builds of these files? WinDbg doesn't seem to be able to find them through Microsoft's symbols server. You are supposed to get the

diassemble managed code issue

爷,独闯天下 提交于 2019-11-30 16:18:29
问题 I am using Windbg to diassemble managed code (written in C#, console application) using Windbg's !U command from sos.dll. I find when using !U to diassemble a managed function, the diassembled IL code only contains function calls I made, and for remaining parts (non-function call C# code), for example a=a*2 , and foreach loops in C#, only native assembly language code is shown, is that the correct expected behavior? My question is, I want to know whether !U is capable of diassemble managed

windbg: Is it possible to embed Windgb engine in my own program?

核能气质少年 提交于 2019-11-30 16:00:54
问题 I'd like to write a debugging/diagnostic tool which can call Windbg functions to examine a dump file, instead of writing a windbg extension. Is this possible and any references? Thanks a lot. 回答1: Rather than WinDbg, you can use the Debugging API which is implemented in dbghelp.dll. It's documented on MSDN. That reference documentation is rather dry, but it should give you an idea of the capabilities of the API. For example, MiniDumpReadDumpStream is the gateway to examining dump files. 回答2: