|
|
Chromium Code Reviews|
Created:
4 years, 8 months ago by sunnyps Modified:
4 years, 8 months ago Reviewers:
Sami CC:
chromium-reviews, cc-bugs_chromium.org, scheduler-bugs_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Descriptioncc: Copy arg names for tracing in BeginFrameTracker.
Tracing does not copy arg names by default assuming them to be global
constants. BeginFrameTracker passes the location string to tracing but
does not copy them leading to a crash later.
BUG=601459
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/c289ed1dff66e6d902c6d7e46aac5926fb52ded8
Cr-Commit-Position: refs/heads/master@{#389179}
Patch Set 1 #Patch Set 2 : remove incorrect flow event #Patch Set 3 : #Patch Set 4 : use TRACE_EVENT_COPY... instead of TRACE_STR_COPY #Messages
Total messages: 32 (17 generated)
Description was changed from ========== cc: Copy category/arg names for tracing in BeginFrameTracker. Tracing does not copy category/arg names by default assuming them to be global constants. BeginFrameTracker passes the location string to tracing but does not copy them leading to a crash later. BUG=601459 ========== to ========== cc: Copy category/arg names for tracing in BeginFrameTracker. Tracing does not copy category/arg names by default assuming them to be global constants. BeginFrameTracker passes the location string to tracing but does not copy them leading to a crash later. BUG=601459 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ==========
Description was changed from ========== cc: Copy category/arg names for tracing in BeginFrameTracker. Tracing does not copy category/arg names by default assuming them to be global constants. BeginFrameTracker passes the location string to tracing but does not copy them leading to a crash later. BUG=601459 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ========== to ========== cc: Copy category/arg names for tracing in BeginFrameTracker. Tracing does not copy category/arg names by default assuming them to be global constants. BeginFrameTracker passes the location string to tracing but does not copy them leading to a crash later. Also removes incorrect usage of flow events. BUG=601459 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ==========
sunnyps@chromium.org changed reviewers: + skyostil@chromium.org
PTAL This fixes a use-after-free bug with using non constant string for tracing categories. I also noticed an incorrect use of flow events here. The original intent seems to have been to trace a begin frame across multiple layers but there's no TRACE_FLOW_EVENT_BEGIN/END and we really can't support tracing begin frames that way because they don't have a unique identity (maybe frame time is a unique identity but I won't bet on it).
lgtm. Thanks for cleaning up the flow usage too.
Just to mention an alternative, the char* members of tracked_objects::Location() are long lived so they could be passed to tracing without making copies.
On 2016/04/12 10:15:58, Sami wrote: > Just to mention an alternative, the char* members of tracked_objects::Location() > are long lived so they could be passed to tracing without making copies. I considered that but those strings are formatted together in Location::ToString() and the result is not long lived. I also found the begin/end calls for the flow event (not sure how I missed them) so I've restored the flow step.
The CQ bit was checked by sunnyps@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from skyostil@chromium.org Link to the patchset: https://codereview.chromium.org/1876413003/#ps40001 (title: " ")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1876413003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1876413003/40001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...)
Description was changed from ========== cc: Copy category/arg names for tracing in BeginFrameTracker. Tracing does not copy category/arg names by default assuming them to be global constants. BeginFrameTracker passes the location string to tracing but does not copy them leading to a crash later. Also removes incorrect usage of flow events. BUG=601459 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ========== to ========== cc: Copy arg names for tracing in BeginFrameTracker. Tracing does not copy arg names by default assuming them to be global constants. BeginFrameTracker passes the location string to tracing but does not copy them leading to a crash later. BUG=601459 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ==========
The CQ bit was checked by sunnyps@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from skyostil@chromium.org Link to the patchset: https://codereview.chromium.org/1876413003/#ps60001 (title: "use TRACE_EVENT_COPY... instead of TRACE_STR_COPY")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1876413003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1876413003/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by sunnyps@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1876413003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1876413003/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by sunnyps@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1876413003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1876413003/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by sunnyps@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1876413003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1876413003/60001
Message was sent while issue was closed.
Description was changed from ========== cc: Copy arg names for tracing in BeginFrameTracker. Tracing does not copy arg names by default assuming them to be global constants. BeginFrameTracker passes the location string to tracing but does not copy them leading to a crash later. BUG=601459 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ========== to ========== cc: Copy arg names for tracing in BeginFrameTracker. Tracing does not copy arg names by default assuming them to be global constants. BeginFrameTracker passes the location string to tracing but does not copy them leading to a crash later. BUG=601459 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== cc: Copy arg names for tracing in BeginFrameTracker. Tracing does not copy arg names by default assuming them to be global constants. BeginFrameTracker passes the location string to tracing but does not copy them leading to a crash later. BUG=601459 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel ========== to ========== cc: Copy arg names for tracing in BeginFrameTracker. Tracing does not copy arg names by default assuming them to be global constants. BeginFrameTracker passes the location string to tracing but does not copy them leading to a crash later. BUG=601459 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/c289ed1dff66e6d902c6d7e46aac5926fb52ded8 Cr-Commit-Position: refs/heads/master@{#389179} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/c289ed1dff66e6d902c6d7e46aac5926fb52ded8 Cr-Commit-Position: refs/heads/master@{#389179} |
