[Lldb-commits] [PATCH] D49579: Support parsing minidump files that are created by Breakpad.

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Jul 20 10:55:10 PDT 2018


clayborg added a comment.

In https://reviews.llvm.org/D49579#1170099, @markmentovai wrote:

> This has got to be padding.
>
> Breakpad’s structure definitions don’t nail down alignment as they probably should. A 32-bit system writing an MDRawMemoryList will write what’s intended, but a 64-bit one will need to insert four bytes of padding after number_of_memory_ranges to make sure that the array elements that follow are aligned.
>
> Oops.
>
> Microsoft’s own structure definitions don’t have this problem, and neither do Crashpad’s (example <https://chromium.googlesource.com/crashpad/crashpad/+/20e5aba1aff797bae2e01b08d4099006ab068b77/compat/non_win/dbghelp.h#56>).
>
> I think it’d be preferable to fix Breakpad to not write bogus minidumps. It’s absolutely wrong, and other code will have interoperability problems too.
>
> Greg, if we fix Breakpad, will you still need this for old dumps, or are you OK wiping the slate clean?


We have years of minidumps that already have this issue so it must work unfortunately.


https://reviews.llvm.org/D49579





More information about the lldb-commits mailing list