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

Issue 200283002: Fix the crash for the AudioShared. (Closed)

Created:
6 years, 9 months ago by hidehiko
Modified:
6 years, 6 months ago
Reviewers:
Mark Seaborn, bbudge, Nico
CC:
chromium-reviews, hamaji, mazda, Junichi Uekawa, dmichael (off chromium), teravest
Base URL:
https://chromium.googlesource.com/chromium/src.git@open_resource3
Visibility:
Public.

Description

Non-SFI NaCl: Fix the crash for the AudioShared. It turned out that even for the non-SFI mode, we still need to use PPB_AudioShared::SetThreadFunctions, although the underlying function is pthread_create for both. Otherwise the TLS in IRT for the created thread is not initialized correctly. BUG=359710 TEST=Run trybots. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265663

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Total comments: 4

Patch Set 7 : Rebase #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -73 lines) Patch
M chrome/test/ppapi/ppapi_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M ppapi/nacl_irt/plugin_main.cc View 1 1 chunk +0 lines, -6 lines 0 comments Download
M ppapi/nacl_irt/plugin_startup.cc View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppb_audio_shared.h View 1 2 3 4 5 3 chunks +8 lines, -10 lines 0 comments Download
M ppapi/shared_impl/ppb_audio_shared.cc View 1 2 3 4 5 6 7 5 chunks +53 lines, -54 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Mark Seaborn
https://codereview.chromium.org/200283002/diff/1/ppapi/shared_impl/ppb_audio_shared.cc File ppapi/shared_impl/ppb_audio_shared.cc (right): https://codereview.chromium.org/200283002/diff/1/ppapi/shared_impl/ppb_audio_shared.cc#newcode139 ppapi/shared_impl/ppb_audio_shared.cc:139: if (thread_functions_set) { PPB_Audio is meant to fail under ...
6 years, 9 months ago (2014-03-20 23:23:30 UTC) #1
hidehiko
Mark, Bill, could you take a look? Thanks, - hidehiko https://codereview.chromium.org/200283002/diff/1/ppapi/shared_impl/ppb_audio_shared.cc File ppapi/shared_impl/ppb_audio_shared.cc (right): https://codereview.chromium.org/200283002/diff/1/ppapi/shared_impl/ppb_audio_shared.cc#newcode139 ...
6 years, 8 months ago (2014-04-21 14:47:39 UTC) #2
bbudge
https://codereview.chromium.org/200283002/diff/60001/ppapi/shared_impl/ppb_audio_shared.h File ppapi/shared_impl/ppb_audio_shared.h (right): https://codereview.chromium.org/200283002/diff/60001/ppapi/shared_impl/ppb_audio_shared.h#newcode89 ppapi/shared_impl/ppb_audio_shared.h:89: static void SetNaClMode(bool value); Would it ever make sense ...
6 years, 8 months ago (2014-04-21 17:01:51 UTC) #3
hidehiko
Thank you for review. Could you take another look? https://codereview.chromium.org/200283002/diff/60001/ppapi/shared_impl/ppb_audio_shared.h File ppapi/shared_impl/ppb_audio_shared.h (right): https://codereview.chromium.org/200283002/diff/60001/ppapi/shared_impl/ppb_audio_shared.h#newcode89 ppapi/shared_impl/ppb_audio_shared.h:89: ...
6 years, 8 months ago (2014-04-21 17:25:56 UTC) #4
bbudge
https://codereview.chromium.org/200283002/diff/80001/ppapi/shared_impl/ppb_audio_shared.cc File ppapi/shared_impl/ppb_audio_shared.cc (right): https://codereview.chromium.org/200283002/diff/80001/ppapi/shared_impl/ppb_audio_shared.cc#newcode144 ppapi/shared_impl/ppb_audio_shared.cc:144: DCHECK_EQ(result, 0); nit: reverse param order to match below. ...
6 years, 8 months ago (2014-04-21 20:20:29 UTC) #5
hidehiko
Could you take another look? https://codereview.chromium.org/200283002/diff/80001/ppapi/shared_impl/ppb_audio_shared.cc File ppapi/shared_impl/ppb_audio_shared.cc (right): https://codereview.chromium.org/200283002/diff/80001/ppapi/shared_impl/ppb_audio_shared.cc#newcode144 ppapi/shared_impl/ppb_audio_shared.cc:144: DCHECK_EQ(result, 0); On 2014/04/21 ...
6 years, 8 months ago (2014-04-21 22:59:47 UTC) #6
bbudge
https://codereview.chromium.org/200283002/diff/60002/ppapi/shared_impl/ppb_audio_shared.h File ppapi/shared_impl/ppb_audio_shared.h (right): https://codereview.chromium.org/200283002/diff/60002/ppapi/shared_impl/ppb_audio_shared.h#newcode87 ppapi/shared_impl/ppb_audio_shared.h:87: // If set, SetThreadFunctions() must be called before this ...
6 years, 8 months ago (2014-04-21 23:12:24 UTC) #7
hidehiko
Could you take another look? https://codereview.chromium.org/200283002/diff/60002/ppapi/shared_impl/ppb_audio_shared.h File ppapi/shared_impl/ppb_audio_shared.h (right): https://codereview.chromium.org/200283002/diff/60002/ppapi/shared_impl/ppb_audio_shared.h#newcode87 ppapi/shared_impl/ppb_audio_shared.h:87: // If set, SetThreadFunctions() ...
6 years, 8 months ago (2014-04-21 23:32:09 UTC) #8
bbudge
lgtm
6 years, 8 months ago (2014-04-21 23:51:02 UTC) #9
Mark Seaborn
LGTM, thanks https://codereview.chromium.org/200283002/diff/110001/chrome/test/ppapi/ppapi_browsertest.cc File chrome/test/ppapi/ppapi_browsertest.cc (right): https://codereview.chromium.org/200283002/diff/110001/chrome/test/ppapi/ppapi_browsertest.cc#newcode1199 chrome/test/ppapi/ppapi_browsertest.cc:1199: // TODO(hidehiko): Enable AudioThreadCreator testing for NonSfi ...
6 years, 8 months ago (2014-04-23 02:28:39 UTC) #10
hidehiko
Thank you for review, Mark, Bill. Sending to CQ. https://codereview.chromium.org/200283002/diff/110001/chrome/test/ppapi/ppapi_browsertest.cc File chrome/test/ppapi/ppapi_browsertest.cc (right): https://codereview.chromium.org/200283002/diff/110001/chrome/test/ppapi/ppapi_browsertest.cc#newcode1199 chrome/test/ppapi/ppapi_browsertest.cc:1199: ...
6 years, 8 months ago (2014-04-23 13:32:59 UTC) #11
hidehiko
The CQ bit was checked by hidehiko@chromium.org
6 years, 8 months ago (2014-04-23 13:33:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/200283002/150001
6 years, 8 months ago (2014-04-23 13:33:12 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-23 14:18:01 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
6 years, 8 months ago (2014-04-23 14:18:01 UTC) #15
hidehiko
The CQ bit was checked by hidehiko@chromium.org
6 years, 8 months ago (2014-04-23 14:24:10 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/200283002/150001
6 years, 8 months ago (2014-04-23 14:24:24 UTC) #17
commit-bot: I haz the power
Change committed as 265663
6 years, 8 months ago (2014-04-23 16:11:42 UTC) #18
Nico
When linking nacl_helper, I now get /usr/bin/ld: obj/components/../ppapi/nacl_irt/nacl_linux.plugin_main.o: undefined reference to symbol '_ZN5ppapi16PPB_Audio_Shared18SetThreadFunctionsEPK18PP_ThreadFunctions' /usr/bin/ld: note: ...
6 years, 6 months ago (2014-06-17 20:09:23 UTC) #19
Nico
6 years, 6 months ago (2014-06-17 20:09:55 UTC) #20
Message was sent while issue was closed.
…nevermind, this mind be some kind of user error. Ignore me for now while I look
a bit more.

Powered by Google App Engine
This is Rietveld 408576698