Loading a Qt Creator minidump crash file on Windows

From Qt Wiki
Revision as of 09:44, 19 February 2024 by Cristian Adam (talk | contribs)
Jump to navigation Jump to search

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.

Qtcreator-debug-symbols.png


Source Mapping

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

Qtcreator-source-mapping.png

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.

Qtcreator-llvm-mingw-lldb.png

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.

Qtcreator-msvc-kit-using-lldb.png

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

Qtcreator-load-minidump-dialog.png

Examining the stack trace

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

Qtcreator-loaded-minidump.png