Back to build
Raw log | Switch to full mode | Login

python -u /b/s/w/ir/kitchen-checkout/build/scripts/tools/runit.py --show-path --with-third-party-lib -- python /b/s/w/ir/kitchen-checkout/build/scripts/slave/recipe_modules/swarming/resources/collect_task.py --verbose -o /b/s/w/ir/tmp/t/tmpPwMbQn.json --task-output-dir /b/s/w/ir/tmp/t/tmpm3TUWz --merge-script /b/s/w/ir/kitchen-checkout/build/scripts/slave/recipe_modules/swarming/resources/standard_gtest_merge.py --merge-script-stdout-file /b/s/w/ir/tmp/t/tmppY1Bzhmerge_script_log --merge-additional-args '[]' --build-properties '{"bot_id": "gce-trusty-32-0258d129-us-west1-c-w9wm", "branch": "refs/heads/master", "buildbucket": {"build": {"bucket": "luci.chromium.ci", "created_by": "user:luci-scheduler@appspot.gserviceaccount.com", "created_ts": 1550862275704388, "id": "8920796754349765808", "project": "chromium", "tags": ["build_address:luci.chromium.ci/ToTLinuxTSan/840", "builder:ToTLinuxTSan", "buildset:commit/git/d3db171f1cba7944210f44ada7fa13ffb0ff3818", "buildset:commit/gitiles/chromium.googlesource.com/chromium/src/+/d3db171f1cba7944210f44ada7fa13ffb0ff3818", "gitiles_ref:refs/heads/master", "scheduler_invocation_id:9086226816500108480", "scheduler_job_id:chromium/ToTLinuxTSan", "user_agent:luci-scheduler"]}, "hostname": "cr-buildbucket.appspot.com"}, "buildername": "ToTLinuxTSan", "buildnumber": 840, "got_angle_revision": "cf9b2853a7e71e67c1197ebafcb7c0f1e4ca6b68", "got_dawn_revision": "87bf834109fd5d372e62901101f285d4fb65fe67", "got_nacl_revision": "1ed9878b8eb68c1e0d0268754dafcf83e747fa8f", "got_revision": "d3db171f1cba7944210f44ada7fa13ffb0ff3818", "got_revision_cp": "refs/heads/master@{#634763}", "got_swarming_client_revision": "d50a88f50782ba29076061b94c7b9d08a6c7e424", "got_v8_revision": "045e76296f66cba2ef67bcfb39fd3ff38236f282", "got_v8_revision_cp": "refs/heads/7.4.203@{#1}", "got_webrtc_revision": "29f9cd9358ee470ced793627139de86f799a8981", "got_webrtc_revision_cp": "refs/heads/master@{#26819}", "mastername": "chromium.clang", "path_config": "generic", "perf_dashboard_machine_group": "ChromiumClang", "recipe": "chromium", "repository": "https://chromium.googlesource.com/chromium/src.git", "revision": "d3db171f1cba7944210f44ada7fa13ffb0ff3818"}' --summary-json-file /b/s/w/ir/tmp/t/tmpLEP3Es.json -- swarming collect -server https://chromium-swarm.appspot.com -worker 50 -task-summary-python -task-output-stdout all -verbose -requests-json /b/s/w/ir/tmp/t/tmp2Idy8b.json in dir /b/s/w/ir/k: allow_subannotations: True base_name: 'unit_tests' cmd: ['python', '-u', '/b/s/w/ir/kitchen-checkout/build/scripts/tools/runit.py', '--show-path', '--with-third-party-lib', '--', 'python', '/b/s/w/ir/kitchen-checkout/build/scripts/slave/recipe_modules/swarming/resources/collect_task.py', '--verbose', '-o', '/b/s/w/ir/tmp/t/tmpPwMbQn.json', '--task-output-dir', '/b/s/w/ir/tmp/t/tmpm3TUWz', '--merge-script', '/b/s/w/ir/kitchen-checkout/build/scripts/slave/recipe_modules/swarming/resources/standard_gtest_merge.py', '--merge-script-stdout-file', '/b/s/w/ir/tmp/t/tmppY1Bzhmerge_script_log', '--merge-additional-args', '[]', '--build-properties', '{"bot_id": "gce-trusty-32-0258d129-us-west1-c-w9wm", "branch": "refs/heads/master", "buildbucket": {"build": {"bucket": "luci.chromium.ci", "created_by": "user:luci-scheduler@appspot.gserviceaccount.com", "created_ts": 1550862275704388, "id": "8920796754349765808", "project": "chromium", "tags": ["build_address:luci.chromium.ci/ToTLinuxTSan/840", "builder:ToTLinuxTSan", "buildset:commit/git/d3db171f1cba7944210f44ada7fa13ffb0ff3818", "buildset:commit/gitiles/chromium.googlesource.com/chromium/src/+/d3db171f1cba7944210f44ada7fa13ffb0ff3818", "gitiles_ref:refs/heads/master", "scheduler_invocation_id:9086226816500108480", "scheduler_job_id:chromium/ToTLinuxTSan", "user_agent:luci-scheduler"]}, "hostname": "cr-buildbucket.appspot.com"}, "buildername": "ToTLinuxTSan", "buildnumber": 840, "got_angle_revision": "cf9b2853a7e71e67c1197ebafcb7c0f1e4ca6b68", "got_dawn_revision": "87bf834109fd5d372e62901101f285d4fb65fe67", "got_nacl_revision": "1ed9878b8eb68c1e0d0268754dafcf83e747fa8f", "got_revision": "d3db171f1cba7944210f44ada7fa13ffb0ff3818", "got_revision_cp": "refs/heads/master@{#634763}", "got_swarming_client_revision": "d50a88f50782ba29076061b94c7b9d08a6c7e424", "got_v8_revision": "045e76296f66cba2ef67bcfb39fd3ff38236f282", "got_v8_revision_cp": "refs/heads/7.4.203@{#1}", "got_webrtc_revision": "29f9cd9358ee470ced793627139de86f799a8981", "got_webrtc_revision_cp": "refs/heads/master@{#26819}", "mastername": "chromium.clang", "path_config": "generic", "perf_dashboard_machine_group": "ChromiumClang", "recipe": "chromium", "repository": "https://chromium.googlesource.com/chromium/src.git", "revision": "d3db171f1cba7944210f44ada7fa13ffb0ff3818"}', '--summary-json-file', '/b/s/w/ir/tmp/t/tmpLEP3Es.json', '--', 'swarming', 'collect', '-server', 'https://chromium-swarm.appspot.com', '-worker', '50', '-task-summary-python', '-task-output-stdout', 'all', '-verbose', '-requests-json', '/b/s/w/ir/tmp/t/tmp2Idy8b.json'] env: {'CHROME_HEADLESS': '1', 'LLVM_FORCE_HEAD_REVISION': 'YES'} env_prefixes: {'PATH': '/b/s/w/ir/cache/swarming_client'} env_suffixes: {} infra_step: False name: 'unit_tests' nest_level: 0 ok_ret: frozenset([0]) step_test_data: <lambda>(...) trigger_specs: () full environment: BOTO_CONFIG: /b/s/w/ir/tmp/gsutil_task/.boto BUILDBUCKET_EXPERIMENTAL: FALSE CHROME_HEADLESS: 1 CIPD_CACHE_DIR: /b/s/cipd_cache/cache CIPD_PROTOCOL: v2 DEVSHELL_CLIENT_PORT: 40082 DOCKER_CONFIG: /b/s/w/ir/tmp/docker_cfg_task DOCKER_TMPDIR: /b/s/w/ir/tmp/docker_tmp_task GIT_CONFIG_NOSYSTEM: 1 GIT_TERMINAL_PROMPT: 0 HOME: /home/chrome-bot INFRA_GIT_WRAPPER_HOME: /b/s/w/ir/tmp/git_home_task LLVM_FORCE_HEAD_REVISION: YES LOGDOG_COORDINATOR_HOST: logs.chromium.org LOGDOG_STREAM_PREFIX: buildbucket/cr-buildbucket.appspot.com/8920796754349765808 LOGDOG_STREAM_PROJECT: chromium LOGDOG_STREAM_SERVER_PATH: unix:/b/s/w/ir/tmp/ld.sock LOGNAME: chrome-bot LUCI_CONTEXT: /b/s/w/ituPWjGQ/luci_context.381743328 MAC_CHROMIUM_TMPDIR: /b/s/w/ir/tmp/t MAIL: /var/mail/chrome-bot NO_GCE_CHECK: False PATH: /b/s/w/ir/cache/swarming_client:/b/s/w/ir/cipd_bin_packages:/b/s/w/ir/cipd_bin_packages/bin:/b/s/cipd_cache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin PWD: /b/s/w/ir/k PYTHONIOENCODING: UTF-8 PYTHONUNBUFFERED: 1 SHELL: /bin/bash SHLVL: 1 SUDO_COMMAND: /usr/bin/python /b/s/swarming_bot.zip start_bot SUDO_GID: 0 SUDO_UID: 0 SUDO_USER: root SWARMING_BOT_ID: gce-trusty-32-0258d129-us-west1-c-w9wm SWARMING_EXTERNAL_BOT_SETUP: 1 SWARMING_HEADLESS: 1 SWARMING_SERVER: https://chromium-swarm.appspot.com SWARMING_TASK_ID: 432f69deb62eb311 TEMP: /b/s/w/ir/tmp/t TEMPDIR: /b/s/w/ir/tmp/t TERM: linux TMP: /b/s/w/ir/tmp/t TMPDIR: /b/s/w/ir/tmp/t USER: chrome-bot USERNAME: chrome-bot VPYTHON_VIRTUALENV_ROOT: /b/s/w/ir/cache/vpython _: /b/s/w/ir/cipd_bin_packages/vpython Set PYTHONPATH: /b/s/w/ir/kitchen-checkout/build/scripts:/b/s/w/ir/kitchen-checkout/build/site_config:/b/s/w/ir/kitchen-checkout/build/third_party:/b/s/w/ir/kitchen-checkout/build/third_party/buildbot_8_4p1:/b/s/w/ir/kitchen-checkout/build/third_party/buildbot_slave_8_4:/b/s/w/ir/kitchen-checkout/build/third_party/coverage-3.7.1:/b/s/w/ir/kitchen-checkout/build/third_party/decorator_3_3_1:/b/s/w/ir/kitchen-checkout/build/third_party/google_api_python_client:/b/s/w/ir/kitchen-checkout/build/third_party/httplib2/python2:/b/s/w/ir/kitchen-checkout/build/third_party/infra_libs:/b/s/w/ir/kitchen-checkout/build/third_party/jinja2:/b/s/w/ir/kitchen-checkout/build/third_party/markupsafe:/b/s/w/ir/kitchen-checkout/build/third_party/oauth2client:/b/s/w/ir/kitchen-checkout/build/third_party/pyasn1:/b/s/w/ir/kitchen-checkout/build/third_party/pyasn1-modules:/b/s/w/ir/kitchen-checkout/build/third_party/python-rsa:/b/s/w/ir/kitchen-checkout/build/third_party/requests_2_10_0:/b/s/w/ir/kitchen-checkout/build/third_party/setuptools-0.6c11:/b/s/w/ir/kitchen-checkout/build/third_party/sqlalchemy_0_7_1:/b/s/w/ir/kitchen-checkout/build/third_party/sqlalchemy_migrate_0_7_1:/b/s/w/ir/kitchen-checkout/build/third_party/tempita_0_5:/b/s/w/ir/kitchen-checkout/build/third_party/twisted_10_2:/b/s/w/ir/kitchen-checkout/build/third_party/uritemplate:/b/s/w/ir/kitchen-checkout/build/third_party/site-packages 2019-02-22 14:45:00,135 - root: [DEBUG] Using task_output_dir: '/b/s/w/ir/tmp/t/tmpm3TUWz' 2019-02-22 14:45:00,135 - root: [WARNING] task_output_dir '/b/s/w/ir/tmp/t/tmpm3TUWz' already exists! 2019-02-22 14:45:00,135 - root: [WARNING] task_output_dir existing content: [] 2019-02-22 14:45:00,135 - root: [INFO] collect_cmd: swarming collect -server https://chromium-swarm.appspot.com -worker 50 -task-summary-python -task-output-stdout all -verbose -requests-json /b/s/w/ir/tmp/t/tmp2Idy8b.json -output-dir /b/s/w/ir/tmp/t/tmpm3TUWz -task-summary-json /b/s/w/ir/tmp/t/tmpLEP3Es.json [D2019-02-22T14:45:00.142827-08:00 6575 0 auth.go:1265] Minting a new token {"key":"luci_ctx/cc960665c37e5a0007039a1f7868c07af11ea9cf423ccf178d6083cb79d6290e", "scopes":"https://www.googleapis.com/auth/userinfo.email"} [D2019-02-22T14:45:00.142895-08:00 6575 0 luci_ctx.go:138] POST http://127.0.0.1:41860/rpc/LuciLocalAuthService.GetOAuthToken {"key":"luci_ctx/cc960665c37e5a0007039a1f7868c07af11ea9cf423ccf178d6083cb79d6290e", "scopes":"https://www.googleapis.com/auth/userinfo.email"} [D2019-02-22T14:45:00.144489-08:00 6575 0 auth.go:1222] Token expires in 44m5.855575213s {"key":"luci_ctx/cc960665c37e5a0007039a1f7868c07af11ea9cf423ccf178d6083cb79d6290e", "scopes":"https://www.googleapis.com/auth/userinfo.email"} 43302be1f3661c10: exit 0 Additional test environment: CHROME_DEVEL_SANDBOX=/opt/chromium/chrome_sandbox CHROME_HEADLESS=1 G_SLICE=always-malloc LANG=en_US.UTF-8 NSS_DISABLE_ARENA_FREE_LIST=1 NSS_DISABLE_UNLOAD=1 TSAN_OPTIONS=symbolize=1 external_symbolizer_path=/b/s/w/ir/third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer Command: ./unit_tests --test-launcher-bot-mode --cfi-diag=0 --test-launcher-summary-output=/b/s/w/io0eDe3v/output.json --no-sandbox IMPORTANT DEBUGGING NOTE: batches of tests are run inside their own process. For debugging a test inside a debugger, use the --gtest_filter=<your_test_name> flag along with --single-process-tests. Using sharding settings from environment. This is shard 0/1 Using 8 parallel jobs. [1/9486] ShouldRecordActiveUse.TryChromeAgainCommand (0 ms) [2/9486] AfterStartupTaskTest.IsStartupComplete (11 ms) [3/9486] AfterStartupTaskTest.PostTask (12 ms) [4/9486] AfterStartupTaskTest.AfterStartupTaskUtilsRunner (11 ms) [5/9486] UserTypeFilterTest.ChildUser (50 ms) [6/9486] UserTypeFilterTest.GuestUser (34 ms) [7/9486] UserTypeFilterTest.ManagedUser (34 ms) [8/9486] UserTypeFilterTest.SupervisedUser (33 ms) [9/9486] UserTypeFilterTest.UnmanagedUser (32 ms) [10/9486] UserTypeFilterTest.EmptyFilter (32 ms) [11/9486] FrameNodeImplDeathTest.AddChildFrameOnCyclicReference (10 ms) [12/9486] IncognitoModePrefsDeathTest.GetAvailabilityBadValue (0 ms) [13/9486] CastInternalMessageUtilDeathTest.CastInternalMessageFromAppMessageString (0 ms) [14/9486] CastInternalMessageUtilDeathTest.CastInternalMessageFromV2MessageString (1 ms) [15/9486] CastInternalMessageUtilDeathTest.CastInternalMessageFromClientConnectString (0 ms) [16/9486] AboutFlagsTest.NoSeparators (2 ms) [17/9486] AboutFlagsTest.EveryFlagHasMetadata (44 ms) [18/9486] AboutFlagsHistogramTest.CheckHistograms (1534 ms) [19/9486] ShouldRecordActiveUse.OrdinaryCommand (0 ms) [20/9486] ShouldRecordActiveUse.FakeTryChromeAgainCommand (0 ms) [21/9486] UserTypeFilterTest.DefaultFilter (148 ms) [22/9486] ChromeAutocompleteProviderClientTest.StartServiceWorker (73 ms) [23/9486] ChromeAutocompleteProviderClientTest.DontStartServiceWorkerInIncognito (72 ms) [24/9486] ChromeAutocompleteProviderClientTest.DontStartServiceWorkerIfSuggestDisabled (75 ms) [25/9486] ChromeAutocompleteProviderClientTest.TestStrippedURLsAreEqual (66 ms) [26/9486] ChromeAutocompleteSchemeClassifierTest.NormalSearch (73 ms) [27/9486] ChromeAutocompleteSchemeClassifierTest.HttpUrl (276 ms) [28/9486] ChromeAutocompleteSchemeClassifierTest.BlockedScheme (72 ms) [29/9486] SearchProviderTest.QueryDefaultProvider (732 ms) [30/9486] SearchProviderTest.HasQueryWhatYouTypedIfDefaultKeywordChanges (269 ms) [31/9486] BackgroundFetchDelegateImplTest.HistoryServiceIntegrationUrlVsOrigin (293 ms) [32/9486] BackgroundFetchDelegateImplTest.RecordUkmEvent (64 ms) [33/9486] BackgroundFetchPermissionContextTest.TestOutcomeAllowWithFrame (319 ms) [34/9486] BackgroundFetchPermissionContextTest.TestOutcomeAllowWithoutFrame (121 ms) [35/9486] BackgroundFetchPermissionContextTest.TestOutcomeDenyWithoutFrame (116 ms) [36/9486] BackgroundFetchPermissionContextTest.TestOutcomePromptWithoutFrame (88 ms) [37/9486] BackgroundSyncControllerImplTest.RapporTest (35 ms) [38/9486] BackgroundSyncControllerImplTest.NoRapporWhenOffTheRecord (48 ms) [39/9486] BackgroundSyncControllerImplTest.NoFieldTrial (34 ms) [40/9486] BackgroundSyncControllerImplTest.SomeParamsSet (41 ms) [41/9486] SearchProviderTest.TestDeleteHistoryQueryMatch (334 ms) [42/9486] SearchProviderTest.CheckDuplicateMatchesSaved (749 ms) [43/9486] SearchProviderTest.SuggestQueryUsesToken (666 ms) [44/9486] SearchProviderTest.SessionToken (236 ms) [45/9486] SearchProviderTest.AnswersCache (255 ms) [46/9486] SearchProviderTest.RemoveExtraAnswers (230 ms) [47/9486] SearchProviderTest.DoesNotProvideOnFocus (283 ms) [48/9486] InvalidSearchProviderTest.DoesNotSendSuggestRequests (253 ms) [49/9486] ShortcutsProviderExtensionTest.Extension (201 ms) [50/9486] BackgroundFetchDelegateImplTest.HistoryServiceIntegration (228 ms) [51/9486] BackgroundSyncControllerImplTest.AllParamsSet (47 ms) [52/9486] BackgroundSyncPermissionContextTest.TestSecureRequestingUrl (202 ms) [53/9486] BackgroundSyncPermissionContextTest.TestInsecureRequestingUrl (189 ms) [54/9486] BackgroundSyncPermissionContextTest.TestBlockOrigin (183 ms) [55/9486] AppBannerSettingsHelperTest.SingleEvents (128 ms) [56/9486] AppBannerSettingsHelperTest.ShouldShowFromEngagement (74 ms) [57/9486] AppBannerSettingsHelperTest.ReportsWhetherBannerWasRecentlyBlocked (112 ms) [58/9486] AppBannerSettingsHelperTest.ReportsWhetherBannerWasRecentlyIgnored (121 ms) [59/9486] AppBannerSettingsHelperTest.ReportsWhetherSiteWasEverAdded (103 ms) [60/9486] AppBannerSettingsHelperTest.OperatesOnOrigins (104 ms) [61/9486] AppBannerSettingsHelperTest.ShouldShowWithHigherTotal (95 ms) [62/9486] AppBannerSettingsHelperTest.WasLaunchedRecently (130 ms) [63/9486] BitmapFetcherServiceTest.RequestInvalidUrl (51 ms) [64/9486] BitmapFetcherServiceTest.CancelInvalidRequest (48 ms) [65/9486] BitmapFetcherServiceTest.OnlyFirstRequestCreatesFetcher (47 ms) [66/9486] BitmapFetcherServiceTest.CompletedFetchNotifiesAllObservers (33 ms) [67/9486] BitmapFetcherServiceTest.CancelRequest (29 ms) [68/9486] BitmapFetcherServiceTest.FailedNullRequestsAreHandled (33 ms) [69/9486] BitmapFetcherServiceTest.FailedRequestsDontEnterCache (47 ms) [70/9486] ManagedBookmarkServiceNoPolicyTest.EmptyManagedNode (52 ms) [71/9486] SearchProviderTest.DontTrimHttpSchemeIfInputHasScheme (1022 ms) [72/9486] SearchProviderTest.DontTrimHttpsSchemeIfInputHasScheme (239 ms) [73/9486] SearchProviderTest.DoTrimHttpsScheme (251 ms) [74/9486] SearchProviderTest.ParseEntitySuggestion (238 ms) [75/9486] SearchProviderTest.PrefetchMetadataParsing (283 ms) [76/9486] SearchProviderTest.XSSIGuardedJSONParsing_InvalidResponse (212 ms) [77/9486] SearchProviderTest.XSSIGuardedJSONParsing_ValidResponses (263 ms) [78/9486] SearchProviderTest.ParseDeletionUrl (257 ms) [79/9486] SearchProviderTest.CanSendURL (234 ms) [80/9486] SearchProviderTest.TestDeleteMatch (233 ms) [81/9486] SearchProviderTest.HonorPreventInlineAutocomplete (1276 ms) [82/9486] SearchProviderTest.QueryKeywordProvider (279 ms) [83/9486] SearchProviderTest.SendDataToSuggestAtAppropriateTimes (437 ms) [84/9486] SearchProviderTest.DontAutocompleteURLLikeTerms (265 ms) [85/9486] SearchProviderTest.DontAutocompleteUntilMultipleWordsTyped (255 ms) [86/9486] SearchProviderTest.AutocompleteMultipleVisitsImmediately (230 ms) [87/9486] SearchProviderTest.AutocompleteAfterSpace (255 ms) [88/9486] SearchProviderTest.ScoreNewerSearchesHigher (263 ms) [89/9486] SearchProviderTest.ResetResultsBetweenRuns (300 ms) [90/9486] SearchProviderTest.DontReplacePreviousAutocompletion (261 ms) [91/9486] SearchProviderTest.DontInlineAutocompleteAsynchronously (841 ms) [92/9486] SearchProviderTest.DontCacheCalculatorSuggestions (256 ms) [93/9486] SearchProviderTest.LocalAndRemoteRelevances (347 ms) [94/9486] SearchProviderTest.DefaultProviderSuggestRelevanceScoringUrlInput (390 ms) [95/9486] SearchProviderTest.FieldTrialTriggeredParsing (227 ms) [96/9486] SearchProviderTest.SpecificTypeIdentifierParsing (291 ms) [97/9486] SearchProviderTest.NavigationInline (593 ms) [98/9486] SearchProviderTest.NavigationInlineSchemeSubstring (227 ms) [99/9486] SearchProviderTest.NavigationInlineDomainClassify (182 ms) [100/9486] SearchProviderTest.DoTrimHttpScheme (193 ms) [101/9486] SearchProviderTest.DontCrowdOutSingleWords (338 ms) [102/9486] SearchProviderTest.InlineMixedCaseMatches (1254 ms) [103/9486] SearchProviderTest.KeywordOrderingAndDescriptions (278 ms) [104/9486] SearchProviderTest.KeywordVerbatim (346 ms) [105/9486] SearchProviderTest.CommandLineOverrides (244 ms) [106/9486] SearchProviderTest.NavSuggestNoSuggestedRelevanceScores (240 ms) [107/9486] SearchProviderTest.SuggestRelevance (246 ms) [108/9486] SearchProviderTest.DefaultProviderNoSuggestRelevanceInKeywordMode (359 ms) [109/9486] SearchProviderTest.DefaultFetcherSuggestRelevance (686 ms) [110/9486] SearchProviderTest.KeywordFetcherSuggestRelevance (1168 ms) [111/9486] ManagedBookmarkServiceTest.LoadInitial (77 ms) [112/9486] ManagedBookmarkServiceTest.SwapNodes (54 ms) [113/9486] ManagedBookmarkServiceTest.RemoveNode (57 ms) [114/9486] ManagedBookmarkServiceTest.CreateNewNodes (56 ms) [115/9486] ManagedBookmarkServiceTest.RemoveAllUserBookmarks (48 ms) [116/9486] ManagedBookmarkServiceTest.IsDescendantOfManagedNode (53 ms) [117/9486] ManagedBookmarkServiceTest.RemoveAllDoesntRemoveManaged (48 ms) [118/9486] ManagedBookmarkServiceTest.HasDescendantsOfManagedNode (43 ms) [119/9486] ManagedBookmarkServiceTest.GetManagedBookmarksDomain (54 ms) [120/9486] BrowserAboutHandlerTest.WillHandleBrowserAboutURL (52 ms) [121/9486] BrowserAboutHandlerTest.WillHandleBrowserAboutURLForMDSettings (67 ms) [122/9486] BrowserAboutHandlerTest.WillHandleBrowserAboutURLForHistory (50 ms) [123/9486] BrowserAboutHandlerTest.NoVirtualURLForFixup (44 ms) [124/9486] CannedBrowsingDataAppCacheHelperTest.SetInfo (108 ms) [125/9486] CannedBrowsingDataAppCacheHelperTest.Unique (90 ms) [126/9486] CannedBrowsingDataAppCacheHelperTest.Empty (97 ms) [127/9486] CannedBrowsingDataAppCacheHelperTest.Delete (125 ms) [128/9486] CannedBrowsingDataAppCacheHelperTest.IgnoreExtensionsAndDevTools (93 ms) [129/9486] CannedBrowsingDataCacheStorageHelperTest.Empty (80 ms) [130/9486] CannedBrowsingDataCacheStorageHelperTest.Delete (69 ms) [131/9486] CannedBrowsingDataCacheStorageHelperTest.IgnoreExtensionsAndDevTools (101 ms) [132/9486] BrowsingDataCookieHelperTest.FetchData (79 ms) [133/9486] BrowsingDataCookieHelperTest.DomainCookie (81 ms) [134/9486] BrowsingDataCookieHelperTest.DeleteCookie (56 ms) [135/9486] BrowsingDataCookieHelperTest.CannedDeleteCookie (204 ms) [136/9486] BrowsingDataCookieHelperTest.CannedDomainCookie (184 ms) [137/9486] BrowsingDataCookieHelperTest.CannedUnique (73 ms) [138/9486] BrowsingDataCookieHelperTest.CannedReplaceCookie (65 ms) [139/9486] BrowsingDataCookieHelperTest.CannedEmpty (49 ms) [140/9486] BrowsingDataCookieHelperTest.CannedDifferentFrames (418 ms) [ RUN ] BrowsingDataHelperTest.ChromeSchemesAreNotWebSchemes [ OK ] BrowsingDataHelperTest.ChromeSchemesAreNotWebSchemes (0 ms) [ RUN ] BrowsingDataHelperTest.WebStorageSchemesAreNotExtensions [ OK ] BrowsingDataHelperTest.WebStorageSchemesAreNotExtensions (0 ms) [ RUN ] BrowsingDataHelperTest.ChromeSchemesAreNotAllExtension [ OK ] BrowsingDataHelperTest.ChromeSchemesAreNotAllExtension (1 ms) [ RUN ] BrowsingDataHelperTest.SchemesThatCantStoreDataDontMatchAnything [ OK ] BrowsingDataHelperTest.SchemesThatCantStoreDataDontMatchAnything (0 ms) [----------] 4 tests from BrowsingDataHelperTest (10 ms total) [----------] 3 tests from CannedBrowsingDataIndexedDBHelperTest [ RUN ] CannedBrowsingDataIndexedDBHelperTest.Empty [ OK ] CannedBrowsingDataIndexedDBHelperTest.Empty (91 ms) [ RUN ] CannedBrowsingDataIndexedDBHelperTest.Delete ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x560d501ae548 by thread T5: #0 base::TaskScheduler::GetInstance() base/task/task_scheduler/task_scheduler.cc:85:10 (unit_tests+0xa771e2a) #1 GetTaskExecutorForTraits base/task/post_task.cc:50:32 (unit_tests+0xa751d3c) #2 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:85 (unit_tests+0xa751d3c) #3 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #4 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #5 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #6 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #7 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #8 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #9 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #10 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #11 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x560d501ae548 by main thread: #0 base::TaskScheduler::SetInstance(std::__1::unique_ptr<base::TaskScheduler, std::__1::default_delete<base::TaskScheduler> >) base/task/task_scheduler/task_scheduler.cc:80:20 (unit_tests+0xa771eb1) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371:3 (unit_tests+0x99190fa) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is global 'base::(anonymous namespace)::g_task_scheduler' of size 8 at 0x560d501ae548 (unit_tests+0x000012ad1548) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/task/task_scheduler/task_scheduler.cc:85:10 in base::TaskScheduler::GetInstance() ================== ================== WARNING: ThreadSanitizer: data race on vptr (ctor/dtor vs virtual call) (pid=2813) Read of size 8 at 0x7b6800001200 by thread T5: #0 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d67) #1 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #2 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #3 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #4 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #5 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #6 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #7 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #8 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #9 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #10 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001200 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race on vptr (ctor/dtor vs virtual call) base/task/post_task.cc:86:9 in base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic read of size 1 at 0x7b6800001370 by thread T5: #0 __tsan_atomic8_load /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:524 (unit_tests+0x3aa8636) #1 load buildtools/third_party/libc++/trunk/include/atomic:925:17 (unit_tests+0xa772fbb) #2 IsSet base/synchronization/atomic_flag.h:34 (unit_tests+0xa772fbb) #3 SetUserBlockingPriorityIfNeeded base/task/task_scheduler/task_scheduler_impl.cc:342 (unit_tests+0xa772fbb) #4 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162 (unit_tests+0xa772fbb) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #8 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001370 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:925:17 in load ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x7b6800001218 by thread T5: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa773843) #1 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265 (unit_tests+0xa773843) #2 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #3 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #4 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #5 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #6 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #7 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #8 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #9 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #10 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #11 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #12 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #13 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001218 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x7b5c00000e10 by thread T5: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa7864c3) #1 BeforePostTask base/task/task_scheduler/task_tracker.cc (unit_tests+0xa7864c3) #2 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:431 (unit_tests+0xa7864c3) #3 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265:23 (unit_tests+0xa77386a) #4 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #8 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b5c00000e10 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic read of size 4 at 0x7b040002fbb0 by thread T5: #0 __tsan_atomic32_load /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:534 (unit_tests+0x3aa8b36) #1 load buildtools/third_party/libc++/trunk/include/atomic:921:17 (unit_tests+0xa786542) #2 NoBarrier_Load base/atomicops_internals_portable.h:130 (unit_tests+0xa786542) #3 HasShutdownStarted base/task/task_scheduler/task_tracker.cc:182 (unit_tests+0xa786542) #4 BeforePostTask base/task/task_scheduler/task_tracker.cc:770 (unit_tests+0xa786542) #5 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:431 (unit_tests+0xa786542) #6 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265:23 (unit_tests+0xa77386a) #7 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #8 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #9 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #10 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #11 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #12 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #13 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #14 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #15 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #16 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #17 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b040002fbb0 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, int) base/task/task_scheduler/task_tracker.cc:284:14 (unit_tests+0xa784855) #2 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker.cc:279:7 (unit_tests+0xa7847e1) #3 base::internal::TaskTrackerPosix::TaskTrackerPosix(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker_posix.cc:15:56 (unit_tests+0xa7f25f9) #4 TestTaskTracker base/test/scoped_task_environment.cc:621:7 (unit_tests+0x9918bcd) #5 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327 (unit_tests+0x9918bcd) #6 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #8 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #9 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #10 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #18 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #24 Run base/callback.h:99:12 (unit_tests+0x99226bd) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 4 at 0x7b040002fbb0 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, int) base/task/task_scheduler/task_tracker.cc:284:14 (unit_tests+0xa784855) #2 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker.cc:279:7 (unit_tests+0xa7847e1) #3 base::internal::TaskTrackerPosix::TaskTrackerPosix(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker_posix.cc:15:56 (unit_tests+0xa7f25f9) #4 TestTaskTracker base/test/scoped_task_environment.cc:621:7 (unit_tests+0x9918bcd) #5 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327 (unit_tests+0x9918bcd) #6 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #8 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #9 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #10 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #18 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #24 Run base/callback.h:99:12 (unit_tests+0x99226bd) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:921:17 in load ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic write of size 4 at 0x7b5c00000e18 by thread T5: #0 __tsan_atomic32_fetch_add /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:615 (unit_tests+0x3aaaff1) #1 fetch_add buildtools/third_party/libc++/trunk/include/atomic:1013:17 (unit_tests+0xa786570) #2 NoBarrier_AtomicIncrement base/atomicops_internals_portable.h:86 (unit_tests+0xa786570) #3 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:436 (unit_tests+0xa786570) #4 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265:23 (unit_tests+0xa77386a) #5 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #6 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #7 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #8 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #9 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #10 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #11 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #12 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #13 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #14 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #15 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #16 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b5c00000e18 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:1013:17 in fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 1 at 0x7b6800001378 by thread T5 (mutexes: write M624165417916579016): #0 value base/optional.h:607:5 (unit_tests+0xa773fc4) #1 GetWorkerPoolImplForTraits base/task/task_scheduler/task_scheduler_impl.cc:332 (unit_tests+0xa773fc4) #2 base::internal::TaskSchedulerImpl::GetWorkerPoolForTraits(base::TaskTraits const&) base/task/task_scheduler/task_scheduler_impl.cc:337 (unit_tests+0xa773fc4) #3 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:272:5 (unit_tests+0xa7739f3) #4 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #8 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001378 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Mutex M624165417916579016 is already destroyed. Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/optional.h:607:5 in value ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x7b6800001388 by thread T5 (mutexes: write M624165417916579016): #0 operator-> base/task/task_scheduler/tracked_ref.h:102:34 (unit_tests+0xa776bbd) #1 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:70 (unit_tests+0xa776bbd) #2 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:272:37 (unit_tests+0xa773a2f) #3 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #4 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #5 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #6 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #7 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #8 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #9 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #10 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #11 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #12 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #13 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #14 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001388 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Mutex M624165417916579016 is already destroyed. Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/task/task_scheduler/tracked_ref.h:102:34 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic read of size 1 at 0x7b5c00000fa8 by thread T5 (mutexes: write M624165417916579016): #0 pthread_mutex_lock /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:4073 (unit_tests+0x3a77f7f) #1 base::internal::LockImpl::Lock() base/synchronization/lock_impl_posix.cc:102:12 (unit_tests+0xa7edadd) #2 Acquire base/synchronization/lock.h:31:26 (unit_tests+0xa786605) #3 AutoSchedulerLock base/task/task_scheduler/scheduler_lock.h:86 (unit_tests+0xa786605) #4 base::internal::TaskTracker::WillScheduleSequence(base::internal::Sequence::Transaction const&, base::internal::CanScheduleSequenceObserver*) base/task/task_scheduler/task_tracker.cc:449 (unit_tests+0xa786605) #5 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:70:24 (unit_tests+0xa776bcc) #6 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:272:37 (unit_tests+0xa773a2f) #7 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #8 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #9 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #10 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #11 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #12 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #13 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #14 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #15 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #16 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #17 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b5c00000fa8 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Mutex M624165417916579016 is already destroyed. Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/synchronization/lock_impl_posix.cc:102:12 in base::internal::LockImpl::Lock() ================== [ OK ] CannedBrowsingDataIndexedDBHelperTest.Delete (2012 ms) [ RUN ] CannedBrowsingDataIndexedDBHelperTest.IgnoreExtensionsAndDevTools [ OK ] CannedBrowsingDataIndexedDBHelperTest.IgnoreExtensionsAndDevTools (66 ms) [----------] 3 tests from CannedBrowsingDataIndexedDBHelperTest (2173 ms total) [----------] 3 tests from CannedBrowsingDataLocalStorageTest [ RUN ] CannedBrowsingDataLocalStorageTest.Empty [ OK ] CannedBrowsingDataLocalStorageTest.Empty (51 ms) [ RUN ] CannedBrowsingDataLocalStorageTest.Delete [2813:3035:0222/143715.120942:61016326:ERROR:simple_index_file_posix.cc(36)] opendir /b/s/w/itu7H1tB/.org.chromium.Chromium.DqLEHD/Code Cache/js: No such file or directory (2) [2813:3035:0222/143715.286718:61182110:ERROR:simple_index_file.cc(612)] Could not reconstruct index from disk [ OK ] CannedBrowsingDataLocalStorageTest.Delete (443 ms) [ RUN ] CannedBrowsingDataLocalStorageTest.IgnoreExtensionsAndDevTools [ OK ] CannedBrowsingDataLocalStorageTest.IgnoreExtensionsAndDevTools (369 ms) [----------] 3 tests from CannedBrowsingDataLocalStorageTest (870 ms total) [----------] Global test environment tear-down [==========] 10 tests from 3 test suites ran. (3058 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 10 warnings [141/9486] BrowsingDataHelperTest.ChromeSchemesAreNotWebSchemes (0 ms) [ RUN ] BrowsingDataHelperTest.WebStorageSchemesAreNotExtensions [ OK ] BrowsingDataHelperTest.WebStorageSchemesAreNotExtensions (0 ms) [ RUN ] BrowsingDataHelperTest.ChromeSchemesAreNotAllExtension [ OK ] BrowsingDataHelperTest.ChromeSchemesAreNotAllExtension (1 ms) [ RUN ] BrowsingDataHelperTest.SchemesThatCantStoreDataDontMatchAnything [ OK ] BrowsingDataHelperTest.SchemesThatCantStoreDataDontMatchAnything (0 ms) [----------] 4 tests from BrowsingDataHelperTest (10 ms total) [----------] 3 tests from CannedBrowsingDataIndexedDBHelperTest [ RUN ] CannedBrowsingDataIndexedDBHelperTest.Empty [ OK ] CannedBrowsingDataIndexedDBHelperTest.Empty (91 ms) [ RUN ] CannedBrowsingDataIndexedDBHelperTest.Delete ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x560d501ae548 by thread T5: #0 base::TaskScheduler::GetInstance() base/task/task_scheduler/task_scheduler.cc:85:10 (unit_tests+0xa771e2a) #1 GetTaskExecutorForTraits base/task/post_task.cc:50:32 (unit_tests+0xa751d3c) #2 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:85 (unit_tests+0xa751d3c) #3 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #4 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #5 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #6 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #7 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #8 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #9 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #10 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #11 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x560d501ae548 by main thread: #0 base::TaskScheduler::SetInstance(std::__1::unique_ptr<base::TaskScheduler, std::__1::default_delete<base::TaskScheduler> >) base/task/task_scheduler/task_scheduler.cc:80:20 (unit_tests+0xa771eb1) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371:3 (unit_tests+0x99190fa) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is global 'base::(anonymous namespace)::g_task_scheduler' of size 8 at 0x560d501ae548 (unit_tests+0x000012ad1548) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/task/task_scheduler/task_scheduler.cc:85:10 in base::TaskScheduler::GetInstance() ================== ================== WARNING: ThreadSanitizer: data race on vptr (ctor/dtor vs virtual call) (pid=2813) Read of size 8 at 0x7b6800001200 by thread T5: #0 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d67) #1 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #2 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #3 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #4 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #5 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #6 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #7 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #8 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #9 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #10 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001200 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race on vptr (ctor/dtor vs virtual call) base/task/post_task.cc:86:9 in base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic read of size 1 at 0x7b6800001370 by thread T5: #0 __tsan_atomic8_load /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:524 (unit_tests+0x3aa8636) #1 load buildtools/third_party/libc++/trunk/include/atomic:925:17 (unit_tests+0xa772fbb) #2 IsSet base/synchronization/atomic_flag.h:34 (unit_tests+0xa772fbb) #3 SetUserBlockingPriorityIfNeeded base/task/task_scheduler/task_scheduler_impl.cc:342 (unit_tests+0xa772fbb) #4 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162 (unit_tests+0xa772fbb) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #8 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001370 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:925:17 in load ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x7b6800001218 by thread T5: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa773843) #1 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265 (unit_tests+0xa773843) #2 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #3 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #4 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #5 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #6 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #7 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #8 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #9 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #10 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #11 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #12 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #13 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001218 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x7b5c00000e10 by thread T5: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa7864c3) #1 BeforePostTask base/task/task_scheduler/task_tracker.cc (unit_tests+0xa7864c3) #2 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:431 (unit_tests+0xa7864c3) #3 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265:23 (unit_tests+0xa77386a) #4 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #8 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b5c00000e10 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic read of size 4 at 0x7b040002fbb0 by thread T5: #0 __tsan_atomic32_load /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:534 (unit_tests+0x3aa8b36) #1 load buildtools/third_party/libc++/trunk/include/atomic:921:17 (unit_tests+0xa786542) #2 NoBarrier_Load base/atomicops_internals_portable.h:130 (unit_tests+0xa786542) #3 HasShutdownStarted base/task/task_scheduler/task_tracker.cc:182 (unit_tests+0xa786542) #4 BeforePostTask base/task/task_scheduler/task_tracker.cc:770 (unit_tests+0xa786542) #5 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:431 (unit_tests+0xa786542) #6 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265:23 (unit_tests+0xa77386a) #7 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #8 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #9 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #10 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #11 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #12 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #13 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #14 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #15 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #16 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #17 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b040002fbb0 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, int) base/task/task_scheduler/task_tracker.cc:284:14 (unit_tests+0xa784855) #2 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker.cc:279:7 (unit_tests+0xa7847e1) #3 base::internal::TaskTrackerPosix::TaskTrackerPosix(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker_posix.cc:15:56 (unit_tests+0xa7f25f9) #4 TestTaskTracker base/test/scoped_task_environment.cc:621:7 (unit_tests+0x9918bcd) #5 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327 (unit_tests+0x9918bcd) #6 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #8 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #9 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #10 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #18 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #24 Run base/callback.h:99:12 (unit_tests+0x99226bd) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 4 at 0x7b040002fbb0 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, int) base/task/task_scheduler/task_tracker.cc:284:14 (unit_tests+0xa784855) #2 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker.cc:279:7 (unit_tests+0xa7847e1) #3 base::internal::TaskTrackerPosix::TaskTrackerPosix(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker_posix.cc:15:56 (unit_tests+0xa7f25f9) #4 TestTaskTracker base/test/scoped_task_environment.cc:621:7 (unit_tests+0x9918bcd) #5 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327 (unit_tests+0x9918bcd) #6 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #8 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #9 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #10 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #18 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #24 Run base/callback.h:99:12 (unit_tests+0x99226bd) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:921:17 in load ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic write of size 4 at 0x7b5c00000e18 by thread T5: #0 __tsan_atomic32_fetch_add /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:615 (unit_tests+0x3aaaff1) #1 fetch_add buildtools/third_party/libc++/trunk/include/atomic:1013:17 (unit_tests+0xa786570) #2 NoBarrier_AtomicIncrement base/atomicops_internals_portable.h:86 (unit_tests+0xa786570) #3 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:436 (unit_tests+0xa786570) #4 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265:23 (unit_tests+0xa77386a) #5 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #6 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #7 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #8 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #9 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #10 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #11 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #12 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #13 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #14 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #15 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #16 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b5c00000e18 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:1013:17 in fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 1 at 0x7b6800001378 by thread T5 (mutexes: write M624165417916579016): #0 value base/optional.h:607:5 (unit_tests+0xa773fc4) #1 GetWorkerPoolImplForTraits base/task/task_scheduler/task_scheduler_impl.cc:332 (unit_tests+0xa773fc4) #2 base::internal::TaskSchedulerImpl::GetWorkerPoolForTraits(base::TaskTraits const&) base/task/task_scheduler/task_scheduler_impl.cc:337 (unit_tests+0xa773fc4) #3 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:272:5 (unit_tests+0xa7739f3) #4 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #8 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001378 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Mutex M624165417916579016 is already destroyed. Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/optional.h:607:5 in value ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x7b6800001388 by thread T5 (mutexes: write M624165417916579016): #0 operator-> base/task/task_scheduler/tracked_ref.h:102:34 (unit_tests+0xa776bbd) #1 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:70 (unit_tests+0xa776bbd) #2 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:272:37 (unit_tests+0xa773a2f) #3 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #4 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #5 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #6 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #7 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #8 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #9 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #10 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #11 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #12 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #13 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #14 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001388 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Mutex M624165417916579016 is already destroyed. Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/task/task_scheduler/tracked_ref.h:102:34 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic read of size 1 at 0x7b5c00000fa8 by thread T5 (mutexes: write M624165417916579016): #0 pthread_mutex_lock /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:4073 (unit_tests+0x3a77f7f) #1 base::internal::LockImpl::Lock() base/synchronization/lock_impl_posix.cc:102:12 (unit_tests+0xa7edadd) #2 Acquire base/synchronization/lock.h:31:26 (unit_tests+0xa786605) #3 AutoSchedulerLock base/task/task_scheduler/scheduler_lock.h:86 (unit_tests+0xa786605) #4 base::internal::TaskTracker::WillScheduleSequence(base::internal::Sequence::Transaction const&, base::internal::CanScheduleSequenceObserver*) base/task/task_scheduler/task_tracker.cc:449 (unit_tests+0xa786605) #5 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:70:24 (unit_tests+0xa776bcc) #6 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:272:37 (unit_tests+0xa773a2f) #7 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #8 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #9 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #10 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #11 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #12 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #13 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #14 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #15 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #16 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #17 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b5c00000fa8 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Mutex M624165417916579016 is already destroyed. Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/synchronization/lock_impl_posix.cc:102:12 in base::internal::LockImpl::Lock() ================== [ OK ] CannedBrowsingDataIndexedDBHelperTest.Delete (2012 ms) [ RUN ] CannedBrowsingDataIndexedDBHelperTest.IgnoreExtensionsAndDevTools [ OK ] CannedBrowsingDataIndexedDBHelperTest.IgnoreExtensionsAndDevTools (66 ms) [----------] 3 tests from CannedBrowsingDataIndexedDBHelperTest (2173 ms total) [----------] 3 tests from CannedBrowsingDataLocalStorageTest [ RUN ] CannedBrowsingDataLocalStorageTest.Empty [ OK ] CannedBrowsingDataLocalStorageTest.Empty (51 ms) [ RUN ] CannedBrowsingDataLocalStorageTest.Delete [2813:3035:0222/143715.120942:61016326:ERROR:simple_index_file_posix.cc(36)] opendir /b/s/w/itu7H1tB/.org.chromium.Chromium.DqLEHD/Code Cache/js: No such file or directory (2) [2813:3035:0222/143715.286718:61182110:ERROR:simple_index_file.cc(612)] Could not reconstruct index from disk [ OK ] CannedBrowsingDataLocalStorageTest.Delete (443 ms) [ RUN ] CannedBrowsingDataLocalStorageTest.IgnoreExtensionsAndDevTools [ OK ] CannedBrowsingDataLocalStorageTest.IgnoreExtensionsAndDevTools (369 ms) [----------] 3 tests from CannedBrowsingDataLocalStorageTest (870 ms total) [----------] Global test environment tear-down [==========] 10 tests from 3 test suites ran. (3058 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 10 warnings [142/9486] BrowsingDataHelperTest.WebStorageSchemesAreNotExtensions (0 ms) [ RUN ] BrowsingDataHelperTest.ChromeSchemesAreNotAllExtension [ OK ] BrowsingDataHelperTest.ChromeSchemesAreNotAllExtension (1 ms) [ RUN ] BrowsingDataHelperTest.SchemesThatCantStoreDataDontMatchAnything [ OK ] BrowsingDataHelperTest.SchemesThatCantStoreDataDontMatchAnything (0 ms) [----------] 4 tests from BrowsingDataHelperTest (10 ms total) [----------] 3 tests from CannedBrowsingDataIndexedDBHelperTest [ RUN ] CannedBrowsingDataIndexedDBHelperTest.Empty [ OK ] CannedBrowsingDataIndexedDBHelperTest.Empty (91 ms) [ RUN ] CannedBrowsingDataIndexedDBHelperTest.Delete ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x560d501ae548 by thread T5: #0 base::TaskScheduler::GetInstance() base/task/task_scheduler/task_scheduler.cc:85:10 (unit_tests+0xa771e2a) #1 GetTaskExecutorForTraits base/task/post_task.cc:50:32 (unit_tests+0xa751d3c) #2 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:85 (unit_tests+0xa751d3c) #3 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #4 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #5 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #6 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #7 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #8 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #9 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #10 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #11 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x560d501ae548 by main thread: #0 base::TaskScheduler::SetInstance(std::__1::unique_ptr<base::TaskScheduler, std::__1::default_delete<base::TaskScheduler> >) base/task/task_scheduler/task_scheduler.cc:80:20 (unit_tests+0xa771eb1) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371:3 (unit_tests+0x99190fa) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is global 'base::(anonymous namespace)::g_task_scheduler' of size 8 at 0x560d501ae548 (unit_tests+0x000012ad1548) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/task/task_scheduler/task_scheduler.cc:85:10 in base::TaskScheduler::GetInstance() ================== ================== WARNING: ThreadSanitizer: data race on vptr (ctor/dtor vs virtual call) (pid=2813) Read of size 8 at 0x7b6800001200 by thread T5: #0 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d67) #1 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #2 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #3 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #4 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #5 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #6 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #7 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #8 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #9 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #10 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001200 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race on vptr (ctor/dtor vs virtual call) base/task/post_task.cc:86:9 in base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic read of size 1 at 0x7b6800001370 by thread T5: #0 __tsan_atomic8_load /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:524 (unit_tests+0x3aa8636) #1 load buildtools/third_party/libc++/trunk/include/atomic:925:17 (unit_tests+0xa772fbb) #2 IsSet base/synchronization/atomic_flag.h:34 (unit_tests+0xa772fbb) #3 SetUserBlockingPriorityIfNeeded base/task/task_scheduler/task_scheduler_impl.cc:342 (unit_tests+0xa772fbb) #4 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162 (unit_tests+0xa772fbb) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #8 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001370 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:925:17 in load ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x7b6800001218 by thread T5: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa773843) #1 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265 (unit_tests+0xa773843) #2 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #3 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #4 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #5 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #6 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #7 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #8 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #9 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #10 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #11 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #12 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #13 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001218 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x7b5c00000e10 by thread T5: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa7864c3) #1 BeforePostTask base/task/task_scheduler/task_tracker.cc (unit_tests+0xa7864c3) #2 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:431 (unit_tests+0xa7864c3) #3 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265:23 (unit_tests+0xa77386a) #4 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #8 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b5c00000e10 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic read of size 4 at 0x7b040002fbb0 by thread T5: #0 __tsan_atomic32_load /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:534 (unit_tests+0x3aa8b36) #1 load buildtools/third_party/libc++/trunk/include/atomic:921:17 (unit_tests+0xa786542) #2 NoBarrier_Load base/atomicops_internals_portable.h:130 (unit_tests+0xa786542) #3 HasShutdownStarted base/task/task_scheduler/task_tracker.cc:182 (unit_tests+0xa786542) #4 BeforePostTask base/task/task_scheduler/task_tracker.cc:770 (unit_tests+0xa786542) #5 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:431 (unit_tests+0xa786542) #6 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265:23 (unit_tests+0xa77386a) #7 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #8 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #9 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #10 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #11 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #12 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #13 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #14 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #15 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #16 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #17 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b040002fbb0 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, int) base/task/task_scheduler/task_tracker.cc:284:14 (unit_tests+0xa784855) #2 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker.cc:279:7 (unit_tests+0xa7847e1) #3 base::internal::TaskTrackerPosix::TaskTrackerPosix(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker_posix.cc:15:56 (unit_tests+0xa7f25f9) #4 TestTaskTracker base/test/scoped_task_environment.cc:621:7 (unit_tests+0x9918bcd) #5 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327 (unit_tests+0x9918bcd) #6 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #8 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #9 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #10 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #18 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #24 Run base/callback.h:99:12 (unit_tests+0x99226bd) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 4 at 0x7b040002fbb0 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, int) base/task/task_scheduler/task_tracker.cc:284:14 (unit_tests+0xa784855) #2 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker.cc:279:7 (unit_tests+0xa7847e1) #3 base::internal::TaskTrackerPosix::TaskTrackerPosix(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker_posix.cc:15:56 (unit_tests+0xa7f25f9) #4 TestTaskTracker base/test/scoped_task_environment.cc:621:7 (unit_tests+0x9918bcd) #5 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327 (unit_tests+0x9918bcd) #6 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #8 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #9 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #10 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #18 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #24 Run base/callback.h:99:12 (unit_tests+0x99226bd) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:921:17 in load ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic write of size 4 at 0x7b5c00000e18 by thread T5: #0 __tsan_atomic32_fetch_add /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:615 (unit_tests+0x3aaaff1) #1 fetch_add buildtools/third_party/libc++/trunk/include/atomic:1013:17 (unit_tests+0xa786570) #2 NoBarrier_AtomicIncrement base/atomicops_internals_portable.h:86 (unit_tests+0xa786570) #3 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:436 (unit_tests+0xa786570) #4 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265:23 (unit_tests+0xa77386a) #5 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #6 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #7 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #8 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #9 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #10 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #11 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #12 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #13 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #14 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #15 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #16 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b5c00000e18 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:1013:17 in fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 1 at 0x7b6800001378 by thread T5 (mutexes: write M624165417916579016): #0 value base/optional.h:607:5 (unit_tests+0xa773fc4) #1 GetWorkerPoolImplForTraits base/task/task_scheduler/task_scheduler_impl.cc:332 (unit_tests+0xa773fc4) #2 base::internal::TaskSchedulerImpl::GetWorkerPoolForTraits(base::TaskTraits const&) base/task/task_scheduler/task_scheduler_impl.cc:337 (unit_tests+0xa773fc4) #3 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:272:5 (unit_tests+0xa7739f3) #4 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #8 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001378 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Mutex M624165417916579016 is already destroyed. Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/optional.h:607:5 in value ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x7b6800001388 by thread T5 (mutexes: write M624165417916579016): #0 operator-> base/task/task_scheduler/tracked_ref.h:102:34 (unit_tests+0xa776bbd) #1 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:70 (unit_tests+0xa776bbd) #2 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:272:37 (unit_tests+0xa773a2f) #3 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #4 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #5 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #6 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #7 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #8 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #9 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #10 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #11 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #12 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #13 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #14 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001388 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Mutex M624165417916579016 is already destroyed. Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/task/task_scheduler/tracked_ref.h:102:34 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic read of size 1 at 0x7b5c00000fa8 by thread T5 (mutexes: write M624165417916579016): #0 pthread_mutex_lock /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:4073 (unit_tests+0x3a77f7f) #1 base::internal::LockImpl::Lock() base/synchronization/lock_impl_posix.cc:102:12 (unit_tests+0xa7edadd) #2 Acquire base/synchronization/lock.h:31:26 (unit_tests+0xa786605) #3 AutoSchedulerLock base/task/task_scheduler/scheduler_lock.h:86 (unit_tests+0xa786605) #4 base::internal::TaskTracker::WillScheduleSequence(base::internal::Sequence::Transaction const&, base::internal::CanScheduleSequenceObserver*) base/task/task_scheduler/task_tracker.cc:449 (unit_tests+0xa786605) #5 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:70:24 (unit_tests+0xa776bcc) #6 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:272:37 (unit_tests+0xa773a2f) #7 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #8 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #9 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #10 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #11 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #12 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #13 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #14 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #15 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #16 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #17 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b5c00000fa8 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Mutex M624165417916579016 is already destroyed. Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/synchronization/lock_impl_posix.cc:102:12 in base::internal::LockImpl::Lock() ================== [ OK ] CannedBrowsingDataIndexedDBHelperTest.Delete (2012 ms) [ RUN ] CannedBrowsingDataIndexedDBHelperTest.IgnoreExtensionsAndDevTools [ OK ] CannedBrowsingDataIndexedDBHelperTest.IgnoreExtensionsAndDevTools (66 ms) [----------] 3 tests from CannedBrowsingDataIndexedDBHelperTest (2173 ms total) [----------] 3 tests from CannedBrowsingDataLocalStorageTest [ RUN ] CannedBrowsingDataLocalStorageTest.Empty [ OK ] CannedBrowsingDataLocalStorageTest.Empty (51 ms) [ RUN ] CannedBrowsingDataLocalStorageTest.Delete [2813:3035:0222/143715.120942:61016326:ERROR:simple_index_file_posix.cc(36)] opendir /b/s/w/itu7H1tB/.org.chromium.Chromium.DqLEHD/Code Cache/js: No such file or directory (2) [2813:3035:0222/143715.286718:61182110:ERROR:simple_index_file.cc(612)] Could not reconstruct index from disk [ OK ] CannedBrowsingDataLocalStorageTest.Delete (443 ms) [ RUN ] CannedBrowsingDataLocalStorageTest.IgnoreExtensionsAndDevTools [ OK ] CannedBrowsingDataLocalStorageTest.IgnoreExtensionsAndDevTools (369 ms) [----------] 3 tests from CannedBrowsingDataLocalStorageTest (870 ms total) [----------] Global test environment tear-down [==========] 10 tests from 3 test suites ran. (3058 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 10 warnings [143/9486] BrowsingDataHelperTest.ChromeSchemesAreNotAllExtension (1 ms) [ RUN ] BrowsingDataHelperTest.SchemesThatCantStoreDataDontMatchAnything [ OK ] BrowsingDataHelperTest.SchemesThatCantStoreDataDontMatchAnything (0 ms) [----------] 4 tests from BrowsingDataHelperTest (10 ms total) [----------] 3 tests from CannedBrowsingDataIndexedDBHelperTest [ RUN ] CannedBrowsingDataIndexedDBHelperTest.Empty [ OK ] CannedBrowsingDataIndexedDBHelperTest.Empty (91 ms) [ RUN ] CannedBrowsingDataIndexedDBHelperTest.Delete ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x560d501ae548 by thread T5: #0 base::TaskScheduler::GetInstance() base/task/task_scheduler/task_scheduler.cc:85:10 (unit_tests+0xa771e2a) #1 GetTaskExecutorForTraits base/task/post_task.cc:50:32 (unit_tests+0xa751d3c) #2 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:85 (unit_tests+0xa751d3c) #3 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #4 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #5 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #6 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #7 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #8 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #9 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #10 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #11 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x560d501ae548 by main thread: #0 base::TaskScheduler::SetInstance(std::__1::unique_ptr<base::TaskScheduler, std::__1::default_delete<base::TaskScheduler> >) base/task/task_scheduler/task_scheduler.cc:80:20 (unit_tests+0xa771eb1) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371:3 (unit_tests+0x99190fa) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is global 'base::(anonymous namespace)::g_task_scheduler' of size 8 at 0x560d501ae548 (unit_tests+0x000012ad1548) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/task/task_scheduler/task_scheduler.cc:85:10 in base::TaskScheduler::GetInstance() ================== ================== WARNING: ThreadSanitizer: data race on vptr (ctor/dtor vs virtual call) (pid=2813) Read of size 8 at 0x7b6800001200 by thread T5: #0 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d67) #1 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #2 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #3 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #4 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #5 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #6 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #7 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #8 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #9 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #10 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001200 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race on vptr (ctor/dtor vs virtual call) base/task/post_task.cc:86:9 in base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic read of size 1 at 0x7b6800001370 by thread T5: #0 __tsan_atomic8_load /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:524 (unit_tests+0x3aa8636) #1 load buildtools/third_party/libc++/trunk/include/atomic:925:17 (unit_tests+0xa772fbb) #2 IsSet base/synchronization/atomic_flag.h:34 (unit_tests+0xa772fbb) #3 SetUserBlockingPriorityIfNeeded base/task/task_scheduler/task_scheduler_impl.cc:342 (unit_tests+0xa772fbb) #4 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162 (unit_tests+0xa772fbb) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #8 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001370 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:925:17 in load ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x7b6800001218 by thread T5: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa773843) #1 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265 (unit_tests+0xa773843) #2 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #3 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #4 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #5 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #6 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #7 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #8 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #9 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #10 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #11 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #12 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #13 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001218 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x7b5c00000e10 by thread T5: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa7864c3) #1 BeforePostTask base/task/task_scheduler/task_tracker.cc (unit_tests+0xa7864c3) #2 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:431 (unit_tests+0xa7864c3) #3 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265:23 (unit_tests+0xa77386a) #4 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #8 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b5c00000e10 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic read of size 4 at 0x7b040002fbb0 by thread T5: #0 __tsan_atomic32_load /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:534 (unit_tests+0x3aa8b36) #1 load buildtools/third_party/libc++/trunk/include/atomic:921:17 (unit_tests+0xa786542) #2 NoBarrier_Load base/atomicops_internals_portable.h:130 (unit_tests+0xa786542) #3 HasShutdownStarted base/task/task_scheduler/task_tracker.cc:182 (unit_tests+0xa786542) #4 BeforePostTask base/task/task_scheduler/task_tracker.cc:770 (unit_tests+0xa786542) #5 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:431 (unit_tests+0xa786542) #6 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265:23 (unit_tests+0xa77386a) #7 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #8 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #9 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #10 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #11 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #12 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #13 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #14 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #15 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #16 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #17 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b040002fbb0 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, int) base/task/task_scheduler/task_tracker.cc:284:14 (unit_tests+0xa784855) #2 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker.cc:279:7 (unit_tests+0xa7847e1) #3 base::internal::TaskTrackerPosix::TaskTrackerPosix(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker_posix.cc:15:56 (unit_tests+0xa7f25f9) #4 TestTaskTracker base/test/scoped_task_environment.cc:621:7 (unit_tests+0x9918bcd) #5 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327 (unit_tests+0x9918bcd) #6 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #8 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #9 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #10 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #18 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #24 Run base/callback.h:99:12 (unit_tests+0x99226bd) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 4 at 0x7b040002fbb0 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, int) base/task/task_scheduler/task_tracker.cc:284:14 (unit_tests+0xa784855) #2 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker.cc:279:7 (unit_tests+0xa7847e1) #3 base::internal::TaskTrackerPosix::TaskTrackerPosix(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker_posix.cc:15:56 (unit_tests+0xa7f25f9) #4 TestTaskTracker base/test/scoped_task_environment.cc:621:7 (unit_tests+0x9918bcd) #5 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327 (unit_tests+0x9918bcd) #6 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #8 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #9 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #10 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #18 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #24 Run base/callback.h:99:12 (unit_tests+0x99226bd) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:921:17 in load ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic write of size 4 at 0x7b5c00000e18 by thread T5: #0 __tsan_atomic32_fetch_add /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:615 (unit_tests+0x3aaaff1) #1 fetch_add buildtools/third_party/libc++/trunk/include/atomic:1013:17 (unit_tests+0xa786570) #2 NoBarrier_AtomicIncrement base/atomicops_internals_portable.h:86 (unit_tests+0xa786570) #3 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:436 (unit_tests+0xa786570) #4 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265:23 (unit_tests+0xa77386a) #5 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #6 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #7 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #8 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #9 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #10 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #11 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #12 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #13 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #14 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #15 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #16 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b5c00000e18 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:1013:17 in fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 1 at 0x7b6800001378 by thread T5 (mutexes: write M624165417916579016): #0 value base/optional.h:607:5 (unit_tests+0xa773fc4) #1 GetWorkerPoolImplForTraits base/task/task_scheduler/task_scheduler_impl.cc:332 (unit_tests+0xa773fc4) #2 base::internal::TaskSchedulerImpl::GetWorkerPoolForTraits(base::TaskTraits const&) base/task/task_scheduler/task_scheduler_impl.cc:337 (unit_tests+0xa773fc4) #3 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:272:5 (unit_tests+0xa7739f3) #4 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #8 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001378 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Mutex M624165417916579016 is already destroyed. Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/optional.h:607:5 in value ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x7b6800001388 by thread T5 (mutexes: write M624165417916579016): #0 operator-> base/task/task_scheduler/tracked_ref.h:102:34 (unit_tests+0xa776bbd) #1 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:70 (unit_tests+0xa776bbd) #2 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:272:37 (unit_tests+0xa773a2f) #3 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #4 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #5 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #6 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #7 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #8 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #9 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #10 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #11 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #12 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #13 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #14 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001388 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Mutex M624165417916579016 is already destroyed. Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/task/task_scheduler/tracked_ref.h:102:34 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic read of size 1 at 0x7b5c00000fa8 by thread T5 (mutexes: write M624165417916579016): #0 pthread_mutex_lock /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:4073 (unit_tests+0x3a77f7f) #1 base::internal::LockImpl::Lock() base/synchronization/lock_impl_posix.cc:102:12 (unit_tests+0xa7edadd) #2 Acquire base/synchronization/lock.h:31:26 (unit_tests+0xa786605) #3 AutoSchedulerLock base/task/task_scheduler/scheduler_lock.h:86 (unit_tests+0xa786605) #4 base::internal::TaskTracker::WillScheduleSequence(base::internal::Sequence::Transaction const&, base::internal::CanScheduleSequenceObserver*) base/task/task_scheduler/task_tracker.cc:449 (unit_tests+0xa786605) #5 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:70:24 (unit_tests+0xa776bcc) #6 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:272:37 (unit_tests+0xa773a2f) #7 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #8 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #9 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #10 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #11 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #12 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #13 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #14 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #15 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #16 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #17 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b5c00000fa8 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Mutex M624165417916579016 is already destroyed. Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/synchronization/lock_impl_posix.cc:102:12 in base::internal::LockImpl::Lock() ================== [ OK ] CannedBrowsingDataIndexedDBHelperTest.Delete (2012 ms) [ RUN ] CannedBrowsingDataIndexedDBHelperTest.IgnoreExtensionsAndDevTools [ OK ] CannedBrowsingDataIndexedDBHelperTest.IgnoreExtensionsAndDevTools (66 ms) [----------] 3 tests from CannedBrowsingDataIndexedDBHelperTest (2173 ms total) [----------] 3 tests from CannedBrowsingDataLocalStorageTest [ RUN ] CannedBrowsingDataLocalStorageTest.Empty [ OK ] CannedBrowsingDataLocalStorageTest.Empty (51 ms) [ RUN ] CannedBrowsingDataLocalStorageTest.Delete [2813:3035:0222/143715.120942:61016326:ERROR:simple_index_file_posix.cc(36)] opendir /b/s/w/itu7H1tB/.org.chromium.Chromium.DqLEHD/Code Cache/js: No such file or directory (2) [2813:3035:0222/143715.286718:61182110:ERROR:simple_index_file.cc(612)] Could not reconstruct index from disk [ OK ] CannedBrowsingDataLocalStorageTest.Delete (443 ms) [ RUN ] CannedBrowsingDataLocalStorageTest.IgnoreExtensionsAndDevTools [ OK ] CannedBrowsingDataLocalStorageTest.IgnoreExtensionsAndDevTools (369 ms) [----------] 3 tests from CannedBrowsingDataLocalStorageTest (870 ms total) [----------] Global test environment tear-down [==========] 10 tests from 3 test suites ran. (3058 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 10 warnings [144/9486] BrowsingDataHelperTest.SchemesThatCantStoreDataDontMatchAnything (0 ms) [ RUN ] CannedBrowsingDataIndexedDBHelperTest.Empty [ OK ] CannedBrowsingDataIndexedDBHelperTest.Empty (91 ms) [ RUN ] CannedBrowsingDataIndexedDBHelperTest.Delete ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x560d501ae548 by thread T5: #0 base::TaskScheduler::GetInstance() base/task/task_scheduler/task_scheduler.cc:85:10 (unit_tests+0xa771e2a) #1 GetTaskExecutorForTraits base/task/post_task.cc:50:32 (unit_tests+0xa751d3c) #2 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:85 (unit_tests+0xa751d3c) #3 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #4 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #5 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #6 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #7 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #8 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #9 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #10 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #11 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x560d501ae548 by main thread: #0 base::TaskScheduler::SetInstance(std::__1::unique_ptr<base::TaskScheduler, std::__1::default_delete<base::TaskScheduler> >) base/task/task_scheduler/task_scheduler.cc:80:20 (unit_tests+0xa771eb1) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371:3 (unit_tests+0x99190fa) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is global 'base::(anonymous namespace)::g_task_scheduler' of size 8 at 0x560d501ae548 (unit_tests+0x000012ad1548) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/task/task_scheduler/task_scheduler.cc:85:10 in base::TaskScheduler::GetInstance() ================== ================== WARNING: ThreadSanitizer: data race on vptr (ctor/dtor vs virtual call) (pid=2813) Read of size 8 at 0x7b6800001200 by thread T5: #0 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d67) #1 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #2 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #3 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #4 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #5 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #6 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #7 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #8 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #9 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #10 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001200 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race on vptr (ctor/dtor vs virtual call) base/task/post_task.cc:86:9 in base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic read of size 1 at 0x7b6800001370 by thread T5: #0 __tsan_atomic8_load /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:524 (unit_tests+0x3aa8636) #1 load buildtools/third_party/libc++/trunk/include/atomic:925:17 (unit_tests+0xa772fbb) #2 IsSet base/synchronization/atomic_flag.h:34 (unit_tests+0xa772fbb) #3 SetUserBlockingPriorityIfNeeded base/task/task_scheduler/task_scheduler_impl.cc:342 (unit_tests+0xa772fbb) #4 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162 (unit_tests+0xa772fbb) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #8 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001370 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:925:17 in load ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x7b6800001218 by thread T5: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa773843) #1 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265 (unit_tests+0xa773843) #2 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #3 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #4 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #5 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #6 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #7 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #8 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #9 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #10 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #11 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #12 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #13 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001218 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x7b5c00000e10 by thread T5: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa7864c3) #1 BeforePostTask base/task/task_scheduler/task_tracker.cc (unit_tests+0xa7864c3) #2 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:431 (unit_tests+0xa7864c3) #3 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265:23 (unit_tests+0xa77386a) #4 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #8 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b5c00000e10 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic read of size 4 at 0x7b040002fbb0 by thread T5: #0 __tsan_atomic32_load /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:534 (unit_tests+0x3aa8b36) #1 load buildtools/third_party/libc++/trunk/include/atomic:921:17 (unit_tests+0xa786542) #2 NoBarrier_Load base/atomicops_internals_portable.h:130 (unit_tests+0xa786542) #3 HasShutdownStarted base/task/task_scheduler/task_tracker.cc:182 (unit_tests+0xa786542) #4 BeforePostTask base/task/task_scheduler/task_tracker.cc:770 (unit_tests+0xa786542) #5 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:431 (unit_tests+0xa786542) #6 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265:23 (unit_tests+0xa77386a) #7 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #8 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #9 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #10 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #11 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #12 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #13 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #14 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #15 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #16 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #17 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b040002fbb0 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, int) base/task/task_scheduler/task_tracker.cc:284:14 (unit_tests+0xa784855) #2 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker.cc:279:7 (unit_tests+0xa7847e1) #3 base::internal::TaskTrackerPosix::TaskTrackerPosix(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker_posix.cc:15:56 (unit_tests+0xa7f25f9) #4 TestTaskTracker base/test/scoped_task_environment.cc:621:7 (unit_tests+0x9918bcd) #5 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327 (unit_tests+0x9918bcd) #6 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #8 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #9 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #10 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #18 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #24 Run base/callback.h:99:12 (unit_tests+0x99226bd) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 4 at 0x7b040002fbb0 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, int) base/task/task_scheduler/task_tracker.cc:284:14 (unit_tests+0xa784855) #2 base::internal::TaskTracker::TaskTracker(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker.cc:279:7 (unit_tests+0xa7847e1) #3 base::internal::TaskTrackerPosix::TaskTrackerPosix(base::BasicStringPiece<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >) base/task/task_scheduler/task_tracker_posix.cc:15:56 (unit_tests+0xa7f25f9) #4 TestTaskTracker base/test/scoped_task_environment.cc:621:7 (unit_tests+0x9918bcd) #5 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327 (unit_tests+0x9918bcd) #6 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #8 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #9 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #10 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #18 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #24 Run base/callback.h:99:12 (unit_tests+0x99226bd) #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:921:17 in load ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic write of size 4 at 0x7b5c00000e18 by thread T5: #0 __tsan_atomic32_fetch_add /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:615 (unit_tests+0x3aaaff1) #1 fetch_add buildtools/third_party/libc++/trunk/include/atomic:1013:17 (unit_tests+0xa786570) #2 NoBarrier_AtomicIncrement base/atomicops_internals_portable.h:86 (unit_tests+0xa786570) #3 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:436 (unit_tests+0xa786570) #4 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:265:23 (unit_tests+0xa77386a) #5 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #6 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #7 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #8 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #9 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #10 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #11 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #12 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #13 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #14 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #15 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #16 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b5c00000e18 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:1013:17 in fetch_add ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 1 at 0x7b6800001378 by thread T5 (mutexes: write M624165417916579016): #0 value base/optional.h:607:5 (unit_tests+0xa773fc4) #1 GetWorkerPoolImplForTraits base/task/task_scheduler/task_scheduler_impl.cc:332 (unit_tests+0xa773fc4) #2 base::internal::TaskSchedulerImpl::GetWorkerPoolForTraits(base::TaskTraits const&) base/task/task_scheduler/task_scheduler_impl.cc:337 (unit_tests+0xa773fc4) #3 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:272:5 (unit_tests+0xa7739f3) #4 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #8 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001378 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Mutex M624165417916579016 is already destroyed. Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/optional.h:607:5 in value ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x7b6800001388 by thread T5 (mutexes: write M624165417916579016): #0 operator-> base/task/task_scheduler/tracked_ref.h:102:34 (unit_tests+0xa776bbd) #1 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:70 (unit_tests+0xa776bbd) #2 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:272:37 (unit_tests+0xa773a2f) #3 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #4 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #5 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #6 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #7 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #8 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #9 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #10 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #11 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #12 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #13 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #14 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001388 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Mutex M624165417916579016 is already destroyed. Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/task/task_scheduler/tracked_ref.h:102:34 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=2813) Atomic read of size 1 at 0x7b5c00000fa8 by thread T5 (mutexes: write M624165417916579016): #0 pthread_mutex_lock /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:4073 (unit_tests+0x3a77f7f) #1 base::internal::LockImpl::Lock() base/synchronization/lock_impl_posix.cc:102:12 (unit_tests+0xa7edadd) #2 Acquire base/synchronization/lock.h:31:26 (unit_tests+0xa786605) #3 AutoSchedulerLock base/task/task_scheduler/scheduler_lock.h:86 (unit_tests+0xa786605) #4 base::internal::TaskTracker::WillScheduleSequence(base::internal::Sequence::Transaction const&, base::internal::CanScheduleSequenceObserver*) base/task/task_scheduler/task_tracker.cc:449 (unit_tests+0xa786605) #5 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:70:24 (unit_tests+0xa776bcc) #6 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:272:37 (unit_tests+0xa773a2f) #7 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:163:10 (unit_tests+0xa7730f6) #8 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d81) #9 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #10 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #11 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #12 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #13 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #14 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #15 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #16 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #17 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b5c00000fa8 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:327:21 (unit_tests+0x9918bb6) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Mutex M624165417916579016 is already destroyed. Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/synchronization/lock_impl_posix.cc:102:12 in base::internal::LockImpl::Lock() ================== [ OK ] CannedBrowsingDataIndexedDBHelperTest.Delete (2012 ms) [ RUN ] CannedBrowsingDataIndexedDBHelperTest.IgnoreExtensionsAndDevTools [ OK ] CannedBrowsingDataIndexedDBHelperTest.IgnoreExtensionsAndDevTools (66 ms) [----------] 3 tests from CannedBrowsingDataIndexedDBHelperTest (2173 ms total) [----------] 3 tests from CannedBrowsingDataLocalStorageTest [ RUN ] CannedBrowsingDataLocalStorageTest.Empty [ OK ] CannedBrowsingDataLocalStorageTest.Empty (51 ms) [ RUN ] CannedBrowsingDataLocalStorageTest.Delete [2813:3035:0222/143715.120942:61016326:ERROR:simple_index_file_posix.cc(36)] opendir /b/s/w/itu7H1tB/.org.chromium.Chromium.DqLEHD/Code Cache/js: No such file or directory (2) [2813:3035:0222/143715.286718:61182110:ERROR:simple_index_file.cc(612)] Could not reconstruct index from disk [ OK ] CannedBrowsingDataLocalStorageTest.Delete (443 ms) [ RUN ] CannedBrowsingDataLocalStorageTest.IgnoreExtensionsAndDevTools [ OK ] CannedBrowsingDataLocalStorageTest.IgnoreExtensionsAndDevTools (369 ms) [----------] 3 tests from CannedBrowsingDataLocalStorageTest (870 ms total) [----------] Global test environment tear-down [==========] 10 tests from 3 test suites ran. (3058 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 10 warnings [145/9486] CannedBrowsingDataIndexedDBHelperTest.Empty (91 ms) [ RUN ] CannedBrowsingDataIndexedDBHelperTest.Delete ================== WARNING: ThreadSanitizer: data race (pid=2813) Read of size 8 at 0x560d501ae548 by thread T5: #0 base::TaskScheduler::GetInstance() base/task/task_scheduler/task_scheduler.cc:85:10 (unit_tests+0xa771e2a) #1 GetTaskExecutorForTraits base/task/post_task.cc:50:32 (unit_tests+0xa751d3c) #2 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:85 (unit_tests+0xa751d3c) #3 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #4 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #5 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #6 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #7 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #8 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #9 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #10 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #11 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x560d501ae548 by main thread: #0 base::TaskScheduler::SetInstance(std::__1::unique_ptr<base::TaskScheduler, std::__1::default_delete<base::TaskScheduler> >) base/task/task_scheduler/task_scheduler.cc:80:20 (unit_tests+0xa771eb1) #1 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371:3 (unit_tests+0x99190fa) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #4 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #5 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #6 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #14 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #20 Run base/callback.h:99:12 (unit_tests+0x99226bd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is global 'base::(anonymous namespace)::g_task_scheduler' of size 8 at 0x560d501ae548 (unit_tests+0x000012ad1548) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (unit_tests+0x9b0e247) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:101:29 (unit_tests+0xc9bf3c1) #7 network::NetworkService::NetworkService(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, mojo::InterfaceRequest<network::mojom::NetworkService>, net::NetLog*, mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:270 (unit_tests+0xc9bf3c1) #8 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:188:29 (unit_tests+0x784aa70) #9 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7abb8d5) #10 Invoke<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:518:12 (unit_tests+0x7abf133) #11 MakeItSo<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), content::StoragePartitionImpl::NetworkContextOwner *, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> > base/bind_internal.h:618 (unit_tests+0x7abf133) #12 RunImpl<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), std::__1::tuple<base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, 0, 1, 2> base/bind_internal.h:691 (unit_tests+0x7abf133) #13 base::internal::Invoker<base::internal::BindState<void (content::StoragePartitionImpl::NetworkContextOwner::*)(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>), base::internal::UnretainedWrapper<content::StoragePartitionImpl::NetworkContextOwner>, mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:660 (unit_tests+0x7abf133) #14 Run base/callback.h:99:12 (unit_tests+0xa76a07a) #15 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:104 (unit_tests+0xa76a07a) #16 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:336:21 (unit_tests+0xa76b362) #17 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:252:7 (unit_tests+0xa76b8dd) #18 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76b8dd) #19 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa6fbdc7) #20 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa6fbdc7) #21 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #22 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:403:12 (unit_tests+0xa76bdc0) #23 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa76bdc0) #24 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa72bb9e) #25 RunThisRunLoop content/public/test/test_utils.cc:147:13 (unit_tests+0x9a5a193) #26 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:176 (unit_tests+0x9a5a193) #27 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:543:5 (unit_tests+0x9909832) #28 ~CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b78c83) #29 (anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Empty_Test::~CannedBrowsingDataIndexedDBHelperTest_Empty_Test() chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:29 (unit_tests+0x3b78c83) #30 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f58ac) #31 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2680 (unit_tests+0x62f58ac) #32 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #33 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #34 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #35 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #36 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #37 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #38 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #39 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #40 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #41 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #42 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #43 Run base/callback.h:99:12 (unit_tests+0x99226bd) #44 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #45 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #46 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) SUMMARY: ThreadSanitizer: data race base/task/task_scheduler/task_scheduler.cc:85:10 in base::TaskScheduler::GetInstance() ================== ================== WARNING: ThreadSanitizer: data race on vptr (ctor/dtor vs virtual call) (pid=2813) Read of size 8 at 0x7b6800001200 by thread T5: #0 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa751d67) #1 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa75233e) #2 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa75233e) #3 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (unit_tests+0xa7969d2) #4 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa751e79) #5 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6671446) #6 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:407:19 (unit_tests+0x6671cb5) #7 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6640a8d) #8 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9b187e0) #9 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa79a5a9) #10 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa7f32d4) Previous write of size 8 at 0x7b6800001200 by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Location is heap block of size 1352 at 0x7b6800001200 allocated by main thread: #0 operator new(unsigned long) /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64 (unit_tests+0x3ad7b18) #1 make_unique<base::internal::TaskSchedulerImpl, char const (&)[22], std::__1::unique_ptr<base::test::ScopedTaskEnvironment::TestTaskTracker, std::__1::default_delete<base::test::ScopedTaskEnvironment::TestTaskTracker> > > buildtools/third_party/libc++/trunk/include/memory:3131:28 (unit_tests+0x9919096) #2 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment(base::test::ScopedTaskEnvironment::MainThreadType, base::test::ScopedTaskEnvironment::ExecutionMode, base::test::ScopedTaskEnvironment::NowSource, bool, base::trait_helpers::NotATraitTag) base/test/scoped_task_environment.cc:371 (unit_tests+0x9919096) #3 base::test::ScopedTaskEnvironment::ScopedTaskEnvironment<base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType, void>(base::test::ScopedTaskEnvironment::SubclassCreatesDefaultTaskRunner, base::test::ScopedTaskEnvironment::MainThreadType) base/test/scoped_task_environment.h:143:9 (unit_tests+0x3ae516d) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3ae5107) #5 CannedBrowsingDataIndexedDBHelperTest chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:17:7 (unit_tests+0x3b79052) #6 CannedBrowsingDataIndexedDBHelperTest_Delete_Test chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc:41 (unit_tests+0x3b79052) #7 testing::internal::TestFactoryImpl<(anonymous namespace)::CannedBrowsingDataIndexedDBHelperTest_Delete_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:492 (unit_tests+0x3b79052) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x62f564f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x62f564f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2803:28 (unit_tests+0x62f60d6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5241:44 (unit_tests+0x63077f6) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6306fe9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4843 (unit_tests+0x6306fe9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2503:46 (unit_tests+0x991f3e2) #15 base::TestSuite::Run() base/test/test_suite.cc:294 (unit_tests+0x991f3e2) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9a5ef02) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:518:12 (unit_tests+0x99101f8) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:618 (unit_tests+0x99101f8) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:691 (unit_tests+0x99101f8) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:673 (unit_tests+0x99101f8) #21 Run base/callback.h:99:12 (unit_tests+0x99226bd) #22 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x99226bd) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9922520) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x9910124) Thread T5 'NetworkChangeNotifier' (tid=2931, running) created by main thread at: #0 pthread_create /b/s/w/ir/cache/builder/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976 (unit_tests+0x3a59d89) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (unit_tests+0xa7f2d67) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa7f2c65) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa799e10) #4 net::NetworkChangeNotifierLinux::NetworkChangeNotifierLinux(std::__1::unordered_set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) net/base/network_change_notifier_linux.cc:108:21 (unit_tests+0x9b1894f)