windbg

WinDbg get addresses of all functions from symbols

浪尽此生 提交于 2021-01-27 20:53:31
问题 Executing command x ShittyProject!* I am getting such output <MSIL:00250014 > ShittyProject!Main (void) <MSIL:00250098 > ShittyProject!.ctor (void) <MSIL:00250037 > ShittyProject!.ctor (void) <MSIL:002500ed > ShittyProject!get_Default (void) <MSIL:002500a1 > ShittyProject!get_ResourceManager (void) <MSIL:002500f8 > ShittyProject!.cctor (void) <MSIL:0025002a > ShittyProject!Foo (void) <MSIL:0025006e > ShittyProject!InitializeComponent (void) <MSIL:00250000 > ShittyProject!InitializeComponent

Get stack trace of exceptions in heap

▼魔方 西西 提交于 2021-01-27 13:38:58
问题 I use WinDbg and I want to get exception details. With help of !dumpheap -type Exception command get a list of exceptions in dump but how can I access these exception details? 000007fef84e1298 1 160 System.StackOverflowException 000007fef84e1220 1 160 System.OutOfMemoryException 000007fef84e1388 2 320 System.Threading.ThreadAbortException 000007fef84e1038 2 320 System.Exception 000007fef84ec220 6 384 System.UnhandledExceptionEventHandler 000007fef746ea90 10 1760 System.Net.WebException

Determining which method is holding a ReaderWriterLockSlim WriteLock

…衆ロ難τιáo~ 提交于 2021-01-27 07:40:28
问题 Currently I am analyzing a dump with WinDbg. I ran following commands (following Tess' incredible walkthrough): ~* e !clrstack Which listed me all stacks of all threads. There are 300 running threads with more or less the same stack, so I am just printing the stack of one here ... OS Thread Id: 0x107c (166) Child SP IP Call Site 2bc1e654 77c1015d [HelperMethodFrame_1OBJ: 2bc1e654] System.Threading.WaitHandle.WaitOneNative(System.Runtime.InteropServices.SafeHandle, UInt32, Boolean, Boolean)

Determining which method is holding a ReaderWriterLockSlim WriteLock

陌路散爱 提交于 2021-01-27 07:35:26
问题 Currently I am analyzing a dump with WinDbg. I ran following commands (following Tess' incredible walkthrough): ~* e !clrstack Which listed me all stacks of all threads. There are 300 running threads with more or less the same stack, so I am just printing the stack of one here ... OS Thread Id: 0x107c (166) Child SP IP Call Site 2bc1e654 77c1015d [HelperMethodFrame_1OBJ: 2bc1e654] System.Threading.WaitHandle.WaitOneNative(System.Runtime.InteropServices.SafeHandle, UInt32, Boolean, Boolean)

Windbg - process frozen on SNIReadSyncOverAsync but no deadlock found

馋奶兔 提交于 2020-12-05 10:23:12
问题 I have a strange problem. A process gets frozen/stuck while reading data using System.Data.SqlClient.SqlDataReader on GetValue() function. I am analyzing the process dump using WinDbg. I used SOS commands like !dlk , !SyncBlk , !analyze -v -hang etc. but none of them indicate any deadlocks. The last call on callstack is 000000001a98e8a8 0000000076febd7a [InlinedCallFrame: 000000001a98e8a8] .**SNIReadSyncOverAsync**(SNI_ConnWrapper*, SNI_Packet**, Int32) 000000001a98e8a8 000007fee9e8bca1

CDB crashes in Qt

荒凉一梦 提交于 2020-07-21 06:23:31
问题 I have a Qt 5.4 project on Windows 7 using MSVC 2013 and the CDB debugger. When I attempt to debug the program, the debug log shows that the debugger crashes. I can run the program without debugging. The relevant error message is Cannot execute '"C:...\Qt\build-GENOVA->Clone_of_Desktop_Qt_5_4_0_MSVC2013_64bit-Debug\debug\GENOVA.exe"', Win32 error > 0n50 "The request is not supported." Debuggee initialization failed, Win32 error 0n50 "The request is not supported." What's going on here? 回答1:

The categories of commands of WinDBG?

主宰稳场 提交于 2020-07-05 09:58:27
问题 I see some references and tutorials about the commnads of WinDBG. Some of them like this lm , this .echo , this !running , and this nt!_PDB . What is difference between these categories xxx .xxx !xxx xxx!yyy ? They look so confused. 回答1: There are built-in commands, meta commands (dot commands) and extension commands (bang commands). My personal opinion is that you needn't care too much about the difference of built-in commands compared to meta commands, since there are enough examples where