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

Issue 2675013002: android: Crash child immediately on uncaught exception (Closed)

Created:
3 years, 10 months ago by boliu
Modified:
3 years, 10 months ago
CC:
chromium-reviews, jam, agrieve+watch_chromium.org, darin-cc_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

android: Crash child immediately on uncaught exception By installing our own handler that kills the process immediately. The default handler will pop up a dialog, and the process will stay alive until that dialog is dismissed by user. This is generally bad because browser will not notice this crash until user dismisses the dialog as well. Note that suppressing this dialog matches the behavior for native crashes. See breakpad::FinalizeCrashDoneAndroid for the equivalent logic. Refactor base a bit so the logic to check for release android build can be shared. BUG=680775 Review-Url: https://codereview.chromium.org/2675013002 Cr-Commit-Position: refs/heads/master@{#448308} Committed: https://chromium.googlesource.com/chromium/src/+/29b572b3ffeb491584ce5e6cd24a5eca9ac4d738

Patch Set 1 #

Patch Set 2 : uncomment #

Total comments: 7

Patch Set 3 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -1 line) Patch
M base/android/java/src/org/chromium/base/BuildInfo.java View 1 chunk +7 lines, -0 lines 0 comments Download
M base/android/java/src/org/chromium/base/CommandLineInitUtil.java View 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java View 1 chunk +4 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/app/KillChildUncaughtExceptionHandler.java View 1 2 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (15 generated)
boliu
ptal torne for base agrieve for content stuff, since this was his idea :) I ...
3 years, 10 months ago (2017-02-03 23:27:32 UTC) #7
agrieve
Implementation looks great! lgtm /w comments https://codereview.chromium.org/2675013002/diff/20001/content/public/android/java/src/org/chromium/content/app/KillChildUncaughtExceptionHandler.java File content/public/android/java/src/org/chromium/content/app/KillChildUncaughtExceptionHandler.java (right): https://codereview.chromium.org/2675013002/diff/20001/content/public/android/java/src/org/chromium/content/app/KillChildUncaughtExceptionHandler.java#newcode29 content/public/android/java/src/org/chromium/content/app/KillChildUncaughtExceptionHandler.java:29: // Only suppress ...
3 years, 10 months ago (2017-02-04 01:27:53 UTC) #9
boliu
https://codereview.chromium.org/2675013002/diff/20001/content/public/android/java/src/org/chromium/content/app/KillChildUncaughtExceptionHandler.java File content/public/android/java/src/org/chromium/content/app/KillChildUncaughtExceptionHandler.java (right): https://codereview.chromium.org/2675013002/diff/20001/content/public/android/java/src/org/chromium/content/app/KillChildUncaughtExceptionHandler.java#newcode29 content/public/android/java/src/org/chromium/content/app/KillChildUncaughtExceptionHandler.java:29: // Only suppress default dialog on release builds. On ...
3 years, 10 months ago (2017-02-04 05:59:12 UTC) #10
agrieve
https://codereview.chromium.org/2675013002/diff/20001/content/public/android/java/src/org/chromium/content/app/KillChildUncaughtExceptionHandler.java File content/public/android/java/src/org/chromium/content/app/KillChildUncaughtExceptionHandler.java (right): https://codereview.chromium.org/2675013002/diff/20001/content/public/android/java/src/org/chromium/content/app/KillChildUncaughtExceptionHandler.java#newcode29 content/public/android/java/src/org/chromium/content/app/KillChildUncaughtExceptionHandler.java:29: // Only suppress default dialog on release builds. On ...
3 years, 10 months ago (2017-02-05 23:34:18 UTC) #11
Torne
lgtm
3 years, 10 months ago (2017-02-06 12:29:21 UTC) #12
boliu
https://codereview.chromium.org/2675013002/diff/20001/content/public/android/java/src/org/chromium/content/app/KillChildUncaughtExceptionHandler.java File content/public/android/java/src/org/chromium/content/app/KillChildUncaughtExceptionHandler.java (right): https://codereview.chromium.org/2675013002/diff/20001/content/public/android/java/src/org/chromium/content/app/KillChildUncaughtExceptionHandler.java#newcode29 content/public/android/java/src/org/chromium/content/app/KillChildUncaughtExceptionHandler.java:29: // Only suppress default dialog on release builds. On ...
3 years, 10 months ago (2017-02-06 12:59:18 UTC) #13
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/2675013002/40001
3 years, 10 months ago (2017-02-06 13:00:10 UTC) #16
boliu
Oh wait, I said I was gonna loop in chromecast. +halliwell since this impacts chromecast ...
3 years, 10 months ago (2017-02-06 13:13:16 UTC) #19
halliwell
On 2017/02/06 13:13:16, boliu wrote: > Oh wait, I said I was gonna loop in ...
3 years, 10 months ago (2017-02-06 15:41:34 UTC) #21
Simeon
On 2017/02/06 15:41:34, halliwell wrote: > On 2017/02/06 13:13:16, boliu wrote: > > Oh wait, ...
3 years, 10 months ago (2017-02-06 18:04:08 UTC) #22
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/2675013002/40001
3 years, 10 months ago (2017-02-06 18:10:20 UTC) #24
AndyWu
lgtm
3 years, 10 months ago (2017-02-06 18:14:33 UTC) #25
commit-bot: I haz the power
3 years, 10 months ago (2017-02-06 18:15:26 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/29b572b3ffeb491584ce5e6cd24a...

Powered by Google App Engine
This is Rietveld 408576698