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
19
votes
2 answers

Limit !dumpheap (windbg) output to n objects

When using windbg and running !dumpheap command to see the addresses of objects, how can you limit to a specific number of objects. The only way I found was using CTRL+BREAK and a command line on a blog…
Timur Fanshteyn
  • 2,266
  • 2
  • 23
  • 27
19
votes
3 answers

How to install Debugging Tools with Visual Studio 2017 installer?

I need cdb.exe as a debugger for QT Creator. I know that cdb is available as a part of Windows SDK, but is not installed when I install Windows SDK through Visual Studio 2017 installer. On the other hand, if I install Windows SDK standalone…
Greg82
  • 1,000
  • 3
  • 10
  • 24
19
votes
1 answer

A process serving application pool 'X' suffered a fatal communication error with the Windows Process Activation Service

I'm running an ASP.NET 4.0 application under IIS 7.5. Several times a day, our application pool is recycling unexpectedly. Our system log shows the following event when this occurs: A process serving application pool 'X' suffered a fatal…
Scott
  • 13,735
  • 20
  • 94
  • 152
18
votes
9 answers

How to write a sample code that will crash and produce dump file?

I started learned windbg and I found this good post How to use WinDbg to analyze the crash dump for VC++ application? Now I want to follow the instructions and do it step by step. Here is the problem: I need to write some sample code that can…
q0987
  • 34,938
  • 69
  • 242
  • 387
18
votes
4 answers

Dump file analysis of Java process?

If I take dump, using Windbg, of Java process running on Windows Can I analyze (easly?) the Java heap, objects, and threads? Just like I could do with SOS for .Net process? Otherwise - how can I offline debug a problem happening on production…
Saar
  • 1,753
  • 6
  • 20
  • 32
18
votes
1 answer

How do I take a good crash dump for .NET?

I have captured a crash dump of my 32 bit .NET application running on a 64 bit Windows operating system. During the analysis somebody found out that I have a 64 bit dump and told me that it is not possible to analyze this dump due to wrong…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
18
votes
4 answers

win32 window in WPF

Recently our application encountered a strange problem. The application has a win32 window in the WPF window, when resize the WPF window, the problem occurred. StackTrace: Exception object: 0000000002ab2c78 Exception type:…
whunmr
  • 2,435
  • 2
  • 22
  • 35
17
votes
4 answers

WinDbg and SoS, how do I print/dump a large string?

I am debugging a hangdump coming from a production server using WinDbg with the SoS extension. There is a string parameter in one of the stacks, that I need to know the value of. However, it is a rather large string, and WinDbg won't print it when I…
driis
  • 161,458
  • 45
  • 265
  • 341
17
votes
1 answer

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

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…
Pinchy
  • 1,506
  • 8
  • 28
  • 49
17
votes
2 answers

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

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…
Paul Williams
  • 16,585
  • 5
  • 47
  • 82
17
votes
5 answers

Debugging dump of 32-bit process captured on 64-bit machine

I recently received a 64-bit crash dump from a customer. Our processes are all 32-bit, but the customer's machine is running x64 Server 2008. Visual Studio (both 2008 and 2010 Express) is telling me that I have to use the 64-bit version of…
mskfisher
  • 3,291
  • 4
  • 35
  • 48
17
votes
4 answers

Can I run a .NET garbage collection from WinDbg?

I'm looking into why a managed process is using a lot of memory. Is there a way to run GC.Collect(3) from WinDbg, so that I can focus on the actual memory allocation?
Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
17
votes
4 answers

Debugging Windows Kernel from Linux

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…
Joker Thief
  • 443
  • 2
  • 4
  • 10
16
votes
2 answers

Help catching StackOverflowException with WinDbg and ADPlus

Short Version I want an ADPlus script that will do a full memory dump on the first-chance StackOverflowException, before anything is cleaned up, and ignore all other exception types. Log Version After a release of new ASP.NET code, we started…
David Boike
  • 18,545
  • 7
  • 59
  • 94
16
votes
4 answers

Understanding CLR object size between 32 bit vs 64 bit

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…
imak
  • 6,489
  • 7
  • 50
  • 73