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

Issue 3436029: crash-reporter: Send OS version at time of crash and related improvements (Closed)

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

Description

Add meta files to crash directory, enabling OS version at crash time. Adding meta files also: 1) ensures atomically added crash reports 2) allows us to remove orphaned crash report payload files (such as core files) 3) gives us better control over the number of reports in crash directory While we're here, also made these minor changes 1) send board (x86-generic, x86-mario, etc) to crash server 2) send hwclass to crash server 3) Only record crash reports when metrics are enabled. 4) No longer allow crash reporting to staging server. BUG=6100, 5805, 5624, 6865 TEST=unit tests plus UserCrash,CrashSender,KernelCrash autotests Change-Id: Ieea9bdc8e0680b379c65b91cc56ca0611dd0f31c Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=613fde1

Patch Set 1 #

Patch Set 2 : bug fixes #

Total comments: 10

Patch Set 3 : bug fixes #

Patch Set 4 : Respond to petkov review #

Patch Set 5 : Bug fix #

Total comments: 3

Patch Set 6 : respond to petkov review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+351 lines, -118 lines) Patch
M crash_collector.h View 1 2 3 4 5 3 chunks +22 lines, -3 lines 0 comments Download
M crash_collector.cc View 1 2 3 4 4 chunks +78 lines, -10 lines 0 comments Download
M crash_collector_test.cc View 1 2 3 2 chunks +80 lines, -15 lines 0 comments Download
M crash_reporter.cc View 1 chunk +1 line, -3 lines 0 comments Download
M crash_sender View 1 2 3 7 chunks +146 lines, -53 lines 0 comments Download
M kernel_collector.h View 1 chunk +0 lines, -3 lines 0 comments Download
M kernel_collector.cc View 4 chunks +14 lines, -13 lines 0 comments Download
M kernel_collector_test.cc View 1 chunk +0 lines, -15 lines 0 comments Download
M user_collector.cc View 1 2 chunks +10 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
kmixter1
Add meta files to crash directory, enabling OS version at crash time. Adding meta files ...
10 years, 2 months ago (2010-09-29 17:19:20 UTC) #1
petkov
LGTM http://codereview.chromium.org/3436029/diff/2001/3003 File crash_collector_test.cc (right): http://codereview.chromium.org/3436029/diff/2001/3003#newcode173 crash_collector_test.cc:173: " c=d \n"); Add an assignment with an ...
10 years, 2 months ago (2010-09-29 18:46:17 UTC) #2
kmixter1
PTAL http://codereview.chromium.org/3436029/diff/2001/3003 File crash_collector_test.cc (right): http://codereview.chromium.org/3436029/diff/2001/3003#newcode173 crash_collector_test.cc:173: " c=d \n"); On 2010/09/29 18:46:17, petkov wrote: ...
10 years, 2 months ago (2010-09-30 01:49:07 UTC) #3
petkov
10 years, 2 months ago (2010-09-30 05:15:59 UTC) #4
LGTM

http://codereview.chromium.org/3436029/diff/12001/13001
File crash_collector.cc (right):

http://codereview.chromium.org/3436029/diff/12001/13001#newcode75
crash_collector.cc:75: std::string sanitized_exec_name = Sanitize(exec_name);
I guess there's an unlikely case where you'd sanitize different exec_names into
the same sanitized name. Maybe that's not a concern anyway as long as the two
don't processes don't crash the same second. :)

http://codereview.chromium.org/3436029/diff/12001/13002
File crash_collector.h (right):

http://codereview.chromium.org/3436029/diff/12001/13002#newcode49
crash_collector.h:49: // Return a filename that has only [a-z0-1_] characters.
[A-Za-z0-9_]
Also, "Replaces characters outside that set with _."

Powered by Google App Engine
This is Rietveld 408576698