Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Issue 1696573003: Ensure Linux minidump writer flushes minidump header early. (Closed)

Created:
4 years, 10 months ago by Ted Mielczarek
Modified:
4 years, 10 months ago
Reviewers:
Lei Zhang
CC:
google-breakpad-dev_googlegroups.com
Base URL:
https://chromium.googlesource.com/breakpad/breakpad.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Ensure Linux minidump writer flushes minidump header early. If the Linux minidump writer crashes while writing a dump, the dump might contain some useful information, but the header will be empty because TypedMDRVA's destructor flushes the data, and the header var doesn't go out of scope until the end of the `Dump` method. This fixes that problem by putting the header in a shorter block scope. We've seen this problem in some Android dumps in the wild, like: https://crash-stats.mozilla.com/report/index/cef5b777-02d1-43c2-bf40-133ab2160209 R=thestig@chromium.org BUG=https://bugzilla.mozilla.org/show_bug.cgi?id=1247978 Committed: https://chromium.googlesource.com/breakpad/breakpad/+/e5adfac03b410520a5ffc4a1adab570445d34e30

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -11 lines) Patch
M src/client/linux/minidump_writer/minidump_writer.cc View 1 chunk +18 lines, -11 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
Ted Mielczarek
4 years, 10 months ago (2016-02-12 19:19:24 UTC) #1
Lei Zhang
lgtm
4 years, 10 months ago (2016-02-12 19:35:21 UTC) #2
Ted Mielczarek
4 years, 10 months ago (2016-02-12 20:50:18 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
e5adfac03b410520a5ffc4a1adab570445d34e30 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698