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

Issue 2639673002: Fix null TaskScheduler dereference introduced by codereview.chromium.org/2608093002 (Closed)

Created:
3 years, 11 months ago by lilyhoughton1
Modified:
3 years, 11 months ago
Reviewers:
mef, fdoray, gavinp, lilyhoughton
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix null TaskScheduler dereference introduced by codereview.chromium.org/2608093002 Above changelog caused Cronet (by calling `PostRead()`) to call `PostDelayedTaskWithTraits()`, which calls `TaskScheduler::GetInstance()`, dereferencing the global `TaskScheduler` pointer `g_task_scheduler`, which was null because the CL did not add any call to set this pointer in Cronet's execution path. Fixed by adding a call to `TaskScheduler::CreateAndSetSimpleTaskSceduler()` to the beginning `CronetEnvironment::Initialize()`. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester Review-Url: https://codereview.chromium.org/2639673002 Cr-Commit-Position: refs/heads/master@{#444368} Committed: https://chromium.googlesource.com/chromium/src/+/8c4ab790c6018a4501ed7bc02fa1b22bbf293db0

Patch Set 1 #

Patch Set 2 : add call to `TaskScheduler::Shutdown()` #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M components/cronet/ios/cronet_environment.mm View 1 3 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
lilyhoughton
PTAL; in particular, I'm not familiar enough with the control flow to know that this ...
3 years, 11 months ago (2017-01-17 19:21:15 UTC) #4
fdoray
On 2017/01/17 19:21:15, lilyhoughton wrote: > PTAL; in particular, I'm not familiar enough with the ...
3 years, 11 months ago (2017-01-17 19:34:50 UTC) #6
lilyhoughton
On 2017/01/17 19:34:50, fdoray wrote: > On 2017/01/17 19:21:15, lilyhoughton wrote: > > PTAL; in ...
3 years, 11 months ago (2017-01-17 19:49:43 UTC) #7
fdoray
On 2017/01/17 19:49:43, lilyhoughton wrote: > On 2017/01/17 19:34:50, fdoray wrote: > > On 2017/01/17 ...
3 years, 11 months ago (2017-01-17 19:53:00 UTC) #8
mef
On 2017/01/17 19:53:00, fdoray wrote: > On 2017/01/17 19:49:43, lilyhoughton wrote: > > On 2017/01/17 ...
3 years, 11 months ago (2017-01-17 20:15:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2639673002/20001
3 years, 11 months ago (2017-01-18 15:03:11 UTC) #11
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 15:34:48 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/8c4ab790c6018a4501ed7bc02fa1...

Powered by Google App Engine
This is Rietveld 408576698