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

Issue 2652133004: Sanitize mini- and microdumps for webview (Closed)

Created:
3 years, 11 months ago by Tobias Sargeant
Modified:
3 years, 10 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, android-webview-reviews_chromium.org, sadrul, kalyank, Primiano Tucci (use gerrit), boliu
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Sanitize mini- and microdumps for webview Enable the breakpad logic for sanitizing dumps in webview. Also skip dumping any thread stacks that do not reference WebView's text section. To determine the webview text section address range, we provide the address of a function that we know is part of the webview shared library (PrincipalMappingMarker). Breakpad looks up the mapping that contains that address, causing it to not generate a microdump if the IP or the stack of the crashing thread does not contain a pointer into this region. BUG=664460, 682278 Review-Url: https://codereview.chromium.org/2652133004 Cr-Commit-Position: refs/heads/master@{#449620} Committed: https://chromium.googlesource.com/chromium/src/+/238463db7875fa84f4a0f9b227cbde2c6d7ef011

Patch Set 1 #

Patch Set 2 : finalize implementation #

Total comments: 8

Patch Set 3 : Address review comments. Also apply settings when g_breakpad is constructed. #

Total comments: 2

Patch Set 4 : Robert's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -18 lines) Patch
M android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M components/crash/content/app/breakpad_linux.h View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M components/crash/content/app/breakpad_linux.cc View 1 2 10 chunks +86 lines, -18 lines 0 comments Download

Messages

Total messages: 27 (12 generated)
Tobias Sargeant
3 years, 10 months ago (2017-02-08 15:34:44 UTC) #3
Tobias Sargeant
Adding Bo, because of potentially relevant changes in breakpad_linux.cc
3 years, 10 months ago (2017-02-08 15:54:19 UTC) #4
Primiano Tucci (use gerrit)
just a drive by comment, plz don't wait for my reply once you get LG ...
3 years, 10 months ago (2017-02-08 16:25:03 UTC) #6
Robert Sesek
https://codereview.chromium.org/2652133004/diff/20001/android_webview/lib/main/aw_main_delegate.cc File android_webview/lib/main/aw_main_delegate.cc (right): https://codereview.chromium.org/2652133004/diff/20001/android_webview/lib/main/aw_main_delegate.cc#newcode233 android_webview/lib/main/aw_main_delegate.cc:233: reinterpret_cast<uintptr_t>(&PrincipalMappingMarker)); Any reason to not just use something like ...
3 years, 10 months ago (2017-02-08 22:36:21 UTC) #7
Torne
Generally seems reasonable, but agree with robert's questions :) https://codereview.chromium.org/2652133004/diff/20001/android_webview/lib/main/aw_main_delegate.cc File android_webview/lib/main/aw_main_delegate.cc (right): https://codereview.chromium.org/2652133004/diff/20001/android_webview/lib/main/aw_main_delegate.cc#newcode233 android_webview/lib/main/aw_main_delegate.cc:233: ...
3 years, 10 months ago (2017-02-09 13:55:57 UTC) #8
Tobias Sargeant
https://codereview.chromium.org/2652133004/diff/20001/android_webview/lib/main/aw_main_delegate.cc File android_webview/lib/main/aw_main_delegate.cc (right): https://codereview.chromium.org/2652133004/diff/20001/android_webview/lib/main/aw_main_delegate.cc#newcode233 android_webview/lib/main/aw_main_delegate.cc:233: reinterpret_cast<uintptr_t>(&PrincipalMappingMarker)); On 2017/02/09 13:55:57, Torne wrote: > On 2017/02/08 ...
3 years, 10 months ago (2017-02-09 13:59:26 UTC) #9
Torne
On 2017/02/09 13:59:26, Tobias Sargeant wrote: > https://codereview.chromium.org/2652133004/diff/20001/android_webview/lib/main/aw_main_delegate.cc > File android_webview/lib/main/aw_main_delegate.cc (right): > > https://codereview.chromium.org/2652133004/diff/20001/android_webview/lib/main/aw_main_delegate.cc#newcode233 ...
3 years, 10 months ago (2017-02-09 14:05:47 UTC) #10
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2652133004/diff/20001/android_webview/lib/main/aw_main_delegate.cc File android_webview/lib/main/aw_main_delegate.cc (right): https://codereview.chromium.org/2652133004/diff/20001/android_webview/lib/main/aw_main_delegate.cc#newcode233 android_webview/lib/main/aw_main_delegate.cc:233: reinterpret_cast<uintptr_t>(&PrincipalMappingMarker)); On 2017/02/09 13:59:25, Tobias Sargeant wrote: > On ...
3 years, 10 months ago (2017-02-09 14:11:32 UTC) #11
Torne
On 2017/02/09 14:11:32, Primiano Tucci wrote: > https://codereview.chromium.org/2652133004/diff/20001/android_webview/lib/main/aw_main_delegate.cc > File android_webview/lib/main/aw_main_delegate.cc (right): > > https://codereview.chromium.org/2652133004/diff/20001/android_webview/lib/main/aw_main_delegate.cc#newcode233 ...
3 years, 10 months ago (2017-02-09 14:30:28 UTC) #12
Tobias Sargeant
https://codereview.chromium.org/2652133004/diff/20001/components/crash/content/app/breakpad_linux.cc File components/crash/content/app/breakpad_linux.cc (right): https://codereview.chromium.org/2652133004/diff/20001/components/crash/content/app/breakpad_linux.cc#newcode151 components/crash/content/app/breakpad_linux.cc:151: bool skip_dump_if_principal_mapping_not_referenced_; On 2017/02/08 22:36:21, Robert Sesek wrote: > ...
3 years, 10 months ago (2017-02-09 14:31:29 UTC) #14
Robert Sesek
lgtm https://codereview.chromium.org/2652133004/diff/40001/android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc File android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc (right): https://codereview.chromium.org/2652133004/diff/40001/android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc#newcode159 android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc:159: reinterpret_cast<uintptr_t>(&PrincipalMappingMarker)); I'd still probably just use EnableCrashReporter.
3 years, 10 months ago (2017-02-09 22:21:54 UTC) #19
Tobias Sargeant
https://codereview.chromium.org/2652133004/diff/40001/android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc File android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc (right): https://codereview.chromium.org/2652133004/diff/40001/android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc#newcode159 android_webview/common/crash_reporter/aw_microdump_crash_reporter.cc:159: reinterpret_cast<uintptr_t>(&PrincipalMappingMarker)); On 2017/02/09 22:21:54, Robert Sesek wrote: > I'd ...
3 years, 10 months ago (2017-02-10 13:24:05 UTC) #20
Torne
LGTM also :)
3 years, 10 months ago (2017-02-10 13:48:56 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2652133004/60001
3 years, 10 months ago (2017-02-10 14:09:23 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 14:57:07 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/238463db7875fa84f4a0f9b227cb...

Powered by Google App Engine
This is Rietveld 408576698