Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Format:Minidump

From ReverseEngineering.wiki
Format
Platforms Windows; Linux, Android, macOS via Breakpad/Crashpad
Magic 4D 44 4D 50 ("MDMP")
Extensions .dmp, .mdmp
Endianness little
On this wiki Facts · Code · Notes · Topics

Crash-dump container of Windows (.dmp, written by MiniDumpWriteDump and Windows Error Reporting) also produced by Breakpad and Crashpad on Linux, macOS and Android: magic "MDMP" (4D 44 4D 50), a 32-byte header and a directory of typed streams (threads, modules, memory, exception, system info).

Layout

The file starts with a 32-byte header: uint32 Signature (0x504D444D, bytes 4D 44 4D 50), uint32 Version (low 16 bits 0xA793, high 16 bits implementation specific), uint32 NumberOfStreams, uint32 StreamDirectoryRVA, uint32 Checksum (usually 0), uint32 TimeDateStamp (Unix time), uint64 Flags (the MINIDUMP_TYPE bits requested). RVA means a file offset in this format. Fact:Minidump/struct/MINIDUMP_HEADER

At StreamDirectoryRVA lies an array of 12-byte entries: uint32 StreamType; uint32 DataSize; uint32 RVA. The pair {DataSize, RVA} (a LocationDescriptor) is how everything in the format points at data. Stream types 0x0000-0xFFFF are reserved for Microsoft; larger values are vendor streams. Fact:Minidump/struct/MINIDUMP_DIRECTORY

Stream types

Microsoft: 3 ThreadList, 4 ModuleList, 5 MemoryList, 6 Exception, 7 SystemInfo, 8 ThreadExList, 9 Memory64List (full-memory dumps: one base RVA, then the ranges back to back), 10/11 CommentA/CommentW, 12 HandleData, 14 UnloadedModuleList, 15 MiscInfo, 16 MemoryInfoList, 17 ThreadInfoList. Breakpad adds 0x47670001 BreakpadInfo, 0x47670002 AssertionInfo and copies of Linux /proc data (0x47670003-0x4767000D: cpuinfo, status, lsb-release, cmdline, environ, auxv, maps, DSO debug, stat, uptime, fd). LLDB writes 0x4C4C4442. Fact:Minidump/enum/Stream types

Streams worth parsing first

  • SystemInfo (56 bytes): uint16 processor architecture, processor level and revision, uint8 processor count, uint8 product type, OS major/minor/build, uint32 platform id, CSD version RVA, suite mask, then 24 bytes of CPU info (x86: vendor id, cpuid 1 eax/edx). Fact:Minidump/enum/Processor architecture and platform id
  • ModuleList: uint32 count, then 108-byte entries: image base, size, checksum, timestamp, name RVA (a uint32 byte length followed by UTF-16LE), a VS_FIXEDFILEINFO, a CvRecord location and a MiscRecord location. SizeOfImage and TimeDateStamp are the PE header values, the key of symbol server paths for that image; the CvRecord holds the CodeView record (for PEs the RSDS GUID, age and PDB path) used to find the matching PDB. Fact:Minidump/struct/MINIDUMP_MODULE
  • ThreadList: uint32 count, then 48-byte entries: thread id, suspend count, priority class, priority, uint64 TEB address, a stack memory descriptor (uint64 start + location) and the register context location.
  • Exception: thread id, 4 padding bytes, a 152-byte record (code, flags, nested record pointer, address, parameter count, 15 uint64 parameters) and the thread-context location; 168 bytes in total.
  • MemoryList: uint32 count, then 16-byte descriptors (uint64 start address + location). Memory64List starts with uint64 count; uint64 baseRVA, then 16-byte {uint64 start, uint64 size} entries whose data follow one another from baseRVA.

Reversing notes

  • Walk the directory instead of assuming an order; streams may be absent.
  • Names are UTF-16LE with a byte-length prefix, addressed by RVA.
  • Unverified: a dump of a .NET process lists native modules only; managed code needs the runtime's data access library and the Format:.NET metadata (ECMA-335) images from the memory ranges. Test with a dotnet-dump or createdump file.

Module ids in the ModuleList give the key for symbol lookup: see Format:Breakpad symbol file (debug id rules for PDB GUID+age and ELF build ids), Library:Crashpad, Library:Breakpad and Technique:Identifying crash reporting SDKs.

Code & repositories

  • https://github.com/llvm/llvm-project @ 7bebaeed869a17710fb90ba1398aee0f20cc8cf2 · license: Apache-2.0 WITH LLVM-exception (declared by the contributor; GitHub's detector did not recognize LICENSE.TXT)
    LLVM: BinaryFormat/Minidump.h and MinidumpConstants.def, BinaryFormat/Dwarf.h and Dwarf.def, DebugInfo/DWARF/DWARFDebugFrame.cpp
    Tested on: source read, not run: source reading · checked 2026-10-18; last activity 2026-10-18; Note: the latest release ships binaries; the wiki links only the source, never the binaries