Skip to content

Documentary : improve crashlog .dmp file usage documentation - #351

Merged
atsju merged 1 commit into
masterfrom
JST/ReadmeDebug
Aug 3, 2026
Merged

Documentary : improve crashlog .dmp file usage documentation#351
atsju merged 1 commit into
masterfrom
JST/ReadmeDebug

Conversation

@atsju

@atsju atsju commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

I have had some nasty crash due to "remove lens distorsion" (bad usage when testing the UI) that I wanted to investigate.
This method helped me troubleshoot it. It's only documentation update.

Technical explanation :

DFTFringe is built with MinGW/GCC using force_debug_info and separate_debug_info, which produces a DFTFringe.exe.debug file containing DWARF debug information. Crash dumps are standard Windows minidumps generated with MiniDumpWriteDump().

WinDbg can open the dump and provide a valid stack trace, but because the application is built with MinGW, it cannot fully resolve symbols and source locations like it would with a PDB-based build (MSVC or Clang/MSVC). Application frames therefore usually appear as DFTFringe+offset.

To obtain the corresponding source file and line number, use addr2line with DFTFringe.exe.debug. The offset reported by WinDbg is an RVA and must first be converted to the image virtual address expected by DWARF by adding the executable image base (0x140000000).

In short:

MSVC and Clang/MSVC generate PDB files, which are fully supported by WinDbg.
MinGW generates DWARF debug information stored in DFTFringe.exe.debug.
WinDbg can analyze the minidump but cannot fully use the DWARF symbols.
Use WinDbg to identify the crashing address, then use addr2line on DFTFringe.exe.debug to recover the function, file and line number.

We might want to build with a different compiler then mingw in the futur.

@atsju
atsju requested review from githubdoe and gr5 August 3, 2026 11:51
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

🚀 New build available for commit 46b5c25
Download installer here

@gr5

gr5 commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

This is great. I could have used this information in the past.

@atsju

atsju commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator Author

This is great. I could have used this information in the past.

Me too. But I havent been able to exploit it in the past. Experience ... and AI.

@atsju
atsju merged commit 0462338 into master Aug 3, 2026
14 checks passed
@atsju
atsju deleted the JST/ReadmeDebug branch August 3, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants