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

Issue 2872503003: Add crash keys about field trial shared memory errors. (Closed)

Created:
3 years, 7 months ago by Alexei Svitkine (slow)
Modified:
3 years, 7 months ago
Reviewers:
erikchen, Nico
CC:
chromium-reviews, danakj+watch_chromium.org, mac-reviews_chromium.org, gavinp+memory_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add crash keys about field trial shared memory errors. This is needed to figure out the cause of the failures in field trial shared memory allocation & map operations. Adds crash keys for the error values when shared memory APIs fail from field trial code, to diagnose the crash causes. The temporary logging CL adds coverage to Mac codepaths specifically, since that is the issue being investigated. The plan is to clean up the code once the crbug has been fixed. BUG=703649 Review-Url: https://codereview.chromium.org/2872503003 Cr-Commit-Position: refs/heads/master@{#470802} Committed: https://chromium.googlesource.com/chromium/src/+/0fe371d918bf4d467619c1cd2d9fd9f3ee117add

Patch Set 1 #

Patch Set 2 : Add TODOs about cleaning up the code. #

Total comments: 4

Patch Set 3 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -33 lines) Patch
M base/memory/shared_memory.h View 1 2 3 chunks +24 lines, -0 lines 0 comments Download
M base/memory/shared_memory_helper.h View 1 chunk +9 lines, -4 lines 0 comments Download
M base/memory/shared_memory_helper.cc View 4 chunks +18 lines, -7 lines 0 comments Download
M base/memory/shared_memory_mac.cc View 1 2 4 chunks +27 lines, -14 lines 0 comments Download
M base/memory/shared_memory_posix.cc View 1 2 3 chunks +8 lines, -6 lines 0 comments Download
M base/metrics/field_trial.cc View 2 chunks +17 lines, -2 lines 0 comments Download
M chrome/app/chrome_crash_reporter_client_win.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/crash_keys.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 53 (32 generated)
Alexei Svitkine (slow)
3 years, 7 months ago (2017-05-09 18:11:03 UTC) #26
erikchen
Some questions: 1) Is this intended to be temporary or permanent code? If temporary, please ...
3 years, 7 months ago (2017-05-09 18:23:31 UTC) #27
Alexei Svitkine (slow)
For 1, wanted to hear your perspective on this, as I can go either way. ...
3 years, 7 months ago (2017-05-09 18:31:31 UTC) #28
Alexei Svitkine (slow)
Okay, per the above reply I went and added TODOs to the error API I'm ...
3 years, 7 months ago (2017-05-10 14:42:23 UTC) #29
Nico
lgtm if Erik likes it. https://codereview.chromium.org/2872503003/diff/120001/base/memory/shared_memory.h File base/memory/shared_memory.h (right): https://codereview.chromium.org/2872503003/diff/120001/base/memory/shared_memory.h#newcode289 base/memory/shared_memory.h:289: SharedMemoryError last_error_ = SharedMemoryError::NO_ERRORS; ...
3 years, 7 months ago (2017-05-10 15:12:22 UTC) #30
Alexei Svitkine (slow)
https://codereview.chromium.org/2872503003/diff/120001/base/memory/shared_memory.h File base/memory/shared_memory.h (right): https://codereview.chromium.org/2872503003/diff/120001/base/memory/shared_memory.h#newcode289 base/memory/shared_memory.h:289: SharedMemoryError last_error_ = SharedMemoryError::NO_ERRORS; On 2017/05/10 15:12:22, Nico wrote: ...
3 years, 7 months ago (2017-05-10 15:22:39 UTC) #31
Nico
On Wed, May 10, 2017 at 11:22 AM, <asvitkine@chromium.org> wrote: > > https://codereview.chromium.org/2872503003/diff/120001/ > base/memory/shared_memory.h ...
3 years, 7 months ago (2017-05-10 15:36:18 UTC) #32
Alexei Svitkine (slow)
Fair enough. pre-CL sg - I'll prepare that. On Wed, May 10, 2017 at 11:36 ...
3 years, 7 months ago (2017-05-10 15:39:51 UTC) #33
erikchen
On 2017/05/09 18:31:31, Alexei Svitkine (slow) wrote: > For 1, wanted to hear your perspective ...
3 years, 7 months ago (2017-05-10 17:31:40 UTC) #34
Nico
On Wed, May 10, 2017 at 1:31 PM, <erikchen@chromium.org> wrote: > On 2017/05/09 18:31:31, Alexei ...
3 years, 7 months ago (2017-05-10 17:32:20 UTC) #35
Alexei Svitkine (slow)
SGTM. Does the CL lgty otherwise? I'll rebase it on https://codereview.chromium.org/2876593002/ once that lands. On ...
3 years, 7 months ago (2017-05-10 17:34:42 UTC) #36
erikchen
lgtm https://codereview.chromium.org/2872503003/diff/120001/base/memory/shared_memory_posix.cc File base/memory/shared_memory_posix.cc (right): https://codereview.chromium.org/2872503003/diff/120001/base/memory/shared_memory_posix.cc#newcode189 base/memory/shared_memory_posix.cc:189: if (fstat(fileno(fp.get()), &stat) != 0) shouldn't every "return ...
3 years, 7 months ago (2017-05-10 17:42:11 UTC) #37
Alexei Svitkine (slow)
https://codereview.chromium.org/2872503003/diff/120001/base/memory/shared_memory_posix.cc File base/memory/shared_memory_posix.cc (right): https://codereview.chromium.org/2872503003/diff/120001/base/memory/shared_memory_posix.cc#newcode189 base/memory/shared_memory_posix.cc:189: if (fstat(fileno(fp.get()), &stat) != 0) On 2017/05/10 17:42:11, erikchen ...
3 years, 7 months ago (2017-05-10 17:46:22 UTC) #38
erikchen
On 2017/05/10 17:46:22, Alexei Svitkine (slow) wrote: > https://codereview.chromium.org/2872503003/diff/120001/base/memory/shared_memory_posix.cc > File base/memory/shared_memory_posix.cc (right): > > ...
3 years, 7 months ago (2017-05-10 17:50:09 UTC) #39
erikchen
On 2017/05/10 17:50:09, erikchen wrote: > On 2017/05/10 17:46:22, Alexei Svitkine (slow) wrote: > > ...
3 years, 7 months ago (2017-05-10 17:50:23 UTC) #40
Alexei Svitkine (slow)
Done. Thanks! Will wait for the other CL to land, rebase and them land this ...
3 years, 7 months ago (2017-05-10 17:55:16 UTC) #42
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/2872503003/140001
3 years, 7 months ago (2017-05-10 20:44:39 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/290788)
3 years, 7 months ago (2017-05-11 00:22:12 UTC) #47
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/2872503003/140001
3 years, 7 months ago (2017-05-11 00:40:54 UTC) #49
commit-bot: I haz the power
Committed patchset #3 (id:140001) as https://chromium.googlesource.com/chromium/src/+/0fe371d918bf4d467619c1cd2d9fd9f3ee117add
3 years, 7 months ago (2017-05-11 04:10:53 UTC) #52
Alexei Svitkine (slow)
3 years, 6 months ago (2017-06-08 17:32:29 UTC) #53
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:140001) has been created in
https://codereview.chromium.org/2929013002/ by asvitkine@chromium.org.

The reason for reverting is: No crashes observed that this instrumentation was
meant to help with. Reverting the change..

Powered by Google App Engine
This is Rietveld 408576698