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

Issue 2677563006: android: Report java exception in child (Closed)

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

Description

android: Report java exception in child Enable JavaExceptionReporter for child processes so that unhandled java exceptions generate crash reports. Note this also requires fixing InitNonBrowserCrashReporterForAndroid so that SetDumpWithoutCrashingFunction is called in child processes. Tested with chrome://gpu-java-crash added in r447908, manually enabling breakpad microdumps with local build, and adding --enable-crash-reporter-for-testing. Verified microdump is generated with the java stack information in logcat BUG=680775 Review-Url: https://codereview.chromium.org/2677563006 Cr-Commit-Position: refs/heads/master@{#449000} Committed: https://chromium.googlesource.com/chromium/src/+/e76f62c07f2dfbddef18d4011c576f678fc1f54b

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove braces #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M chrome/app/chrome_main_delegate.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download
M components/crash/content/app/breakpad_linux.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
boliu
ptal +rsesek for components/crash +mariakhomenko for non-owner chrome review
3 years, 10 months ago (2017-02-03 23:18:15 UTC) #2
Maria
lgtm to the best of my knowledge this logic does what you say, but I ...
3 years, 10 months ago (2017-02-04 00:11:34 UTC) #3
boliu
On 2017/02/04 00:11:34, Maria wrote: > lgtm to the best of my knowledge this logic ...
3 years, 10 months ago (2017-02-04 01:15:31 UTC) #8
boliu
rsesek: ping!
3 years, 10 months ago (2017-02-07 15:24:36 UTC) #9
Robert Sesek
LGTM. Sorry, was OOO Friday MTV-time for travel and Monday for vacation.
3 years, 10 months ago (2017-02-07 17:58:09 UTC) #10
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/2677563006/1
3 years, 10 months ago (2017-02-07 18:06:27 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/358581)
3 years, 10 months ago (2017-02-07 18:13:07 UTC) #14
boliu
oh oops, +grt to stamp chrome/app again
3 years, 10 months ago (2017-02-07 18:14:34 UTC) #16
grt (UTC plus 2)
lgtm w/ a nit https://codereview.chromium.org/2677563006/diff/1/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/2677563006/diff/1/chrome/app/chrome_main_delegate.cc#newcode891 chrome/app/chrome_main_delegate.cc:891: if (process_type.empty()) { nit: remove ...
3 years, 10 months ago (2017-02-08 09:32:28 UTC) #17
boliu
https://codereview.chromium.org/2677563006/diff/1/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/2677563006/diff/1/chrome/app/chrome_main_delegate.cc#newcode891 chrome/app/chrome_main_delegate.cc:891: if (process_type.empty()) { On 2017/02/08 09:32:28, grt (UTC plus ...
3 years, 10 months ago (2017-02-08 14:14:24 UTC) #18
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/2677563006/20001
3 years, 10 months ago (2017-02-08 14:14:54 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/e76f62c07f2dfbddef18d4011c576f678fc1f54b
3 years, 10 months ago (2017-02-08 15:33:09 UTC) #24
boliu
3 years, 10 months ago (2017-02-08 17:04:43 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2684893003/ by boliu@chromium.org.

The reason for reverting is: tobiasjs@ pointed out:
DumpWithoutCrash doesn't really work on android in
child processes since android child processes sends
the dump through a FD, and browser only picks up
the FD after it detects child has crashed. So if
child calls DumpWithoutCrash and *doesn't* crash,
then a subsequent real crash report won't be picked
up.

Unhandled java exception is actually not the
problem here. The problem is all the other places
in child processes that calls DumpWithoutCrash.

Risk of breaking normal crash reports seems high
to me, so reverting to be safe..

Powered by Google App Engine
This is Rietveld 408576698