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

Issue 5814001: crash-reporter: Capture and send recent update_engine logs when it crashes (Closed)

Created:
10 years ago by kmixter1
Modified:
9 years, 7 months ago
Reviewers:
petkov
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

crash-reporter: Capture and send recent update_engine logs when it crashes We also disallow more than 4 nested crashes. This way we know if core2md crashes for instance, but not if crash_reporter crashes while handling the core2md crash that came from crash_reporter. Note that the kernel does not know about parent/child process relationships, it just counts concurrent handling, so it is possible that some of many crashing processes will be discarded. See crash report id 473c22ed428d33a9 for an example report with update_engine logs. Change-Id: I9ff9f03a94dc87d2d42840511c2e5e42ee37cea8 BUG=9176 TEST=UserCrash,CrashSender,unit tests Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=50ae33b

Patch Set 1 #

Total comments: 12

Patch Set 2 : Respond to petkov review #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -2 lines) Patch
M crash_collector.h View 2 chunks +11 lines, -0 lines 0 comments Download
M crash_collector.cc View 5 chunks +38 lines, -1 line 0 comments Download
M crash_collector_test.cc View 1 3 chunks +33 lines, -0 lines 0 comments Download
A crash_reporter_logs.conf View 1 1 chunk +22 lines, -0 lines 0 comments Download
M crash_sender View 2 chunks +5 lines, -0 lines 0 comments Download
M user_collector.h View 2 chunks +6 lines, -0 lines 0 comments Download
M user_collector.cc View 1 3 chunks +18 lines, -0 lines 1 comment Download
M user_collector_test.cc View 1 3 chunks +17 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
kmixter1
10 years ago (2010-12-13 18:29:29 UTC) #1
petkov
Mostly nits, I think. Have you verified that you're getting the log on the crash ...
10 years ago (2010-12-13 19:27:57 UTC) #2
kmixter1
PTAL Btw, change description updated including an example crash report id for reference. http://codereview.chromium.org/5814001/diff/1/crash_collector_test.cc File ...
10 years ago (2010-12-14 03:39:49 UTC) #3
petkov
10 years ago (2010-12-14 18:58:58 UTC) #4
LGTM

http://codereview.chromium.org/5814001/diff/7001/user_collector.cc
File user_collector.cc (right):

http://codereview.chromium.org/5814001/diff/7001/user_collector.cc#newcode36
user_collector.cc:36: static const char kCorePipeLimit[] = "4";
the CL description says more than 2 crashes.

Powered by Google App Engine
This is Rietveld 408576698