Analysing crash dump in windbg

前端 未结 5 1159
攒了一身酷
攒了一身酷 2021-02-06 03:13

I am using a third party closed source API which throws an exception stating that \"all named pipes are busy\".

I would like to debug this further (rather than just step

5条回答
  •  滥情空心
    2021-02-06 03:29

    In postmortem debugging with Windbg, it can be useful to run some general diagnostic commands before deciding where to dig deeper. These should be your first steps:

    .logopen     (See also .logappend)
    .lastevent             See why the process halted and on what thread
    u                      List disassembly near $eip on offending thread
    ~                      Status of all threads
    Kb                     List callstack, including parameters
    .logclose
    

    These commands typically give you an overview of what happened so you can dig further. In the case of dealing with libraries where you don't have source, sending the resulting log file to the vendor along with the build # of the binary library should be sufficient for them to trace it to a known issue if there is one.

提交回复
热议问题