Questions tagged [windbg]

WinDbg is a user and kernel mode debugger for Windows. It can be used to debug both native and managed code.

WinDbg is a GUI-based, user- and kernel-mode debugger for Windows. It is part of the "Debugging Tools for Windows", a free download available from Microsoft.

WinDbg can be used to debug managed code by loading one or more extension DLLs. SOS.dll is available as part of the .NET framework. PSSCOR2.dll and SOSEX.dll are additional extensions for debugging managed code.

2892 questions
136
votes
4 answers

Unable to load SOS in WinDbg

Background: I'm new to WinDbg and trying to get it running for the first time. I want to examine a memory dump I took from a running ASP.NET 4 site hosted in IIS 7 on Windows Server 2008 (x86) and downloaded to my local machine. I installed the…
Kevin Babcock
  • 10,187
  • 19
  • 69
  • 89
99
votes
7 answers

Large Object Heap Fragmentation

The C#/.NET application I am working on is suffering from a slow memory leak. I have used CDB with SOS to try to determine what is happening but the data does not seem to make any sense so I was hoping one of you may have experienced this…
Paul Ruane
  • 37,459
  • 12
  • 63
  • 82
95
votes
14 answers

Getting windbg without the whole WDK?

Does anyone know how to get ahold of windbg without having to download the entire 620MB WDK ISO? All I can find on the net to download the debugger is this link, which says you have to get the whole WDK:…
Niall Connaughton
  • 15,518
  • 10
  • 52
  • 48
94
votes
10 answers

How can I find the data structure that represents mine layout of Minesweeper in memory?

I'm trying to learn about reverse engineering, using Minesweeper as a sample application. I've found this MSDN article on a simple WinDbg command that reveals all the mines but it is old, is not explained in any detail and really isn't what I'm…
KingNestor
  • 65,976
  • 51
  • 121
  • 152
75
votes
4 answers

How can I abort a long operation in WinDbg?

Often WinDbg will enter a state where it is *Busy* performing an operation. Often this is due to some mistake I made trying to dt some_variable_itll_never_find or setting a break point somewhere without symbols or the 1000's of other mistakes I…
Aardvark
  • 8,474
  • 7
  • 46
  • 64
70
votes
3 answers

Is this "should not happen" crash an AMD Fusion CPU bug?

My company has started having a number of customers call in because our program is crashing with an access violation on their systems. The crash happens in SQLite 3.6.23.1, which we ship as part of our application. (We ship a custom build, in order…
Bradley Grainger
  • 27,458
  • 4
  • 91
  • 108
64
votes
2 answers

xperf WinDBG C# .NET 4.5.2 Application - Understanding process dump

Under a heavy load, our application is making a beefy server go to 100% CPU usage. Reading the process dump, looking at the threads, some of them are 10 minutes up. None of them give me any insight when using !CLRStack. The !runaway is giving…
Walter Macambira
  • 2,574
  • 19
  • 28
63
votes
8 answers

Why use WinDbg vs the Visual Studio (VS) debugger?

What are the major reasons for using WinDbg vs the Visual Studio debugger? And is it commonly used as a complete replacement for the Visual Studio debugger, or more for when the need arises.
e k
  • 665
  • 1
  • 6
  • 7
62
votes
2 answers

How to set up symbols in WinDbg?

I am using Debugging Tools for Windows and I get the following error message when starting WinDbg / cdb or ntsd: Symbol search path is: *** Invalid *** **************************************************************************** * Symbol loading may…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
53
votes
4 answers

windbg: Command output to text file

How can I Save Output of a command in WinDbg to a Text File?
Novice
  • 883
  • 1
  • 10
  • 20
50
votes
6 answers

Starting to learn Windbg

After being troubled by an issue that I simply did not have the knowledge to debug, I've just decided that I have to learn how to use Windbg. My only problem: I have no clue where to start :-( I'm not really a WinApi-Guy, having use languages that…
Michael Stum
  • 177,530
  • 117
  • 400
  • 535
48
votes
4 answers

How to use WinDbg to analyze the crash dump for VC++ application?

How do I use WinDbg for analyzing a dump file?
Hara
  • 1,467
  • 4
  • 18
  • 35
45
votes
13 answers

What is your favourite Windbg tip/trick?

I have come to realize that Windbg is a very powerful debugger for the Windows platform & I learn something new about it once in a while. Can fellow Windbg users share some of their mad skills? ps: I am not looking for a nifty command, those can be…
user15071
  • 3,391
  • 8
  • 31
  • 31
44
votes
6 answers

What to do with "The version of SOS does not match the version of CLR you are debugging" in WinDbg?

I'm having a problem with some of my apps. It's a wcf-based app running under IIS6 in Windows 2003 Server (x86): In Event Log I get such an error from "W3SVC-WP" source (EventID=2262): ISAPI…
Shrike
  • 9,218
  • 7
  • 68
  • 105
38
votes
2 answers

How to debug corruption in the managed heap

My program throws an error which it cannot handle by a catch(Exception e) block and then it crashes: Access Violation Corrupted State Exception. This is the weird thing, because, as I know, corrupted state exceptions are thrown from unmanaged…
net_prog
  • 9,921
  • 16
  • 55
  • 70
1
2 3
99 100