New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 601459 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Missing TRACE_STR_COPY in cc/scheduler/begin_frame_tracker.cc

Project Member Reported by primiano@chromium.org, Apr 7 2016

Issue description

While revieweing https://codereview.chromium.org/1870563002/ I noticed that begin_frame_tracker.cc, which was introduced by https://codereview.chromium.org/787763006, is passing const char* pointers to TRACE_EVENT macros derived from a member variable, without using TRACE_STR_COPY.
That will cause tracing to crash / derefernce invalid pointers if the BeginFrameTracker object goes out of scope before tracing.
I think that code is missing a TRACE_STR_COPY.
 
Cc: dproy@chromium.org
 Issue 599176  has been merged into this issue.
Labels: Performance-Tracing Hotlist-GoodFirstBug Arch-All
Cc: -sunn...@chromium.org
Owner: sunn...@chromium.org
Status: Assigned (was: Untriaged)
Sunny, could you please triage this?
Status: Started (was: Assigned)
Project Member

Comment 5 by bugdroid1@chromium.org, Apr 22 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c289ed1dff66e6d902c6d7e46aac5926fb52ded8

commit c289ed1dff66e6d902c6d7e46aac5926fb52ded8
Author: sunnyps <sunnyps@chromium.org>
Date: Fri Apr 22 18:35:10 2016

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

Review URL: https://codereview.chromium.org/1876413003

Cr-Commit-Position: refs/heads/master@{#389179}

[modify] https://crrev.com/c289ed1dff66e6d902c6d7e46aac5926fb52ded8/cc/scheduler/begin_frame_tracker.cc

Status: Fixed (was: Started)
Components: Speed>Tracing
Labels: -Performance-Tracing

Sign in to add a comment