Reading Minidumps

29 views
Skip to first unread message

Robert Sesek

unread,
Sep 22, 2014, 6:37:51 PM9/22/14
to crashp...@chromium.org
Has any thought been given to how one could use Crashpad to read and/or process minidumps? 

Right now, most of the //crashpad/minidump directory is geared towards writing, rather than having an in-memory representation and then something that writes that representation. (This makes sense given current priorities…) But if the plan is for Crashpad to ultimately replace Breakpad, then I imagine a reader/processor will have to be written. I'm just wondering if there is a rough idea as to what this looks like.

rsesek / @chromium.org
Message has been deleted

Mark Mentovai

unread,
Sep 22, 2014, 7:19:13 PM9/22/14
to Robert Sesek, crashp...@chromium.org
I’ve given some thought to this. There are a series of interface classes in the Snapshot family (yet to be reviewed) that can be backed by any reasonable implementation. Everything we’ve been working on recently, like ProcessReader and MachOImageReader, are infrastructure for the ProcessSnapshotMac implementation, which is the only Snapshot that exists so far. In the future, there will also be a MinidumpSnapshot implementation, that can provide the same type of data, fetching it from a minidump file. The minidump writer produces minidumps from Snapshot objects, but I imagine that the future Crashpad-based processor will also consume Snapshot objects. This opens the door for interesting things like a “live” processor (which would be a processor using a ProcessSnapshotMac as its data source) and dump format converters (such as connecting a MinidumpSnapshot to a MachOCoreWriter, or a MachOCoreSnapshot to a MinidumpWriter).

--
You received this message because you are subscribed to the Google Groups "Crashpad-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crashpad-dev...@chromium.org.
To post to this group, send email to crashp...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/crashpad-dev/CA%2BGwDTpOM%3DJaEkKwSBK%3D3e3MXN2ZLzPFQffRTZXuH-KrVKKkdA%40mail.gmail.com.

Reply all
Reply to author
Forward
0 new messages