impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Impala Public Jenkins (Code Review)" <ger...@cloudera.org>
Subject [Impala-ASF-CR] IMPALA-4801: fix heap use after free for MemTracker
Date Thu, 26 Jan 2017 01:32:10 GMT
Impala Public Jenkins has submitted this change and it was merged.

Change subject: IMPALA-4801: fix heap use after free for MemTracker
......................................................................


IMPALA-4801: fix heap use after free for MemTracker

This is a minimal fix for IMPALA-4801. The bug was that
"IMPALA-4678: move query MemTracker into QueryState" changed
the lifecycle of RuntimeState::instance_mem_tracker_ so that
it destroyed earlier in ReleaseResources(). A periodic
counter referencing the MemTracker was only stopped after
ReleaseResources() was called, leaving a window for a race.

There are various issues with the lifecycle of RuntimeProfile
objects (see IMPALA-4802) but I chose not to tackle them in
this patch.

Change-Id: Iccaf6700888c333b9c93d716d395d96bc5af6631
Reviewed-on: http://gerrit.cloudera.org:8080/5772
Reviewed-by: Tim Armstrong <tarmstrong@cloudera.com>
Tested-by: Impala Public Jenkins
---
M be/src/runtime/plan-fragment-executor.cc
1 file changed, 5 insertions(+), 3 deletions(-)

Approvals:
  Impala Public Jenkins: Verified
  Tim Armstrong: Looks good to me, approved



-- 
To view, visit http://gerrit.cloudera.org:8080/5772
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iccaf6700888c333b9c93d716d395d96bc5af6631
Gerrit-PatchSet: 4
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Tim Armstrong <tarmstrong@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins
Gerrit-Reviewer: Matthew Jacobs <mj@cloudera.com>
Gerrit-Reviewer: Thomas Tauber-Marshall <tmarshall@cloudera.com>
Gerrit-Reviewer: Tim Armstrong <tarmstrong@cloudera.com>

Mime
View raw message