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

Issue 59863005: GVDAH: fix crash on Android caused by invalid assumption of reentrancy on hash_map<>. (Closed)

Created:
7 years, 1 month ago by Ami GONE FROM CHROMIUM
Modified:
7 years, 1 month ago
Reviewers:
sheu, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, fischman+watch_chromium.org, jam, apatrick_chromium, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, wjia+watch_chromium.org
Visibility:
Public.

Description

GVDAH: fix crash on Android caused by invalid assumption of reentrancy on hash_map<>. When a container's value's dtor might call another method of the container's, one must ensure that the dtor is _not_ run in-line as the result of any of the container's operations. Specifically here the evil chain is: GpuVideoEncodeAcceleratorHost::OnNotifyInputDone() -> frame_map_.erase() VideoFrame::~VideoFrame() RTCVideoEncoder::Impl::EncodeFrameFinished() RTCVideoEncoder::Impl::EncodeOneFrame() GpuVideoEncodeAcceleratorHost::Encode() GpuVideoEncodeAcceleratorHost::frame_map_.insert() aaaaaand, boom! The code at HEAD is invalid for any platform (b/c nothing specs reentrancy for hash_map) but only bit me on Android (where we use stlport unlike other platforms). NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233238

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M content/common/gpu/client/gpu_video_encode_accelerator_host.cc View 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Ami GONE FROM CHROMIUM
7 years, 1 month ago (2013-11-05 19:51:26 UTC) #1
sheu
lgtm Nit: do a find iterator -> erase on iterator to avoid two lookups?
7 years, 1 month ago (2013-11-05 20:00:19 UTC) #2
Ami GONE FROM CHROMIUM
Thanks for the review! > Nit: do a find iterator -> erase on iterator to ...
7 years, 1 month ago (2013-11-05 20:02:30 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fischman@chromium.org/59863005/1
7 years, 1 month ago (2013-11-05 20:06:45 UTC) #4
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=34573
7 years, 1 month ago (2013-11-05 20:43:56 UTC) #5
Ami GONE FROM CHROMIUM
piman: please OWNERS-review. (also, you might get a kick out of the story)
7 years, 1 month ago (2013-11-05 20:46:59 UTC) #6
piman
LGTM. Not really surprised... I suspect hash_map isn't the only one in this case.
7 years, 1 month ago (2013-11-05 21:02:57 UTC) #7
piman
On Tue, Nov 5, 2013 at 1:02 PM, <piman@chromium.org> wrote: > LGTM. Not really surprised... ...
7 years, 1 month ago (2013-11-05 21:09:33 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fischman@chromium.org/59863005/1
7 years, 1 month ago (2013-11-05 21:26:01 UTC) #9
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=94234
7 years, 1 month ago (2013-11-06 01:47:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fischman@chromium.org/59863005/1
7 years, 1 month ago (2013-11-06 02:06:50 UTC) #11
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=94521
7 years, 1 month ago (2013-11-06 06:18:50 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fischman@chromium.org/59863005/1
7 years, 1 month ago (2013-11-06 06:41:16 UTC) #13
commit-bot: I haz the power
7 years, 1 month ago (2013-11-06 06:45:29 UTC) #14
Message was sent while issue was closed.
Change committed as 233238

Powered by Google App Engine
This is Rietveld 408576698