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

Issue 399213003: Fix crash in Mac ASAN RenderWidgetResizeHelper (Closed)

Created:
6 years, 5 months ago by ccameron
Modified:
6 years, 5 months ago
Reviewers:
groby-ooo-7-16
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@move_to_cpp
Project:
chromium
Visibility:
Public.

Description

Fix crash in Mac ASAN RenderWidgetResizeHelper It is possible for the TaskRunner to which the tasks were posted to be destroyed before the RenderWidgetResizeHelper is destroyed. Make sure that RenderWidgetResizeHelper is robust to this by having tasks remove themselves from RenderWidgetResizeHelper's queue when they are destroyed. BUG=394775 TBR=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284224

Patch Set 1 #

Patch Set 2 : Full fix #

Patch Set 3 : More comments #

Total comments: 2

Patch Set 4 : Fix name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -14 lines) Patch
M content/browser/renderer_host/render_widget_resize_helper.h View 1 2 1 chunk +6 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_resize_helper.cc View 1 2 3 4 chunks +12 lines, -2 lines 0 comments Download
M content/test/content_browser_test_test.cc View 1 chunk +1 line, -7 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
ccameron
This re-enables the test that was failing. The symbolized stacks from ASAN explained what was ...
6 years, 5 months ago (2014-07-18 18:04:16 UTC) #1
groby-ooo-7-16
LGTM https://codereview.chromium.org/399213003/diff/40001/content/browser/renderer_host/render_widget_resize_helper.cc File content/browser/renderer_host/render_widget_resize_helper.cc (right): https://codereview.chromium.org/399213003/diff/40001/content/browser/renderer_host/render_widget_resize_helper.cc#newcode149 content/browser/renderer_host/render_widget_resize_helper.cc:149: task->helper_ = NULL; task->InvalidateHelper() instead?
6 years, 5 months ago (2014-07-18 18:22:47 UTC) #2
ccameron
Thanks! https://codereview.chromium.org/399213003/diff/40001/content/browser/renderer_host/render_widget_resize_helper.cc File content/browser/renderer_host/render_widget_resize_helper.cc (right): https://codereview.chromium.org/399213003/diff/40001/content/browser/renderer_host/render_widget_resize_helper.cc#newcode149 content/browser/renderer_host/render_widget_resize_helper.cc:149: task->helper_ = NULL; On 2014/07/18 18:22:47, groby wrote: ...
6 years, 5 months ago (2014-07-18 18:40:27 UTC) #3
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 5 months ago (2014-07-18 18:43:14 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/399213003/60001
6 years, 5 months ago (2014-07-18 18:44:51 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 5 months ago (2014-07-18 21:48:50 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-18 21:58:50 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/81014)
6 years, 5 months ago (2014-07-18 21:58:50 UTC) #8
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 5 months ago (2014-07-18 22:08:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/399213003/60001
6 years, 5 months ago (2014-07-18 22:10:42 UTC) #10
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 22:27:57 UTC) #11
Message was sent while issue was closed.
Change committed as 284224

Powered by Google App Engine
This is Rietveld 408576698