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

Issue 558523002: AudioNodeOutput::enable() and AudioNodeOutput::disable() should not be reentered (Closed)

Created:
6 years, 3 months ago by haraken
Modified:
6 years, 3 months ago
CC:
blink-reviews, Raymond Toy
Project:
blink
Visibility:
Public.

Description

AudioNodeOutput::enable() and AudioNodeOutput::disable() should not be reentered AudioNodeOutput::disable() can be reentered and causes the following crash. ASSERTION FAILED: m_outputs.contains(&output) ../../third_party/WebKit/Source/modules/webaudio/AudioNodeInput.cpp(98) : void blink::AudioNodeInput::disable(blink::AudioNodeOutput &) Received signal 11 SEGV_MAPERR 0000fbadbeef To avoid AudioNodeOutput::disable() from getting reentered, this CL moves the place of flipping m_isEnabled. The same issue is in AudioNodeOutput::enable() and this CL addresses the issue as well. BUG=411989 TEST=None, it's hard to create a simple test html that reproduces the bug. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181693

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M Source/modules/webaudio/AudioNodeOutput.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
haraken
PTAL
6 years, 3 months ago (2014-09-09 01:31:05 UTC) #2
Mads Ager (chromium)
LGTM, but Raymond should verify. :)
6 years, 3 months ago (2014-09-09 08:07:02 UTC) #4
Raymond Toy
LGTM too. Do you think there is a similar problem in AudioNodeOutput::disable and AudioNodeOutput::enable? Should ...
6 years, 3 months ago (2014-09-09 16:17:04 UTC) #5
haraken
> Do you think there is a similar problem in AudioNodeOutput::disable and > AudioNodeOutput::enable? Should ...
6 years, 3 months ago (2014-09-10 01:04:41 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/558523002/1
6 years, 3 months ago (2014-09-10 01:04:48 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/558523002/1
6 years, 3 months ago (2014-09-10 01:05:30 UTC) #11
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:04:42 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as 181693

Powered by Google App Engine
This is Rietveld 408576698