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

Issue 2970873002: Alias |ranges| so it appears in minidump. (Closed)

Created:
3 years, 5 months ago by bcwhite
Modified:
3 years, 4 months ago
CC:
chromium-reviews, danakj+watch_chromium.org, asvitkine+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Alias |ranges| so it appears in minidump. BUG=586622 Review-Url: https://codereview.chromium.org/2970873002 Cr-Commit-Position: refs/heads/master@{#484159} Committed: https://chromium.googlesource.com/chromium/src/+/4485eb651f6f09c3183285927fe82d17fcd7a13e

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M base/metrics/histogram.cc View 3 chunks +3 lines, -0 lines 2 comments Download

Messages

Total messages: 14 (8 generated)
bcwhite
3 years, 5 months ago (2017-07-04 19:10:20 UTC) #4
Alexei Svitkine (slow)
lgtm
3 years, 5 months ago (2017-07-04 19:33:41 UTC) #5
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/2970873002/1
3 years, 5 months ago (2017-07-04 19:39:36 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/4485eb651f6f09c3183285927fe82d17fcd7a13e
3 years, 5 months ago (2017-07-04 21:39:25 UTC) #11
brucedawson
https://codereview.chromium.org/2970873002/diff/1/base/metrics/histogram.cc File base/metrics/histogram.cc (right): https://codereview.chromium.org/2970873002/diff/1/base/metrics/histogram.cc#newcode121 base/metrics/histogram.cc:121: base::debug::Alias(&ranges); // TODO(bcwhite): Remove after crbug/586622. Be aware that ...
3 years, 4 months ago (2017-08-17 19:28:01 UTC) #13
bcwhite
3 years, 4 months ago (2017-08-18 05:09:01 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/2970873002/diff/1/base/metrics/histogram.cc
File base/metrics/histogram.cc (right):

https://codereview.chromium.org/2970873002/diff/1/base/metrics/histogram.cc#n...
base/metrics/histogram.cc:121: base::debug::Alias(&ranges);  // TODO(bcwhite):
Remove after crbug/586622.
On 2017/08/17 19:28:00, brucedawson wrote:
> Be aware that this technique doesn't work very well. Because ranges is a
pointer
> all that this ensures is that the compiler won't discard the pointer before
the
> end of the function, which was already guaranteed by the return statement. The
> Alias() function does nothing to ensure that the memory pointed to be ranges
is
> retained in crash dumps. And, either way, the effect of Alias() only extends
to
> the end of the function where it is called.
> 
> See https://chromium-review.googlesource.com/c/619112

Yeah...  I've noticed that.  :-(  It would be nice if it somehow gave a hint to
Crashpad and got that memory included in a dump.

Powered by Google App Engine
This is Rietveld 408576698