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
16
votes
5 answers

WinDbg loses connection debugging over network, and target machine freeze

I'm trying to get WinDbg debugging over the network to work, but it always loses connections after I break into the debugger (Debug->Break), and then try to start it again (Debug->Go). However, if I never break into the debugger, it looks like the…
tchau.dev
  • 903
  • 1
  • 11
  • 30
16
votes
1 answer

Analyzing output of !threadpool and !threads in windbg

I have generated dumps on four servers and am analyzing the output of !threadpool and !threads. I noticed the roughly consistent following output: 0:024> !threadpool CPU utilization 0% Worker Thread: Total: 2 Running: 0 Idle: 2 MaxLimit: 200…
JohnW
  • 2,982
  • 1
  • 28
  • 30
16
votes
2 answers

GFlags setting to catch heap corruption (other than Page Heap)?

On one production site our application(*) crashes repeatedly, but non-reproducibly. Analyzing the crash dumps clearly shows that it's a heap corruption: The crashes are at different location, but always access violations inside…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
16
votes
2 answers

why windbg command start with . or !

Is there any difference between . and ! ?
Bin Chen
  • 61,507
  • 53
  • 142
  • 183
15
votes
2 answers

Decoding the parameters of a thrown C++ exception (0xE06D7363)

I've got a crash-dump file (my 32-bit windows application has crashed on a customer computer). Exception code is 0xE06D7363. So, I found this article from MSDN blogs about decoding the exception params. But a recipe from the article doesn't work for…
Loom
  • 9,768
  • 22
  • 60
  • 112
15
votes
7 answers

Object not garbage collected, but contains no gcroots

Running into a prickly problem with our web app here. (Asp.net 2.0 Win server 2008) Our memory usage for the website, grows and grows even though I would expect it to remain at a fairly static level. (We have a small amount of data that gets stored…
Lachmania
  • 4,613
  • 2
  • 20
  • 15
15
votes
3 answers

String comparison in Windbg script

Using Windbg script I want to check the presence of a certain string in an argument of any function. 0:000> g Breakpoint 0 hit eax=00000001 ebx=00000000 ecx=00422fc6 edx=00000000 esi=03d574e8 edi=00000005 eip=76d8fd3f esp=000cf7ac ebp=000cf7c8…
Dev.K.
  • 2,428
  • 5
  • 35
  • 49
15
votes
2 answers

When is a divide by zero not a divide by zero? A puzzle in the debugger (static variable issues)

I'm very confused and I think my debugger is lying to me. I have the following loop in my code: MyClass::UploadFile(CString strFile) { ... static DWORD dwLockWaitTime = EngKey::GetDWORD(DNENG_SERVER_UPLOAD_LOCK_WAIT_TIME,…
Benj
  • 31,668
  • 17
  • 78
  • 127
15
votes
4 answers

Why does the number of threads reported by WinDbg, Task Manager and VS Debugger differ?

While my .Net 3.5 app was running, the Windows Task Manager shown that my app had 16 threads. I collected a memory dump for the process and opened it using WinDbg/SOS. Running the !threads command reveals that I have : ThreadCount:…
Sylvain
  • 19,099
  • 23
  • 96
  • 145
15
votes
4 answers

Are there any WinDBG replacements with a better GUI?

I'm using WinDBG occasionally to analyze problems in production environment, where VS cannot be installed. There's no doubt it's an extremely powerful tool, but using it is a bit annoying. Even though the product is frequently updated, its GUI goes…
Eran
  • 21,632
  • 6
  • 56
  • 89
14
votes
2 answers

Set up WinDbg as the default debugger

Whenever my application throws an unhandled exception, I would like WinDbg to catch that exception on my debugging machine rather than Dr. Watson, etc. How can this be configured?
palm snow
  • 2,392
  • 4
  • 29
  • 49
14
votes
1 answer

What is exactly difference between NTSD and WinDbg?

I am bit confused about Windows Debugging Tools. WinDbg Tutorial Windbg – wraps KD and NTSD with a decent UI. WinDbg can function both as a kernel-mode and user-mode debugger. Does that mean whatever commands I use in NTSD can be used in…
Pranit Kothari
  • 9,721
  • 10
  • 61
  • 137
14
votes
2 answers

WinDbg/SOS: Explanation of !SyncBlk output

I am looking of a description of the output generated by the !SyncBlk command of SOS. Particularly I found no useful explanation on the column "MonitorHeld". This column shows high values in a series of crash dumps. Example: 0:000> !SyncBlk Index …
Alex
  • 1,997
  • 1
  • 16
  • 31
14
votes
1 answer

Failed to load data access DLL, 0x80004005

0:025> !pe Failed to load data access DLL, 0x80004005 Verify that 1) you have a recent build of the debugger (6.2.14 or newer) 2) the file mscordacwks.dll that matches your version of mscorwks.dll is in the version…
C.C.
  • 1,060
  • 3
  • 13
  • 25
14
votes
1 answer

How do I stop windbg from being the interactive debugger?

What is the proper way to undo windbg -I on vista/win7? Is it as simple as deleting the registry keys in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug?
nick
  • 3,368
  • 5
  • 23
  • 26