windbg

Unable to find module 'mscorwks.dll'

夙愿已清 提交于 2019-12-03 05:34:12
问题 I try to use the winDBG to debug a dump file. When I run .loadby sos mscorwks.dll It gave me an error message. Unable to find module 'mscorwks.dll' Has anyone seen this before? 回答1: Don't add the .dll, try just .loadby sos mscorwks 回答2: If you are debugging a .NET 4.0 application, you need to use the following instead of mscorwks : .loadby sos clr Here is a good overview of the commands available for .NET 4.0. Enjoy!! 回答3: I had this issue as well and it turned out to be because the debugger

What is the “Break instruction exception” in WinDbg?

╄→尐↘猪︶ㄣ 提交于 2019-12-03 05:06:42
问题 I'm debugging some random crash bugs, but actually very difficult to go deep into. Because when i open crash dump, only find one error: 0:000> .exr -1 ExceptionAddress: 00000000 ExceptionCode: 80000003 (Break instruction exception) ExceptionFlags: 00000000 NumberParameters: 0 Actually i haven't set any hard-code breakpoint in code, so i search about this exception in google, some people said this exception may be caused by heap corruption. So my question is, Is there any other reason why

ERROR: Symbol file could not be found. windbg.exe

不羁的心 提交于 2019-12-03 05:04:31
问题 I downloaded the symbols from http://www.microsoft.com/whdc/devtools/debugging/symbolpkg.mspx the package (Windows 7 RTM x86 retail symbols, all languages) but it still gives me the same error! Done .sympath but still not working .sympath C:\inetpub\wwwroot\ProductsService\bin\ProductsEntityModel.pdb;srv c:\Symbols http://msdl.microsoft.com/download/symbols Microsoft (R) Windows Debugger Version 6.12.0002.633 X86 Copyright (c) Microsoft Corporation. All rights reserved. Microsoft (R) Windows

How to install WinDbg when VS 2015 is already installed?

妖精的绣舞 提交于 2019-12-03 04:20:12
问题 I'm trying to install WinDbg from this page, just under the Debugging Tools for Windows 10 (WinDbg) section. However, when I download the executable and run it, it tells me that You must uninstall the Windows Software Development Kit - Windows 10.0.10586.15 before you can install the latest version of the kit. I'm guessing this probably has to do with the fact that I already have VS 2015 (and the Windows 10 SDK) installed. However, when I go to the Developer Command Prompt and type in > where

SOS does not support the current target architecture

我与影子孤独终老i 提交于 2019-12-03 04:15:30
问题 I am trying to use windbg to research a hang dump file created on an x64 machine for our x86 process. This is a 4.0 x86 application, so just to get an unmanaged stack, I had to do the following: .loadby sos clr .load wow64exts !sw kL However, everytime I try to get the managed stack via !clrstack I get the error in the title. What am I missing? 回答1: I believe you will have to use the 32-bit task manager, located in C:\Windows\SysWOW64\taskmgr.exe to get a 32-bit dump. More info here: http:/

Memory Leak, why are there so many ReaderWriterLock objects in my finalization queue?

本秂侑毒 提交于 2019-12-03 03:50:58
I have a .NET windows service application with a memory leak. Overview: The service connects to another service via TCP, and writes data to a SQL server database. The service normally runs between 100 and 300 MB depending on how much data it has queued up. It generally takes 3 + days before I noticed the service's memory is getting out of hand, and will have a Out Of Memory exception within 2 weeks of running. I think the issue might be related to a massive number of objects that are not leaving the finalization queue. I have attached to the service with Windbg and run the !FinalizationQueue

How can I create objects based on dump file memory in a WinDbg extension?

て烟熏妆下的殇ゞ 提交于 2019-12-03 03:44:59
I work on a large application, and frequently use WinDbg to diagnose issues based on a DMP file from a customer. I have written a few small extensions for WinDbg that have proved very useful for pulling bits of information out of DMP files. In my extension code I find myself dereferencing c++ class objects in the same way, over and over, by hand. For example: Address = GetExpression("somemodule!somesymbol"); ReadMemory(Address, &addressOfPtr, sizeof(addressOfPtr), &cb); // get the actual address ReadMemory(addressOfObj, &addressOfObj, sizeof(addressOfObj), &cb); ULONG offset; ULONG

How to make my code creating dump file before crash?

爱⌒轻易说出口 提交于 2019-12-03 03:32:24
I have some code in C# and C++ ( in one project ). This code have some crash and i trying t find it. but this crash is not reproduce any time - and i can't find it. I want to configure the code / the windows OS to create dump file on the crash. the limitation that i have are ... I have limited access to the machine that this crash reproduce on - this is not developing machine .. this is testing Lab machine So, How to do it ? How can i change the properties in the solution that a new dump file will created on any crash? (the aim is to be able to analyze the dump in the windbg tool) I find it

Debugging Windows Kernel from Linux

主宰稳场 提交于 2019-12-03 03:17:26
I used to debug the Windows Kernel using VirtualKD , WinDBG and a single Virtual Machine. Recently I got a Linux machine, and now I wonder- What's the easiest way to debug the Windows Kernel when your host is unable to run VirtualKD/WinDBG* ? I assume the solution will require two Virtual Machines, but I rather have two instances hosted on my actual machine rather than having an instance residing inside another virtual instance... Is there anyway to make that work? Thanks in advance! *Wine is the last resort for stability reasons... Solved! Basically, I ended up using two (VirtualBox) VMs

WinDbg takes extremely long time to loading symbols; is searching every directory in large network UNC symbol store

匿名 (未验证) 提交于 2019-12-03 03:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've spent several days trying to speed up loading of symbols when debugging crash dumps using WinDbg , and I'm unable to get past a particular problem. The issue is that when symbols for a module in the dump doesn't exist in any accessible symbol store or symbol server location (e.g. it's a third-party modules without available symbols), WinDbg will spend literally hours looking for them. I've set up my symbol path correctly to properly set the search order and the cache directories: .sympath cache*C:\SymbolCache1;\\our.corp\SymbolStore;SRV