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

Issue 6114002: AU: Function to trigger crash reporter. (Closed)

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

Description

AU: Function to trigger crash reporter. This CL introduces a new utility function that fork()s and has the child call abort(), thus triggering the crash reporter. The actual work is done in a main loop callback to ensure that the stack trace is the same for all calls to this function. TEST=unittest (minimal), tested on device - saw crash reporter pick up the crash. BUG=10739 Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=712b3ac

Patch Set 1 #

Total comments: 6

Patch Set 2 : fixes for review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -0 lines) Patch
M utils.h View 1 chunk +4 lines, -0 lines 0 comments Download
M utils.cc View 1 2 chunks +22 lines, -0 lines 0 comments Download
M utils_unittest.cc View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
adlr
9 years, 11 months ago (2011-01-07 01:50:56 UTC) #1
petkov
LGTM w/ some nits. Once we start using this the crash rate will go up ...
9 years, 11 months ago (2011-01-07 17:39:34 UTC) #2
adlr
thanks for the review. fixed and pushed. http://codereview.chromium.org/6114002/diff/1/utils.cc File utils.cc (right): http://codereview.chromium.org/6114002/diff/1/utils.cc#newcode510 utils.cc:510: if (pid ...
9 years, 11 months ago (2011-01-07 21:13:42 UTC) #3
adlr
9 years, 11 months ago (2011-01-07 21:13:58 UTC) #4
err. will push when tree opens

Powered by Google App Engine
This is Rietveld 408576698