windbg

Windbg symbol load issue

Hello everyone, I am using Windbg to load a crash dump from managed code (C#, a console application built for Any CPU). I am debugging on x64 platform. I have put the related pdb file into symbol path. But when I use lm command to see load models, the symbol of the console exe application can not be loaded. I have tried to execute .relo...

OutOfMemory, but no gcroots for many objects

We are developing a rather large Windows Forms application. In several customers' computers it often crashes with OutOfMemory exception. After obtaining full memory dump of the application moments after the exception (clrdump invoked from UnhandledException handler) I analyzed it with ".NET Memory Profiler" and windbg. The Memory Profil...

symbol issue when debugging C# code

Hello everyone, I am using Windbg to load a crash dump from managed code (C#, a console application built for Any CPU), and crash dump is created on x64 platform. I am debugging on x64 platform. I have put the related pdb file into symbol path. But Windbg always find the symbol from a strange folder, here is an example (when I got from ...

private symbol loaded but no line number displayed?

Hello everyone, I am using Windbg to load a crash dump from managed code (C#, a console application built for Any CPU), and crash dump is created on x64 platform. I am debugging on x64 platform. I have using the following command to load private symbol of my application. Here are what the commands I am using in Windbg. (set symbol pat...

diassemble managed code issue

Hello everyone, 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 ...

How to determine why an object is pinned

I am trying to track down why some objects in my application are pinned. The objects I have looked at so far are object arrays !gcroot is showing the array as being pinned but I do not know how to figure out why it is pinned. Output: 0:000> !dumpobj 0239cea0 Name: System.Object[] MethodTable: 793041d0 EEClass: 790eda54 Size: 528(0x2...

Windbg - Detecting symbols needed for a crash dump

Hello, I have a crash dump file that I need to analyze using windbg to run some tests. Due to some restrictions I can't comment, my symbols folder can only contain the symbols needed to analyze this crash dump. Is there a way to know the exact symbols needed by a dump? If it helps, I can first analyze this dump in another environmen...

Extract debugging information from a msys/mingw gcc built dll using rebase.exe?

I'm trying to analyze a mini crash dump and need symbol files in order to get more details about the crash. Im currently just seeing: "034eff74 0086eee9 00000000 0089d58d 034eff94 app_integrator!ZNK14ACE_Data_Block4baseEv+0x6" Is it possible to extract debugging information from a msys/mingw gcc built dll into a windbg readable format ...

Is there any good user interface add-on for WinDbg for not to use command line debugging?

I have to use WinDbg but I do not like gebug.exe command-line style. Is there any plugin or anything else which makes it look and feel like 21st century debugger? ...

How to tell if a .Net control is visible using windbg

I got a crashdump where we're debating whether a control was visible to the end user or not. Looking with !do I can't see any explicit field that holds the true/false value matching up with the Visible property, which doesn't surprise that much as we're probably down in win32 teritory. Does anyone know how to deduce what Visible would ha...

Why should i use WinDbg?

Possible Duplicate: Why use windbg vs the Visual Studio (VS) debugger ? I Use Visual Studio 2005 for C++ development. What does WinDbg give me, that Visual Studio doesn't? I know its good for client installations and remote debugging, as it's easy to install. Other reasons? What are your favorite functions/commands? ...

Windbg command to get all gdi handle count from a crash dump

I have a crash dump and I suspect GDI leaks to be a cause of the crash From the full crash dump is there anyway to find out the number of GDI handles used by my process when it crashed? regards G ...

Finding symbols for C++ source file

Hi, I have a project that is C++ WIN32 project. I found a problem that some symbol can be recognized by the windbg but some don't. I don't know why. The characteristics are: 1) both are C++ method 2) both function are in one .cpp file 3) the two functions are very close in the source file and neither of them are enclosed by a #...

The symbol packaged downloaded from MS site

Hi, I just downloaded the symbol package for WIN7 RTM but in my windbg it still find the symbol information for RegQueryValueEx(). From the windbg information it said some of the OS dll symbol is not provided in the pdb file, but how can I know which ones are not provided and which one does? Specifically the symbol I am searching for ...

why windbg command start with . or !

Is there any difference between . and ! ? ...

windbg: private pdb symbols

what is the difference between (private pdb symbols) and (pdb symbols)? ...

Very strange windbg behavior with WaitForSingleObject()

Below is my program and I am trying to get the call stack when the process is blocked in WaitForSingleObject() call using windbg. The strange thing is when the process is blocking, windbg only prints out very strange stack. wow64cpu!TurboDispatchJumpAddressEnd+0x690 wow64cpu!TurboDispatchJumpAddressEnd+0x484 wow64!Wow64SystemServiceEx...

what is wkernel32.dll

When I am trying to reload the symbol for kernel32.dll, the windbg always complain below: DBGHELP: d:\symbols\wkernel32.pdb - file not found DBGHELP: d:\symbols\dll\wkernel32.pdb - file not found DBGHELP: d:\symbols\symbols\dll\wkernel32.pdb - file not found DBGHELP: C:\Windows\syswow64\wkernel32.pdb - file not found DBGHELP: wkernel32....

How to walk a native object in WinDbg?

I am investigating what is taking up lots of memory in my app. Using the !DumpObj command, I can get around the managed objects. But how do I do the equivalent for native objects? For example, this .NET object has a pointer to native code. I am stuck here... how do I do the equivalent of !DumpObj from here? I have all the source and...

Why aren't these WCF related resources cleaned up?

Here is my scenario: Start my test program and immediately break into the debugger (WinDBG) Take a !DumpHeap -stat and observe there are no System.Net* or System.Xml* objects anywhere Create my WCF client, make a WCF request Close the WCF client and force GC. Take a !DumpHeap -stat and observer there are tons of System.Net*, System.Xml...