Jump to content

Loading a Qt Creator minidump crash file on Windows

From Qt Wiki
Revision as of 16:24, 27 July 2023 by Cristian Adam (talk | contribs) (Initial commit)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

For the rare cases when Qt Creator is crashing (QTCREATORBUG-29425 for example) and producing a MiniDump dmp file, you can get the stack trace of the crash by following these steps.

Debug Symbols

Make sure that you have the debug symbols (

*.pdb

files) installed from the MaintainanceTool.


Source Mapping

The debugger will have to match the source file paths used on the build machine with the local Qt Creator source checkout.

The Qt Creator build machine source path is

C:\Users\qt\work\build\qt-creator

.

Make sure that your Qt Creator source code checkout matches the Qt Creator installation.

LLVM MinGW's lldb.exe debugger

The

cdb.exe

default debugger for Visual C++ kits is not able to quickly load and display the

dmp

stack traces. I have found that LLDB from LLVM MinGW can load the

dmp

stack traces.

Use LLDB for the Visual C++ kit

Now that we have

LLDB

we need to modify the Visual C++ Kit used to load Qt Creator's source code.

Loading the MiniDump core file

Then under

Debug > Start Debugging > Load core file ...

you can load the

dmp

file e.g.

qtcreator.exe.3492.dmp

Examining the stack trace

Now you will be able to see the stack trace that cause the crash: