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

Issue 2753723003: Fix crash in InvokeOnMemoryDump when tracing (Closed)

Created:
3 years, 9 months ago by hjd
Modified:
3 years, 9 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crash in InvokeOnMemoryDump when tracing Fixes a bug in ProcessMetricsMemoryDumpProvider::RegisterForProcess where if we get a duplicate pid we register an MDP but then immediately destroy it. This later causes a crash. Instead we should not register the MDP if we get a duplicate pid. This won't help the root problem of why we are getting duplicate pids which will now just cause information loss instead of crashing. BUG=695731 Review-Url: https://codereview.chromium.org/2753723003 Cr-Commit-Position: refs/heads/master@{#457392} Committed: https://chromium.googlesource.com/chromium/src/+/96f0a2b238852a56c0a30aa67f4a6943c5271688

Patch Set 1 #

Patch Set 2 : be more explicit #

Total comments: 20

Patch Set 3 : fix for comments #

Total comments: 1

Patch Set 4 : fix FactoryFunction dup #

Patch Set 5 : fix format #

Patch Set 6 : dont run test on mac or windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -11 lines) Patch
M base/trace_event/memory_dump_manager.h View 1 chunk +3 lines, -0 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M components/tracing/common/process_metrics_memory_dump_provider.h View 1 2 3 4 5 2 chunks +10 lines, -2 lines 0 comments Download
M components/tracing/common/process_metrics_memory_dump_provider.cc View 1 2 3 4 2 chunks +20 lines, -8 lines 0 comments Download
M components/tracing/common/process_metrics_memory_dump_provider_unittest.cc View 1 2 3 4 5 4 chunks +42 lines, -1 line 0 comments Download

Messages

Total messages: 26 (13 generated)
hjd
ptal, thanks! :)
3 years, 9 months ago (2017-03-15 12:28:54 UTC) #2
Primiano Tucci (use gerrit)
Excellent thanks. You can remove the "chromium:" in the BUG= label. It's the default in ...
3 years, 9 months ago (2017-03-15 12:44:41 UTC) #3
hjd
Thanks! I can't work out how to only write the using FactoryFunction = ... only ...
3 years, 9 months ago (2017-03-15 14:23:12 UTC) #4
Primiano Tucci (use gerrit)
LGTM with the using fixed https://codereview.chromium.org/2753723003/diff/20001/components/tracing/common/process_metrics_memory_dump_provider.cc File components/tracing/common/process_metrics_memory_dump_provider.cc (right): https://codereview.chromium.org/2753723003/diff/20001/components/tracing/common/process_metrics_memory_dump_provider.cc#newcode218 components/tracing/common/process_metrics_memory_dump_provider.cc:218: std::unique_ptr<ProcessMetricsMemoryDumpProvider> (*)(base::ProcessId); On 2017/03/15 ...
3 years, 9 months ago (2017-03-15 15:18:15 UTC) #5
hjd
On 2017/03/15 15:18:15, Primiano Tucci (slow - perf) wrote: > LGTM with the using fixed ...
3 years, 9 months ago (2017-03-15 15:46:46 UTC) #7
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/2753723003/70001
3 years, 9 months ago (2017-03-15 15:48:28 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/409315)
3 years, 9 months ago (2017-03-15 16:34:19 UTC) #12
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/2753723003/70001
3 years, 9 months ago (2017-03-15 16:37:30 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/384763)
3 years, 9 months ago (2017-03-15 16:52:06 UTC) #16
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/2753723003/70001
3 years, 9 months ago (2017-03-15 22:28:01 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/407844)
3 years, 9 months ago (2017-03-15 23:22:00 UTC) #20
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/2753723003/90001
3 years, 9 months ago (2017-03-16 09:03:55 UTC) #23
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 10:13:37 UTC) #26
Message was sent while issue was closed.
Committed patchset #6 (id:90001) as
https://chromium.googlesource.com/chromium/src/+/96f0a2b238852a56c0a30aa67f4a...

Powered by Google App Engine
This is Rietveld 408576698