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

python -u /b/swarming/w/ir/kitchen-checkout/build/scripts/tools/runit.py --show-path --with-third-party-lib -- python /b/swarming/w/ir/kitchen-checkout/build/scripts/slave/recipe_modules/chromium_swarming/resources/collect_task.py --verbose -o /b/swarming/w/ir/tmp/t/tmp6Qyay0.json --task-output-dir /b/swarming/w/ir/tmp/t/tmp3n_Dhx --merge-script /b/swarming/w/ir/cache/builder/src/testing/merge_scripts/standard_gtest_merge.py --merge-script-stdout-file /b/swarming/w/ir/tmp/t/tmpOcp89smerge_script_log --merge-additional-args '[]' --build-properties '{"bot_id": "swarm323-c4", "buildbucket": {"build": {"bucket": "luci.chromium.ci", "created_by": "project:chromium", "created_ts": 1553454710020227, "id": "8918078389944755488", "project": "chromium", "tags": ["build_address:luci.chromium.ci/Linux TSan Tests/35965", "builder:Linux TSan Tests", "buildset:commit/gitiles/chromium.googlesource.com/chromium/src/+/4e6dfb6a47b57f294b5ca268661326fa211c331e", "gitiles_ref:refs/heads/master", "parent_buildername:Linux TSan Builder", "parent_buildnumber:43200", "scheduler_invocation_id:9083508452477400928", "scheduler_job_id:chromium/Linux TSan Tests", "user_agent:luci-scheduler", "user_agent:recipe"]}, "hostname": "cr-buildbucket.appspot.com"}, "buildername": "Linux TSan Tests", "buildnumber": 35965, "got_angle_revision": "eae464dd3092c1c09c4dc4d51a0f50ac5d007722", "got_dawn_revision": "07950e80fe36028ed9cca0a4a99a8b08e9bb4fdf", "got_nacl_revision": "de8da4841bc3d1ed020d798d5a7fd6fb3d817fa1", "got_revision": "4e6dfb6a47b57f294b5ca268661326fa211c331e", "got_revision_cp": "refs/heads/master@{#643733}", "got_swarming_client_revision": "aa60736aded9fc32a0e21a81f5fc51f6009d01f3", "got_v8_revision": "b346546b7795350b8c910ff06f9520e7f03224f0", "got_v8_revision_cp": "refs/heads/7.5.100@{#1}", "got_webrtc_revision": "85a4a93e77b163098e91f41d8e7415181f23d02c", "got_webrtc_revision_cp": "refs/heads/master@{#27257}", "mastername": "chromium.memory", "parent_buildername": "Linux TSan Builder", "parent_got_angle_revision": "eae464dd3092c1c09c4dc4d51a0f50ac5d007722", "parent_got_dawn_revision": "07950e80fe36028ed9cca0a4a99a8b08e9bb4fdf", "parent_got_nacl_revision": "de8da4841bc3d1ed020d798d5a7fd6fb3d817fa1", "parent_got_revision": "4e6dfb6a47b57f294b5ca268661326fa211c331e", "parent_got_revision_cp": "refs/heads/master@{#643733}", "parent_got_swarming_client_revision": "aa60736aded9fc32a0e21a81f5fc51f6009d01f3", "parent_got_v8_revision": "b346546b7795350b8c910ff06f9520e7f03224f0", "parent_got_v8_revision_cp": "refs/heads/7.5.100@{#1}", "parent_got_webrtc_revision": "85a4a93e77b163098e91f41d8e7415181f23d02c", "parent_got_webrtc_revision_cp": "refs/heads/master@{#27257}", "parent_mastername": "chromium.memory", "path_config": "generic", "recipe": "chromium", "revision": "4e6dfb6a47b57f294b5ca268661326fa211c331e", "swarm_hashes": {"accessibility_unittests": "28bc52810453d19577e88b212430a7001963b148", "angle_unittests": "daf3df07bed29710c344622a76567ebc2658e4c2", "app_shell_unittests": "5514be672d37e335e68f9453dbf5c505f6a8be4d", "aura_unittests": "47c52b60919b35993bf361054a2b81588022360a", "base_unittests": "e50b6ff82c50bdb3c403343d2a900f558d570fdc", "blink_common_unittests": "dedd09b4c79ffbb35832df72befd56c40e1ecd1e", "blink_fuzzer_unittests": "edfdd7f16b8ea245d85a262d9a4c140a821c5584", "blink_heap_unittests": "1bc783e5494391376671b0c3d27387b63ecf8b2e", "blink_platform_unittests": "263f99b8de73c76b9b61971f84f863a42378f34c", "blink_unittests": "d9b991beb5e7b4c2c415be6922110e5cee270642", "boringssl_crypto_tests": "e162d3e3dc8c314388611c2e59545ea993a6f1fa", "boringssl_ssl_tests": "4ea7e290fe2f6970830b141bca55d789a01770f3", "browser_tests": "c2a350100acd7a994d849f11afba9e8eec26cb94", "cacheinvalidation_unittests": "87420490074df7bc8dc9174fc63c4d13aa462c60", "capture_unittests": "e6c1c7f1f3d26ae9ab690a9c2adb09960302fff8", "cast_unittests": "9f4d317ad8bf6dd9f9f0ac941dd1da0980d668e7", "cc_unittests": "5116a578f52938af43ec9c11c9911b07fcc7c96f", "chrome_app_unittests": "57b7f872b738e06b14628143aa6a4fb5dcc5e616", "chromedriver_unittests": "aa1b736fe765990814b2a90bf16717d835365c10", "components_browsertests": "daa49728843094ea082ed5c3e14d976087b3e3ad", "components_unittests": "bd2d9bccd77e1acdf09a4214764f82c10756f26c", "compositor_unittests": "8d94601d0a239cf8abdd7152d598a9f05c3a0cff", "content_browsertests": "91595406512555d1192cc46a70c904bdf76a87e2", "content_unittests": "920904efa1156900534f92e5852511ffa65dd3f3", "cronet_tests": "6f65fbe2e8c5a09c3f800e0e0602e76b4c30289d", "cronet_unittests": "7c3539a07da926e7c7118a30fd97322cec622501", "crypto_unittests": "17aa1f755c81c7a3fea2d545d72d212ba56a23be", "dbus_unittests": "3af72799d6b1fc3d624b84a0c2c09625e2940574", "device_unittests": "6f670339d95586232ebb5b509e2ed0b9d07a9cbe", "display_unittests": "e5ae20623b6db2dfb76148739095a8436bbc16df", "events_unittests": "eceb0655ce0b6a0309544e5f6561b17f77ab9c96", "extensions_browsertests": "55a95737dbd6ec34c85530b4b372ea4102512c5f", "extensions_unittests": "4029f668a0692e2c98be849b5fc37a0613066b65", "filesystem_service_unittests": "f6c55b0392368746d63467220dfe46574fc89d43", "gcm_unit_tests": "83fb97f4f576fbfd827bf6965d1955c71d18e29e", "gfx_unittests": "d463e5bf49b07f78bbb2d924f8edce5cd6acbff0", "gin_unittests": "226663d3fc25d103df0aa46a77efa9750853d32f", "gl_tests": "4fbec8b6325ba0ecd5601d840e2424b706228242", "gl_unittests": "21416db6424e0116c5d5fdc054ca58c4aa0e885c", "google_apis_unittests": "bcf96b7d24f1334a76a0d14ff74e774562850d95", "gpu_unittests": "222b165629b504fe0399004cd34d365653086fc3", "headless_browsertests": "14d695709dfab58704e848841f915603d380b3e6", "headless_unittests": "ea8ae0bd51b07779e3efed330a3f7c0c6887cf06", "interactive_ui_tests": "81ff2d314cf611aba370a5c812d94f5d7f1b8ff5", "ipc_tests": "e814b7baff24bd3840ebbddd299c79f2a0b82e66", "jingle_unittests": "6ac082cd69366d16d85899cec9b59754312a6a3a", "latency_unittests": "2496e4fe742a3c8d93e8a1f20659f19399658d30", "leveldb_service_unittests": "a5d9006d4b321c3c6bcd4f1d909fc5d256f86ceb", "libjingle_xmpp_unittests": "f907eaa4505f2172775acca44b537ea869c97c83", "media_blink_unittests": "0f5b9c6f15bdbd9672f201a8a6a200e828666905", "media_service_unittests": "ce383143e19393819bc03ac0cef009b79fea636e", "media_unittests": "725b4d4ea5488911cb7f81df32681730a965b206", "message_center_unittests": "eaf8bb2c188e4b32f42584e505c35be00d6499b3", "midi_unittests": "0682176ab34c5a9065a06a21a2dddd6e9f833e1f", "mojo_core_unittests": "961598200ffa44c955b29825337daa8e703d6cbc", "mojo_unittests": "c4254b197e0f774a5ec701637670fc246a08b323", "native_theme_unittests": "d60a17a14b008cc991619f7772d20e2d6110f459", "net_unittests": "31f07068448aecbb8ec4eec12a1f7727038555b5", "pdf_unittests": "1062da1ae87bb733de156d038e72adb364d7d221", "perfetto_unittests": "57429316125dfb7dcbc94a7a49763760c49b5e28", "ppapi_unittests": "0da3c875282184110a441f08f2f8fdf926aacb1b", "printing_unittests": "aaaf9b1125f633869ade87a55cd3ebe7700497bf", "remoting_unittests": "09ee042821a92a903b412e01e47847a835793789", "sandbox_linux_unittests": "51a1b3f69d1d3dce8a32605f9b67e30723158d40", "service_manager_unittests": "a1759601b2296573ecc8cb099dae262fbf1da971", "services_unittests": "e9c1bd48672a57813dadd842df93f2266407f77d", "shell_dialogs_unittests": "35404a8d8442d4997f228210703b6ddd777d8612", "skia_unittests": "3317dd730e9a61b61e43e3edff73b01c443ae5e5", "snapshot_unittests": "54ee313da59efc0d5b7bfce881950f60327ce055", "sql_unittests": "61f4b5a94812253d8ba49e9009e23675710ee6b6", "storage_unittests": "4a2dc7fb12a4ff9e7159090c5a5ced8bbe3d0c14", "sync_integration_tests": "65890930bd43782eb55ca31063e9d660ea243f68", "traffic_annotation_auditor_unittests": "8c2f923d27db4d153f9ac4e4b2ecd13c5098a430", "ui_base_unittests": "385202444299e14a6acdd4ec42e559df374d51dc", "ui_touch_selection_unittests": "069e6af5b51737f74512c7807d6455e5e85e480a", "unit_tests": "1844bb805f16953cd6d2072fa607dfde398f684a", "url_unittests": "42f4a8bf463e57344fd8d144be2b62d12cb9df74", "views_unittests": "5fd039723e707f95b710fc04879e362abe4fe54b", "viz_unittests": "1c7967a71313d9031878b3c626e12d57d0c0c7c9", "vr_common_unittests": "96d0ee06bd7bb1cedbf82e0042a4fe2398d30513", "vr_pixeltests": "3ba96f680e8f158809e85be48c55db2cd55680d6", "wm_unittests": "e548d05b1e56e8874a59539ff5267ca71ac3cdba", "wtf_unittests": "a2424c7b39b97c1eb44b35393e1c6a534db6fb1f"}}' --summary-json-file /b/swarming/w/ir/tmp/t/tmp7VZb1w.json -- swarming collect -server https://chromium-swarm.appspot.com -worker 50 -task-summary-python -task-output-stdout all -verbose -requests-json /b/swarming/w/ir/tmp/t/tmpdgPYxB.json in dir /b/swarming/w/ir/k: allow_subannotations: True cmd: ['python', '-u', '/b/swarming/w/ir/kitchen-checkout/build/scripts/tools/runit.py', '--show-path', '--with-third-party-lib', '--', 'python', '/b/swarming/w/ir/kitchen-checkout/build/scripts/slave/recipe_modules/chromium_swarming/resources/collect_task.py', '--verbose', '-o', '/b/swarming/w/ir/tmp/t/tmp6Qyay0.json', '--task-output-dir', '/b/swarming/w/ir/tmp/t/tmp3n_Dhx', '--merge-script', '/b/swarming/w/ir/cache/builder/src/testing/merge_scripts/standard_gtest_merge.py', '--merge-script-stdout-file', '/b/swarming/w/ir/tmp/t/tmpOcp89smerge_script_log', '--merge-additional-args', '[]', '--build-properties', '{"bot_id": "swarm323-c4", "buildbucket": {"build": {"bucket": "luci.chromium.ci", "created_by": "project:chromium", "created_ts": 1553454710020227, "id": "8918078389944755488", "project": "chromium", "tags": ["build_address:luci.chromium.ci/Linux TSan Tests/35965", "builder:Linux TSan Tests", "buildset:commit/gitiles/chromium.googlesource.com/chromium/src/+/4e6dfb6a47b57f294b5ca268661326fa211c331e", "gitiles_ref:refs/heads/master", "parent_buildername:Linux TSan Builder", "parent_buildnumber:43200", "scheduler_invocation_id:9083508452477400928", "scheduler_job_id:chromium/Linux TSan Tests", "user_agent:luci-scheduler", "user_agent:recipe"]}, "hostname": "cr-buildbucket.appspot.com"}, "buildername": "Linux TSan Tests", "buildnumber": 35965, "got_angle_revision": "eae464dd3092c1c09c4dc4d51a0f50ac5d007722", "got_dawn_revision": "07950e80fe36028ed9cca0a4a99a8b08e9bb4fdf", "got_nacl_revision": "de8da4841bc3d1ed020d798d5a7fd6fb3d817fa1", "got_revision": "4e6dfb6a47b57f294b5ca268661326fa211c331e", "got_revision_cp": "refs/heads/master@{#643733}", "got_swarming_client_revision": "aa60736aded9fc32a0e21a81f5fc51f6009d01f3", "got_v8_revision": "b346546b7795350b8c910ff06f9520e7f03224f0", "got_v8_revision_cp": "refs/heads/7.5.100@{#1}", "got_webrtc_revision": "85a4a93e77b163098e91f41d8e7415181f23d02c", "got_webrtc_revision_cp": "refs/heads/master@{#27257}", "mastername": "chromium.memory", "parent_buildername": "Linux TSan Builder", "parent_got_angle_revision": "eae464dd3092c1c09c4dc4d51a0f50ac5d007722", "parent_got_dawn_revision": "07950e80fe36028ed9cca0a4a99a8b08e9bb4fdf", "parent_got_nacl_revision": "de8da4841bc3d1ed020d798d5a7fd6fb3d817fa1", "parent_got_revision": "4e6dfb6a47b57f294b5ca268661326fa211c331e", "parent_got_revision_cp": "refs/heads/master@{#643733}", "parent_got_swarming_client_revision": "aa60736aded9fc32a0e21a81f5fc51f6009d01f3", "parent_got_v8_revision": "b346546b7795350b8c910ff06f9520e7f03224f0", "parent_got_v8_revision_cp": "refs/heads/7.5.100@{#1}", "parent_got_webrtc_revision": "85a4a93e77b163098e91f41d8e7415181f23d02c", "parent_got_webrtc_revision_cp": "refs/heads/master@{#27257}", "parent_mastername": "chromium.memory", "path_config": "generic", "recipe": "chromium", "revision": "4e6dfb6a47b57f294b5ca268661326fa211c331e", "swarm_hashes": {"accessibility_unittests": "28bc52810453d19577e88b212430a7001963b148", "angle_unittests": "daf3df07bed29710c344622a76567ebc2658e4c2", "app_shell_unittests": "5514be672d37e335e68f9453dbf5c505f6a8be4d", "aura_unittests": "47c52b60919b35993bf361054a2b81588022360a", "base_unittests": "e50b6ff82c50bdb3c403343d2a900f558d570fdc", "blink_common_unittests": "dedd09b4c79ffbb35832df72befd56c40e1ecd1e", "blink_fuzzer_unittests": "edfdd7f16b8ea245d85a262d9a4c140a821c5584", "blink_heap_unittests": "1bc783e5494391376671b0c3d27387b63ecf8b2e", "blink_platform_unittests": "263f99b8de73c76b9b61971f84f863a42378f34c", "blink_unittests": "d9b991beb5e7b4c2c415be6922110e5cee270642", "boringssl_crypto_tests": "e162d3e3dc8c314388611c2e59545ea993a6f1fa", "boringssl_ssl_tests": "4ea7e290fe2f6970830b141bca55d789a01770f3", "browser_tests": "c2a350100acd7a994d849f11afba9e8eec26cb94", "cacheinvalidation_unittests": "87420490074df7bc8dc9174fc63c4d13aa462c60", "capture_unittests": "e6c1c7f1f3d26ae9ab690a9c2adb09960302fff8", "cast_unittests": "9f4d317ad8bf6dd9f9f0ac941dd1da0980d668e7", "cc_unittests": "5116a578f52938af43ec9c11c9911b07fcc7c96f", "chrome_app_unittests": "57b7f872b738e06b14628143aa6a4fb5dcc5e616", "chromedriver_unittests": "aa1b736fe765990814b2a90bf16717d835365c10", "components_browsertests": "daa49728843094ea082ed5c3e14d976087b3e3ad", "components_unittests": "bd2d9bccd77e1acdf09a4214764f82c10756f26c", "compositor_unittests": "8d94601d0a239cf8abdd7152d598a9f05c3a0cff", "content_browsertests": "91595406512555d1192cc46a70c904bdf76a87e2", "content_unittests": "920904efa1156900534f92e5852511ffa65dd3f3", "cronet_tests": "6f65fbe2e8c5a09c3f800e0e0602e76b4c30289d", "cronet_unittests": "7c3539a07da926e7c7118a30fd97322cec622501", "crypto_unittests": "17aa1f755c81c7a3fea2d545d72d212ba56a23be", "dbus_unittests": "3af72799d6b1fc3d624b84a0c2c09625e2940574", "device_unittests": "6f670339d95586232ebb5b509e2ed0b9d07a9cbe", "display_unittests": "e5ae20623b6db2dfb76148739095a8436bbc16df", "events_unittests": "eceb0655ce0b6a0309544e5f6561b17f77ab9c96", "extensions_browsertests": "55a95737dbd6ec34c85530b4b372ea4102512c5f", "extensions_unittests": "4029f668a0692e2c98be849b5fc37a0613066b65", "filesystem_service_unittests": "f6c55b0392368746d63467220dfe46574fc89d43", "gcm_unit_tests": "83fb97f4f576fbfd827bf6965d1955c71d18e29e", "gfx_unittests": "d463e5bf49b07f78bbb2d924f8edce5cd6acbff0", "gin_unittests": "226663d3fc25d103df0aa46a77efa9750853d32f", "gl_tests": "4fbec8b6325ba0ecd5601d840e2424b706228242", "gl_unittests": "21416db6424e0116c5d5fdc054ca58c4aa0e885c", "google_apis_unittests": "bcf96b7d24f1334a76a0d14ff74e774562850d95", "gpu_unittests": "222b165629b504fe0399004cd34d365653086fc3", "headless_browsertests": "14d695709dfab58704e848841f915603d380b3e6", "headless_unittests": "ea8ae0bd51b07779e3efed330a3f7c0c6887cf06", "interactive_ui_tests": "81ff2d314cf611aba370a5c812d94f5d7f1b8ff5", "ipc_tests": "e814b7baff24bd3840ebbddd299c79f2a0b82e66", "jingle_unittests": "6ac082cd69366d16d85899cec9b59754312a6a3a", "latency_unittests": "2496e4fe742a3c8d93e8a1f20659f19399658d30", "leveldb_service_unittests": "a5d9006d4b321c3c6bcd4f1d909fc5d256f86ceb", "libjingle_xmpp_unittests": "f907eaa4505f2172775acca44b537ea869c97c83", "media_blink_unittests": "0f5b9c6f15bdbd9672f201a8a6a200e828666905", "media_service_unittests": "ce383143e19393819bc03ac0cef009b79fea636e", "media_unittests": "725b4d4ea5488911cb7f81df32681730a965b206", "message_center_unittests": "eaf8bb2c188e4b32f42584e505c35be00d6499b3", "midi_unittests": "0682176ab34c5a9065a06a21a2dddd6e9f833e1f", "mojo_core_unittests": "961598200ffa44c955b29825337daa8e703d6cbc", "mojo_unittests": "c4254b197e0f774a5ec701637670fc246a08b323", "native_theme_unittests": "d60a17a14b008cc991619f7772d20e2d6110f459", "net_unittests": "31f07068448aecbb8ec4eec12a1f7727038555b5", "pdf_unittests": "1062da1ae87bb733de156d038e72adb364d7d221", "perfetto_unittests": "57429316125dfb7dcbc94a7a49763760c49b5e28", "ppapi_unittests": "0da3c875282184110a441f08f2f8fdf926aacb1b", "printing_unittests": "aaaf9b1125f633869ade87a55cd3ebe7700497bf", "remoting_unittests": "09ee042821a92a903b412e01e47847a835793789", "sandbox_linux_unittests": "51a1b3f69d1d3dce8a32605f9b67e30723158d40", "service_manager_unittests": "a1759601b2296573ecc8cb099dae262fbf1da971", "services_unittests": "e9c1bd48672a57813dadd842df93f2266407f77d", "shell_dialogs_unittests": "35404a8d8442d4997f228210703b6ddd777d8612", "skia_unittests": "3317dd730e9a61b61e43e3edff73b01c443ae5e5", "snapshot_unittests": "54ee313da59efc0d5b7bfce881950f60327ce055", "sql_unittests": "61f4b5a94812253d8ba49e9009e23675710ee6b6", "storage_unittests": "4a2dc7fb12a4ff9e7159090c5a5ced8bbe3d0c14", "sync_integration_tests": "65890930bd43782eb55ca31063e9d660ea243f68", "traffic_annotation_auditor_unittests": "8c2f923d27db4d153f9ac4e4b2ecd13c5098a430", "ui_base_unittests": "385202444299e14a6acdd4ec42e559df374d51dc", "ui_touch_selection_unittests": "069e6af5b51737f74512c7807d6455e5e85e480a", "unit_tests": "1844bb805f16953cd6d2072fa607dfde398f684a", "url_unittests": "42f4a8bf463e57344fd8d144be2b62d12cb9df74", "views_unittests": "5fd039723e707f95b710fc04879e362abe4fe54b", "viz_unittests": "1c7967a71313d9031878b3c626e12d57d0c0c7c9", "vr_common_unittests": "96d0ee06bd7bb1cedbf82e0042a4fe2398d30513", "vr_pixeltests": "3ba96f680e8f158809e85be48c55db2cd55680d6", "wm_unittests": "e548d05b1e56e8874a59539ff5267ca71ac3cdba", "wtf_unittests": "a2424c7b39b97c1eb44b35393e1c6a534db6fb1f"}}', '--summary-json-file', '/b/swarming/w/ir/tmp/t/tmp7VZb1w.json', '--', 'swarming', 'collect', '-server', 'https://chromium-swarm.appspot.com', '-worker', '50', '-task-summary-python', '-task-output-stdout', 'all', '-verbose', '-requests-json', '/b/swarming/w/ir/tmp/t/tmpdgPYxB.json'] env: {'CHROME_HEADLESS': '1'} env_prefixes: {'PATH': '/b/swarming/w/ir/cache/swarming_client'} env_suffixes: {} infra_step: False name_tokens: ('unit_tests',) ok_ret: ALL_OK step_test_data: <lambda>(...) trigger_specs: () full environment: ADDRFAM: inet BOTO_CONFIG: /b/swarming/w/ir/tmp/gsutil_task/.boto BUILDBUCKET_EXPERIMENTAL: FALSE CHROME_HEADLESS: 1 CIPD_CACHE_DIR: /b/swarming/cipd_cache/cache CIPD_PROTOCOL: v2 DEVSHELL_CLIENT_PORT: 37595 DOCKER_CONFIG: /b/swarming/w/ir/tmp/docker_cfg_task DOCKER_TMPDIR: /b/swarming/w/ir/tmp/docker_tmp_task GIT_CONFIG_NOSYSTEM: 1 GIT_TERMINAL_PROMPT: 0 HOME: /home/chrome-bot IFACE: eth0 INFRA_GIT_WRAPPER_HOME: /b/swarming/w/ir/tmp/git_home_task LOGDOG_COORDINATOR_HOST: logs.chromium.org LOGDOG_STREAM_PREFIX: buildbucket/cr-buildbucket.appspot.com/8918078389944755488 LOGDOG_STREAM_PROJECT: chromium LOGDOG_STREAM_SERVER_PATH: unix:/b/swarming/w/ir/tmp/ld.sock LOGICAL: eth0 LUCI_CONTEXT: /b/swarming/w/it7KgqYG/luci_context.914486705 MAC_CHROMIUM_TMPDIR: /b/swarming/w/ir/tmp/t METHOD: dhcp NO_GCE_CHECK: False PATH: /b/swarming/w/ir/cache/swarming_client:/b/swarming/w/ir/cipd_bin_packages:/b/swarming/w/ir/cipd_bin_packages/bin:/b/swarming/cipd_cache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PWD: /b/swarming/w/ir/k PYTHONIOENCODING: UTF-8 PYTHONUNBUFFERED: 1 ROOT_SETUP_LOG: /var/log/messages/chromebuild/root-setup.log SHLVL: 1 STARTUP_LOG: /var/log/messages/chromebuild/startup.log SWARMING_BOT_ID: swarm323-c4 SWARMING_EXTERNAL_BOT_SETUP: 1 SWARMING_HEADLESS: 1 SWARMING_SERVER: https://chromium-swarm.appspot.com SWARMING_TASK_ID: 43c9ef49846c0211 TEMP: /b/swarming/w/ir/tmp/t TEMPDIR: /b/swarming/w/ir/tmp/t TERM: linux TMP: /b/swarming/w/ir/tmp/t TMPDIR: /b/swarming/w/ir/tmp/t UPSTART_EVENTS: net-device-up UPSTART_INSTANCE: UPSTART_JOB: chromebuild-startup USER: chrome-bot USERNAME: chrome-bot VPYTHON_VIRTUALENV_ROOT: /b/swarming/w/ir/cache/vpython _: /b/swarming/w/ir/cipd_bin_packages/vpython Set PYTHONPATH: /b/swarming/w/ir/kitchen-checkout/build/scripts:/b/swarming/w/ir/kitchen-checkout/build/site_config:/b/swarming/w/ir/kitchen-checkout/build/third_party:/b/swarming/w/ir/kitchen-checkout/build/third_party/buildbot_8_4p1:/b/swarming/w/ir/kitchen-checkout/build/third_party/buildbot_slave_8_4:/b/swarming/w/ir/kitchen-checkout/build/third_party/coverage-3.7.1:/b/swarming/w/ir/kitchen-checkout/build/third_party/decorator_3_3_1:/b/swarming/w/ir/kitchen-checkout/build/third_party/google_api_python_client:/b/swarming/w/ir/kitchen-checkout/build/third_party/httplib2/python2:/b/swarming/w/ir/kitchen-checkout/build/third_party/infra_libs:/b/swarming/w/ir/kitchen-checkout/build/third_party/jinja2:/b/swarming/w/ir/kitchen-checkout/build/third_party/markupsafe:/b/swarming/w/ir/kitchen-checkout/build/third_party/oauth2client:/b/swarming/w/ir/kitchen-checkout/build/third_party/pyasn1:/b/swarming/w/ir/kitchen-checkout/build/third_party/pyasn1-modules:/b/swarming/w/ir/kitchen-checkout/build/third_party/python-rsa:/b/swarming/w/ir/kitchen-checkout/build/third_party/requests_2_10_0:/b/swarming/w/ir/kitchen-checkout/build/third_party/setuptools-0.6c11:/b/swarming/w/ir/kitchen-checkout/build/third_party/sqlalchemy_0_7_1:/b/swarming/w/ir/kitchen-checkout/build/third_party/sqlalchemy_migrate_0_7_1:/b/swarming/w/ir/kitchen-checkout/build/third_party/tempita_0_5:/b/swarming/w/ir/kitchen-checkout/build/third_party/twisted_10_2:/b/swarming/w/ir/kitchen-checkout/build/third_party/uritemplate:/b/swarming/w/ir/kitchen-checkout/build/third_party/site-packages 2019-03-24 12:21:05,581 - root: [DEBUG] Using task_output_dir: '/b/swarming/w/ir/tmp/t/tmp3n_Dhx' 2019-03-24 12:21:05,581 - root: [WARNING] task_output_dir '/b/swarming/w/ir/tmp/t/tmp3n_Dhx' already exists! 2019-03-24 12:21:05,581 - root: [WARNING] task_output_dir existing content: [] 2019-03-24 12:21:05,581 - 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/swarming/w/ir/tmp/t/tmpdgPYxB.json -output-dir /b/swarming/w/ir/tmp/t/tmp3n_Dhx -task-summary-json /b/swarming/w/ir/tmp/t/tmp7VZb1w.json [D2019-03-24T12:21:05.589756-07:00 12283 0 auth.go:1265] Minting a new token {"key":"luci_ctx/2ebaeeaa9c1a9e4b9e8015fbe15efbb8bca1d58a883be06e28469a6162e62c57", "scopes":"https://www.googleapis.com/auth/userinfo.email"} [D2019-03-24T12:21:05.589846-07:00 12283 0 luci_ctx.go:138] POST http://127.0.0.1:43229/rpc/LuciLocalAuthService.GetOAuthToken {"key":"luci_ctx/2ebaeeaa9c1a9e4b9e8015fbe15efbb8bca1d58a883be06e28469a6162e62c57", "scopes":"https://www.googleapis.com/auth/userinfo.email"} [D2019-03-24T12:21:05.591694-07:00 12283 0 auth.go:1222] Token expires in 21m18.408326864s {"key":"luci_ctx/2ebaeeaa9c1a9e4b9e8015fbe15efbb8bca1d58a883be06e28469a6162e62c57", "scopes":"https://www.googleapis.com/auth/userinfo.email"} 43c9f1d19a615510: 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 handle_abort=1 Command: ./unit_tests --test-launcher-bot-mode --cfi-diag=0 --test-launcher-print-test-stdio=always --test-launcher-summary-output=/b/s/w/ioNm51sk/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/2 Using 8 parallel jobs. [ RUN ] IncognitoModePrefsDeathTest.GetAvailabilityBadValue [WARNING] ../../chrome/browser/prefs/incognito_mode_prefs_unittest.cc:68:: Death tests are not supported on this platform. Statement '{ IncognitoModePrefs::Availability availability = IncognitoModePrefs::GetAvailability(&prefs_); switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal::EqHelper::Compare("IncognitoModePrefs::ENABLED", "availability", IncognitoModePrefs::ENABLED, availability))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "../../chrome/browser/prefs/incognito_mode_prefs_unittest.cc", 67, gtest_ar.failure_message()) = ::testing::Message(); }' cannot be verified. [ OK ] IncognitoModePrefsDeathTest.GetAvailabilityBadValue (1 ms) [1/4713] IncognitoModePrefsDeathTest.GetAvailabilityBadValue (1 ms) [ RUN ] CastInternalMessageUtilDeathTest.CastInternalMessageFromAppMessageString [WARNING] ../../chrome/browser/media/router/providers/cast/cast_internal_message_util_unittest.cc:87:: Death tests are not supported on this platform. Statement 'message->v2_message_type()' cannot be verified. [WARNING] ../../chrome/browser/media/router/providers/cast/cast_internal_message_util_unittest.cc:88:: Death tests are not supported on this platform. Statement 'message->v2_message_body()' cannot be verified. [ OK ] CastInternalMessageUtilDeathTest.CastInternalMessageFromAppMessageString (0 ms) [2/4713] CastInternalMessageUtilDeathTest.CastInternalMessageFromAppMessageString (0 ms) [ RUN ] CastInternalMessageUtilDeathTest.CastInternalMessageFromV2MessageString [WARNING] ../../chrome/browser/media/router/providers/cast/cast_internal_message_util_unittest.cc:118:: Death tests are not supported on this platform. Statement 'message->app_message_namespace()' cannot be verified. [WARNING] ../../chrome/browser/media/router/providers/cast/cast_internal_message_util_unittest.cc:119:: Death tests are not supported on this platform. Statement 'message->app_message_body()' cannot be verified. [ OK ] CastInternalMessageUtilDeathTest.CastInternalMessageFromV2MessageString (1 ms) [3/4713] CastInternalMessageUtilDeathTest.CastInternalMessageFromV2MessageString (1 ms) [ RUN ] AboutFlagsTest.EveryFlagHasMetadata [ OK ] AboutFlagsTest.EveryFlagHasMetadata (35 ms) [4/4713] AboutFlagsTest.EveryFlagHasMetadata (35 ms) [ RUN ] AboutFlagsHistogramTest.CheckHistograms [ OK ] AboutFlagsHistogramTest.CheckHistograms (1285 ms) [5/4713] AboutFlagsHistogramTest.CheckHistograms (1285 ms) [ RUN ] ShouldRecordActiveUse.OrdinaryCommand [ OK ] ShouldRecordActiveUse.OrdinaryCommand (1 ms) [6/4713] ShouldRecordActiveUse.OrdinaryCommand (1 ms) [ RUN ] ShouldRecordActiveUse.FakeTryChromeAgainCommand [ OK ] ShouldRecordActiveUse.FakeTryChromeAgainCommand (0 ms) [7/4713] ShouldRecordActiveUse.FakeTryChromeAgainCommand (0 ms) [ RUN ] ShouldRecordActiveUse.TryChromeAgainCommand [ OK ] ShouldRecordActiveUse.TryChromeAgainCommand (0 ms) [8/4713] ShouldRecordActiveUse.TryChromeAgainCommand (0 ms) [ RUN ] AfterStartupTaskTest.PostTask [ OK ] AfterStartupTaskTest.PostTask (54 ms) [9/4713] AfterStartupTaskTest.PostTask (54 ms) [ RUN ] SecurityEventRecorderImplTest.RecordGaiaPasswordReuse [ OK ] SecurityEventRecorderImplTest.RecordGaiaPasswordReuse (7 ms) [10/4713] SecurityEventRecorderImplTest.RecordGaiaPasswordReuse (7 ms) [ RUN ] BackgroundSyncPermissionContextTest.TestSecureRequestingUrl [6838:6838:0324/121459.546564:16907555326:ERROR:render_widget_host_view_base.cc(183)] Not implemented reached in virtual uint32_t content::RenderWidgetHostViewBase::GetCaptureSequenceNumber() const [ OK ] BackgroundSyncPermissionContextTest.TestSecureRequestingUrl (263 ms) [11/4713] BackgroundSyncPermissionContextTest.TestSecureRequestingUrl (263 ms) [ RUN ] BackgroundSyncPermissionContextTest.TestBlockOrigin [ OK ] BackgroundSyncPermissionContextTest.TestBlockOrigin (211 ms) [12/4713] BackgroundSyncPermissionContextTest.TestBlockOrigin (211 ms) [ RUN ] AppBannerSettingsHelperTest.ReportsWhetherBannerWasRecentlyIgnored [ OK ] AppBannerSettingsHelperTest.ReportsWhetherBannerWasRecentlyIgnored (208 ms) [13/4713] AppBannerSettingsHelperTest.ReportsWhetherBannerWasRecentlyIgnored (208 ms) [ RUN ] AppBannerSettingsHelperTest.ReportsWhetherSiteWasEverAdded [ OK ] AppBannerSettingsHelperTest.ReportsWhetherSiteWasEverAdded (157 ms) [14/4713] AppBannerSettingsHelperTest.ReportsWhetherSiteWasEverAdded (157 ms) [ RUN ] AppBannerSettingsHelperTest.OperatesOnOrigins [ OK ] AppBannerSettingsHelperTest.OperatesOnOrigins (116 ms) [15/4713] AppBannerSettingsHelperTest.OperatesOnOrigins (116 ms) [ RUN ] AppBannerSettingsHelperTest.ShouldShowWithHigherTotal [ OK ] AppBannerSettingsHelperTest.ShouldShowWithHigherTotal (224 ms) [16/4713] AppBannerSettingsHelperTest.ShouldShowWithHigherTotal (224 ms) [ RUN ] AppBannerSettingsHelperTest.WasLaunchedRecently [ OK ] AppBannerSettingsHelperTest.WasLaunchedRecently (216 ms) [17/4713] AppBannerSettingsHelperTest.WasLaunchedRecently (216 ms) [ RUN ] BitmapFetcherServiceTest.RequestInvalidUrl [ OK ] BitmapFetcherServiceTest.RequestInvalidUrl (58 ms) [18/4713] BitmapFetcherServiceTest.RequestInvalidUrl (58 ms) [ RUN ] BitmapFetcherServiceTest.CancelInvalidRequest [ OK ] BitmapFetcherServiceTest.CancelInvalidRequest (46 ms) [19/4713] BitmapFetcherServiceTest.CancelInvalidRequest (46 ms) [ RUN ] BitmapFetcherServiceTest.FailedNullRequestsAreHandled [ OK ] BitmapFetcherServiceTest.FailedNullRequestsAreHandled (53 ms) [20/4713] BitmapFetcherServiceTest.FailedNullRequestsAreHandled (53 ms) [ RUN ] BitmapFetcherServiceTest.FailedRequestsDontEnterCache [ OK ] BitmapFetcherServiceTest.FailedRequestsDontEnterCache (110 ms) [21/4713] BitmapFetcherServiceTest.FailedRequestsDontEnterCache (110 ms) [ RUN ] ManagedBookmarkServiceTest.LoadInitial [ OK ] ManagedBookmarkServiceTest.LoadInitial (92 ms) [22/4713] ManagedBookmarkServiceTest.LoadInitial (92 ms) [ RUN ] ManagedBookmarkServiceTest.SwapNodes [ OK ] ManagedBookmarkServiceTest.SwapNodes (61 ms) [23/4713] ManagedBookmarkServiceTest.SwapNodes (61 ms) [ RUN ] ManagedBookmarkServiceTest.GetManagedBookmarksDomain [ OK ] ManagedBookmarkServiceTest.GetManagedBookmarksDomain (50 ms) [24/4713] ManagedBookmarkServiceTest.GetManagedBookmarksDomain (50 ms) [ RUN ] BrowserAboutHandlerTest.NoVirtualURLForFixup [ OK ] BrowserAboutHandlerTest.NoVirtualURLForFixup (45 ms) [25/4713] BrowserAboutHandlerTest.NoVirtualURLForFixup (45 ms) [ RUN ] CannedBrowsingDataAppCacheHelperTest.SetInfo [ OK ] CannedBrowsingDataAppCacheHelperTest.SetInfo (188 ms) [26/4713] CannedBrowsingDataAppCacheHelperTest.SetInfo (188 ms) [ RUN ] CannedBrowsingDataAppCacheHelperTest.Unique [ OK ] CannedBrowsingDataAppCacheHelperTest.Unique (165 ms) [27/4713] CannedBrowsingDataAppCacheHelperTest.Unique (165 ms) [ RUN ] CannedBrowsingDataAppCacheHelperTest.Empty [ OK ] CannedBrowsingDataAppCacheHelperTest.Empty (170 ms) [28/4713] CannedBrowsingDataAppCacheHelperTest.Empty (170 ms) [ RUN ] CannedBrowsingDataCacheStorageHelperTest.Delete [ OK ] CannedBrowsingDataCacheStorageHelperTest.Delete (107 ms) [29/4713] CannedBrowsingDataCacheStorageHelperTest.Delete (107 ms) [ RUN ] BrowsingDataCookieHelperTest.FetchData [ OK ] BrowsingDataCookieHelperTest.FetchData (165 ms) [30/4713] BrowsingDataCookieHelperTest.FetchData (165 ms) [ RUN ] BrowsingDataCookieHelperTest.DomainCookie [ OK ] BrowsingDataCookieHelperTest.DomainCookie (213 ms) [31/4713] BrowsingDataCookieHelperTest.DomainCookie (213 ms) [ RUN ] BrowsingDataCookieHelperTest.DeleteCookie [ OK ] BrowsingDataCookieHelperTest.DeleteCookie (150 ms) [32/4713] BrowsingDataCookieHelperTest.DeleteCookie (150 ms) [ RUN ] BrowsingDataFileSystemHelperTest.FetchData [ OK ] BrowsingDataFileSystemHelperTest.FetchData (292 ms) [33/4713] BrowsingDataFileSystemHelperTest.FetchData (292 ms) [ RUN ] BrowsingDataFileSystemHelperTest.DeleteData [ OK ] BrowsingDataFileSystemHelperTest.DeleteData (249 ms) [34/4713] BrowsingDataFileSystemHelperTest.DeleteData (249 ms) [ RUN ] BrowsingDataFileSystemHelperTest.CannedAddFileSystem [ OK ] BrowsingDataFileSystemHelperTest.CannedAddFileSystem (130 ms) [35/4713] BrowsingDataFileSystemHelperTest.CannedAddFileSystem (130 ms) [ RUN ] BrowsingDataFileSystemHelperTest.IgnoreExtensionsAndDevTools [ OK ] BrowsingDataFileSystemHelperTest.IgnoreExtensionsAndDevTools (128 ms) [36/4713] BrowsingDataFileSystemHelperTest.IgnoreExtensionsAndDevTools (128 ms) [ RUN ] BrowsingDataHelperTest.ChromeSchemesAreNotAllExtension [ OK ] BrowsingDataHelperTest.ChromeSchemesAreNotAllExtension (0 ms) [37/4713] BrowsingDataHelperTest.ChromeSchemesAreNotAllExtension (0 ms) [ RUN ] CannedBrowsingDataIndexedDBHelperTest.Empty [ OK ] CannedBrowsingDataIndexedDBHelperTest.Empty (78 ms) [38/4713] CannedBrowsingDataIndexedDBHelperTest.Empty (78 ms) [ RUN ] CannedBrowsingDataLocalStorageTest.Empty [ OK ] CannedBrowsingDataLocalStorageTest.Empty (79 ms) [39/4713] CannedBrowsingDataLocalStorageTest.Empty (79 ms) [ RUN ] CannedBrowsingDataLocalStorageTest.IgnoreExtensionsAndDevTools [ OK ] CannedBrowsingDataLocalStorageTest.IgnoreExtensionsAndDevTools (81 ms) [40/4713] CannedBrowsingDataLocalStorageTest.IgnoreExtensionsAndDevTools (81 ms) [ RUN ] UserTypeFilterTest.GuestUser [ OK ] UserTypeFilterTest.GuestUser (92 ms) [ RUN ] UserTypeFilterTest.SupervisedUser [ OK ] UserTypeFilterTest.SupervisedUser (77 ms) [ RUN ] UserTypeFilterTest.UnmanagedUser [ OK ] UserTypeFilterTest.UnmanagedUser (30 ms) [ RUN ] UserTypeFilterTest.EmptyFilter [ OK ] UserTypeFilterTest.EmptyFilter (48 ms) [----------] 4 tests from UserTypeFilterTest (257 ms total) [----------] 2 tests from ChromeAutocompleteProviderClientTest [ RUN ] ChromeAutocompleteProviderClientTest.StartServiceWorker [ OK ] ChromeAutocompleteProviderClientTest.StartServiceWorker (188 ms) [ RUN ] ChromeAutocompleteProviderClientTest.DontStartServiceWorkerIfSuggestDisabled ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 8 at 0x562112c5d2f8 by thread T15: #0 base::TaskScheduler::GetInstance() base/task/task_scheduler/task_scheduler.cc:85:10 (unit_tests+0xa8995fa) #1 GetTaskExecutorForTraits base/task/post_task.cc:50:32 (unit_tests+0xa878cec) #2 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:85 (unit_tests+0xa878cec) #3 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #4 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #6 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #7 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #8 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #9 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #10 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #11 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x562112c5d2f8 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+0xa899681) #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:374:3 (unit_tests+0x9a05f55) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is global 'base::(anonymous namespace)::g_task_scheduler' of size 8 at 0x562112c5d2f8 (unit_tests+0x000012b8b2f8) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) 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=6830) Read of size 8 at 0x7b640001d100 by thread T15: #0 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d17) #1 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #2 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #4 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #5 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #6 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #7 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #8 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #9 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #10 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d100 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) 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=6830) Atomic read of size 1 at 0x7b640001d238 by thread T15: #0 __tsan_atomic8_load /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:524:3 (unit_tests+0x3a9ac8c) #1 __cxx_atomic_load<unsigned char> buildtools/third_party/libc++/trunk/include/atomic:970:12 (unit_tests+0xa89a79b) #2 load buildtools/third_party/libc++/trunk/include/atomic:1487 (unit_tests+0xa89a79b) #3 IsSet base/synchronization/atomic_flag.h:34 (unit_tests+0xa89a79b) #4 SetUserBlockingPriorityIfNeeded base/task/task_scheduler/task_scheduler_impl.cc:338 (unit_tests+0xa89a79b) #5 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:161 (unit_tests+0xa89a79b) #6 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #7 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #8 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #10 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #11 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #12 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #13 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #14 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #15 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #16 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d238 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:970:12 in __cxx_atomic_load<unsigned char> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 8 at 0x7b640001d118 by thread T15: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa89aef3) #1 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257 (unit_tests+0xa89aef3) #2 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #3 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #4 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #5 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #7 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #8 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #9 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #10 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #11 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #12 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #13 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d118 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 8 at 0x7b5c00000e10 by thread T15: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa8adcb3) #1 BeforePostTask base/task/task_scheduler/task_tracker.cc (unit_tests+0xa8adcb3) #2 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:434 (unit_tests+0xa8adcb3) #3 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (unit_tests+0xa89af1a) #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:10 (unit_tests+0xa89a89e) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b5c00000e10 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Atomic read of size 4 at 0x7b040002ef00 by thread T15: #0 __tsan_atomic32_load /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:534:3 (unit_tests+0x3a9af8c) #1 __cxx_atomic_load<int> buildtools/third_party/libc++/trunk/include/atomic:964:12 (unit_tests+0xa8add32) #2 load buildtools/third_party/libc++/trunk/include/atomic:1483 (unit_tests+0xa8add32) #3 NoBarrier_Load base/atomicops_internals_portable.h:130 (unit_tests+0xa8add32) #4 HasShutdownStarted base/task/task_scheduler/task_tracker.cc:185 (unit_tests+0xa8add32) #5 BeforePostTask base/task/task_scheduler/task_tracker.cc:788 (unit_tests+0xa8add32) #6 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:434 (unit_tests+0xa8add32) #7 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (unit_tests+0xa89af1a) #8 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #9 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #10 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #11 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #12 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+0xa8bda82) #13 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #14 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #15 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #16 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #17 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #18 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #19 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b040002ef00 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:287:14 (unit_tests+0xa8abff5) #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:282:7 (unit_tests+0xa8abf81) #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+0xa919399) #4 TestTaskTracker base/test/scoped_task_environment.cc:623:7 (unit_tests+0x9a05a0d) #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:331 (unit_tests+0x9a05a0d) #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+0x3acf5fd) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #8 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #9 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #10 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #24 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 4 at 0x7b040002ef00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:287:14 (unit_tests+0xa8abff5) #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:282:7 (unit_tests+0xa8abf81) #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+0xa919399) #4 TestTaskTracker base/test/scoped_task_environment.cc:623:7 (unit_tests+0x9a05a0d) #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:331 (unit_tests+0x9a05a0d) #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+0x3acf5fd) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #8 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #9 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #10 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #24 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:964:12 in __cxx_atomic_load<int> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Atomic write of size 4 at 0x7b5c00000e18 by thread T15: #0 __tsan_atomic32_fetch_add /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:615:3 (unit_tests+0x3a9cf09) #1 __cxx_atomic_fetch_add<int> buildtools/third_party/libc++/trunk/include/atomic:1009:12 (unit_tests+0xa8add60) #2 fetch_add buildtools/third_party/libc++/trunk/include/atomic:1572 (unit_tests+0xa8add60) #3 NoBarrier_AtomicIncrement base/atomicops_internals_portable.h:86 (unit_tests+0xa8add60) #4 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:439 (unit_tests+0xa8add60) #5 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (unit_tests+0xa89af1a) #6 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #7 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #8 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #9 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #10 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+0xa8bda82) #11 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #12 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #13 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #14 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #15 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #16 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #17 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b5c00000e18 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:1009:12 in __cxx_atomic_fetch_add<int> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 1 at 0x7b640001d240 by thread T15 (mutexes: write M1011756495206963176): #0 value base/optional.h:604:5 (unit_tests+0xa89b544) #1 base::internal::TaskSchedulerImpl::GetWorkerPoolForTraits(base::TaskTraits const&) base/task/task_scheduler/task_scheduler_impl.cc:333 (unit_tests+0xa89b544) #2 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:264:5 (unit_tests+0xa89b12c) #3 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #4 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #5 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #6 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #8 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #9 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #10 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #11 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #12 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #13 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #14 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d240 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Mutex M1011756495206963176 is already destroyed. Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race base/optional.h:604:5 in value ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 8 at 0x7b640001d2b8 by thread T15 (mutexes: write M1011756495206963176): #0 operator-> base/task/task_scheduler/tracked_ref.h:102:34 (unit_tests+0xa89e10a) #1 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:92 (unit_tests+0xa89e10a) #2 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:264:37 (unit_tests+0xa89b168) #3 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #4 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #5 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #6 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #8 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #9 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #10 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #11 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #12 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #13 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #14 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d2b8 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Mutex M1011756495206963176 is already destroyed. Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race base/task/task_scheduler/tracked_ref.h:102:34 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Atomic read of size 1 at 0x7b5c00000fa8 by thread T15 (mutexes: write M1011756495206963176): #0 pthread_mutex_lock /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:4112:3 (unit_tests+0x3a6f1d6) #1 base::internal::LockImpl::Lock() base/synchronization/lock_impl_posix.cc:102:12 (unit_tests+0xa91547d) #2 Acquire base/synchronization/lock.h:31:26 (unit_tests+0xa8addf5) #3 BasicAutoLock base/synchronization/lock_impl.h:84 (unit_tests+0xa8addf5) #4 base::internal::TaskTracker::WillScheduleSequence(base::internal::Sequence::Transaction const&, base::internal::CanScheduleSequenceObserver*) base/task/task_scheduler/task_tracker.cc:453 (unit_tests+0xa8addf5) #5 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:92:24 (unit_tests+0xa89e119) #6 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:264:37 (unit_tests+0xa89b168) #7 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #8 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #9 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #10 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #12 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #13 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #14 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #15 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #16 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #17 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b5c00000fa8 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Mutex M1011756495206963176 is already destroyed. Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race base/synchronization/lock_impl_posix.cc:102:12 in base::internal::LockImpl::Lock() ================== [6830:6888:0324/121503.065377:16911074153:ERROR:model_type_store_service_impl.cc(35)] Failed to initialize ModelTypeStore backend: Init@../../components/sync/model_impl/model_type_store_backend.cc:99: IO error: /b/s/w/it_y2_l6/.org.chromium.Chromium.bWqNsC/Sync Data/LevelDB/CURRENT: Unable to create sequential file (ChromeMethodBFE: 7::NewSequentialFile::4) [ OK ] ChromeAutocompleteProviderClientTest.DontStartServiceWorkerIfSuggestDisabled (3512 ms) [----------] 2 tests from ChromeAutocompleteProviderClientTest (3704 ms total) [----------] 3 tests from ChromeAutocompleteSchemeClassifierTest ================== WARNING: ThreadSanitizer: data race (pid=6830) Write of size 8 at 0x562112c565a0 by main thread: #0 net::NetworkChangeNotifier::DisableForTest::DisableForTest() net/base/network_change_notifier.cc:838:29 (unit_tests+0x9c089fe) #1 make_unique<net::NetworkChangeNotifier::DisableForTest> buildtools/third_party/libc++/trunk/include/memory:3131:32 (unit_tests+0x9b04794) #2 content::(anonymous namespace)::NetworkChangeNotifierDisabler::OnTestCaseStart(testing::TestSuite const&) content/public/test/content_test_suite_base.cc:56 (unit_tests+0x9b04794) #3 testing::internal::TestEventRepeater::OnTestCaseStart(testing::TestSuite const&) third_party/googletest/src/googletest/src/gtest.cc:3424:1 (unit_tests+0x630a500) #4 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2796:13 (unit_tests+0x6305b15) #5 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #6 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #7 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #8 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #9 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #10 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #11 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #12 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #13 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #14 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #15 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #16 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #17 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #18 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Previous read of size 8 at 0x562112c565a0 by thread T15: #0 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc (unit_tests+0x9c07d81) #1 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (unit_tests+0x9c10474) #2 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (unit_tests+0x9c10474) #3 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (unit_tests+0x9c10474) #4 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (unit_tests+0x9c10474) #5 Run base/callback.h:136:12 (unit_tests+0x6646723) #6 OnCompleteConfig net/dns/dns_config_service.cc:158 (unit_tests+0x6646723) #7 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (unit_tests+0x6646723) #8 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:378:17 (unit_tests+0x66778cc) #9 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (unit_tests+0x6675cab) #10 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (unit_tests+0x6675f5a) #11 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (unit_tests+0x6675f5a) #12 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (unit_tests+0x6675f5a) #13 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (unit_tests+0x6675f5a) #14 Run base/callback.h:97:12 (unit_tests+0xa8bde18) #15 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (unit_tests+0xa8bde18) #16 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (unit_tests+0xa8bdf07) #17 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (unit_tests+0xa8bdf07) #18 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (unit_tests+0xa8bdf07) #19 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (unit_tests+0xa8bdf07) #20 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #21 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #22 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #23 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:220:7 (unit_tests+0xa89291b) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa892fee) #25 base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_libevent.cc:208:55 (unit_tests+0xa91f9c4) #26 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #27 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #28 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #29 base::Thread::Run(base::RunLoop*) base/threading/thread.cc:242:13 (unit_tests+0xa8c13a9) #30 base::Thread::ThreadMain() base/threading/thread.cc:312:3 (unit_tests+0xa8c1661) #31 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Location is global 'net::(anonymous namespace)::g_network_change_notifier' of size 8 at 0x562112c565a0 (unit_tests+0x000012b845a0) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race net/base/network_change_notifier.cc:838:29 in net::NetworkChangeNotifier::DisableForTest::DisableForTest() ================== [ RUN ] ChromeAutocompleteSchemeClassifierTest.NormalSearch [ OK ] ChromeAutocompleteSchemeClassifierTest.NormalSearch (29 ms) [ RUN ] ChromeAutocompleteSchemeClassifierTest.HttpUrl [ OK ] ChromeAutocompleteSchemeClassifierTest.HttpUrl (362 ms) [ RUN ] ChromeAutocompleteSchemeClassifierTest.BlockedScheme [ OK ] ChromeAutocompleteSchemeClassifierTest.BlockedScheme (29 ms) [----------] 3 tests from ChromeAutocompleteSchemeClassifierTest (426 ms total) [----------] 1 test from SearchProviderTest [ RUN ] SearchProviderTest.QueryDefaultProvider [ OK ] SearchProviderTest.QueryDefaultProvider (748 ms) [----------] 1 test from SearchProviderTest (750 ms total) [----------] Global test environment tear-down [==========] 10 tests from 4 test suites ran. (5161 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 11 warnings [41/4713] UserTypeFilterTest.GuestUser (92 ms) [ RUN ] UserTypeFilterTest.SupervisedUser [ OK ] UserTypeFilterTest.SupervisedUser (77 ms) [ RUN ] UserTypeFilterTest.UnmanagedUser [ OK ] UserTypeFilterTest.UnmanagedUser (30 ms) [ RUN ] UserTypeFilterTest.EmptyFilter [ OK ] UserTypeFilterTest.EmptyFilter (48 ms) [----------] 4 tests from UserTypeFilterTest (257 ms total) [----------] 2 tests from ChromeAutocompleteProviderClientTest [ RUN ] ChromeAutocompleteProviderClientTest.StartServiceWorker [ OK ] ChromeAutocompleteProviderClientTest.StartServiceWorker (188 ms) [ RUN ] ChromeAutocompleteProviderClientTest.DontStartServiceWorkerIfSuggestDisabled ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 8 at 0x562112c5d2f8 by thread T15: #0 base::TaskScheduler::GetInstance() base/task/task_scheduler/task_scheduler.cc:85:10 (unit_tests+0xa8995fa) #1 GetTaskExecutorForTraits base/task/post_task.cc:50:32 (unit_tests+0xa878cec) #2 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:85 (unit_tests+0xa878cec) #3 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #4 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #6 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #7 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #8 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #9 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #10 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #11 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x562112c5d2f8 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+0xa899681) #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:374:3 (unit_tests+0x9a05f55) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is global 'base::(anonymous namespace)::g_task_scheduler' of size 8 at 0x562112c5d2f8 (unit_tests+0x000012b8b2f8) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) 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=6830) Read of size 8 at 0x7b640001d100 by thread T15: #0 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d17) #1 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #2 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #4 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #5 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #6 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #7 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #8 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #9 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #10 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d100 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) 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=6830) Atomic read of size 1 at 0x7b640001d238 by thread T15: #0 __tsan_atomic8_load /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:524:3 (unit_tests+0x3a9ac8c) #1 __cxx_atomic_load<unsigned char> buildtools/third_party/libc++/trunk/include/atomic:970:12 (unit_tests+0xa89a79b) #2 load buildtools/third_party/libc++/trunk/include/atomic:1487 (unit_tests+0xa89a79b) #3 IsSet base/synchronization/atomic_flag.h:34 (unit_tests+0xa89a79b) #4 SetUserBlockingPriorityIfNeeded base/task/task_scheduler/task_scheduler_impl.cc:338 (unit_tests+0xa89a79b) #5 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:161 (unit_tests+0xa89a79b) #6 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #7 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #8 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #10 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #11 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #12 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #13 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #14 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #15 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #16 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d238 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:970:12 in __cxx_atomic_load<unsigned char> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 8 at 0x7b640001d118 by thread T15: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa89aef3) #1 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257 (unit_tests+0xa89aef3) #2 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #3 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #4 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #5 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #7 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #8 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #9 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #10 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #11 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #12 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #13 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d118 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 8 at 0x7b5c00000e10 by thread T15: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa8adcb3) #1 BeforePostTask base/task/task_scheduler/task_tracker.cc (unit_tests+0xa8adcb3) #2 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:434 (unit_tests+0xa8adcb3) #3 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (unit_tests+0xa89af1a) #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:10 (unit_tests+0xa89a89e) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b5c00000e10 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Atomic read of size 4 at 0x7b040002ef00 by thread T15: #0 __tsan_atomic32_load /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:534:3 (unit_tests+0x3a9af8c) #1 __cxx_atomic_load<int> buildtools/third_party/libc++/trunk/include/atomic:964:12 (unit_tests+0xa8add32) #2 load buildtools/third_party/libc++/trunk/include/atomic:1483 (unit_tests+0xa8add32) #3 NoBarrier_Load base/atomicops_internals_portable.h:130 (unit_tests+0xa8add32) #4 HasShutdownStarted base/task/task_scheduler/task_tracker.cc:185 (unit_tests+0xa8add32) #5 BeforePostTask base/task/task_scheduler/task_tracker.cc:788 (unit_tests+0xa8add32) #6 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:434 (unit_tests+0xa8add32) #7 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (unit_tests+0xa89af1a) #8 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #9 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #10 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #11 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #12 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+0xa8bda82) #13 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #14 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #15 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #16 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #17 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #18 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #19 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b040002ef00 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:287:14 (unit_tests+0xa8abff5) #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:282:7 (unit_tests+0xa8abf81) #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+0xa919399) #4 TestTaskTracker base/test/scoped_task_environment.cc:623:7 (unit_tests+0x9a05a0d) #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:331 (unit_tests+0x9a05a0d) #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+0x3acf5fd) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #8 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #9 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #10 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #24 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 4 at 0x7b040002ef00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:287:14 (unit_tests+0xa8abff5) #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:282:7 (unit_tests+0xa8abf81) #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+0xa919399) #4 TestTaskTracker base/test/scoped_task_environment.cc:623:7 (unit_tests+0x9a05a0d) #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:331 (unit_tests+0x9a05a0d) #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+0x3acf5fd) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #8 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #9 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #10 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #24 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:964:12 in __cxx_atomic_load<int> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Atomic write of size 4 at 0x7b5c00000e18 by thread T15: #0 __tsan_atomic32_fetch_add /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:615:3 (unit_tests+0x3a9cf09) #1 __cxx_atomic_fetch_add<int> buildtools/third_party/libc++/trunk/include/atomic:1009:12 (unit_tests+0xa8add60) #2 fetch_add buildtools/third_party/libc++/trunk/include/atomic:1572 (unit_tests+0xa8add60) #3 NoBarrier_AtomicIncrement base/atomicops_internals_portable.h:86 (unit_tests+0xa8add60) #4 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:439 (unit_tests+0xa8add60) #5 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (unit_tests+0xa89af1a) #6 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #7 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #8 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #9 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #10 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+0xa8bda82) #11 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #12 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #13 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #14 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #15 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #16 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #17 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b5c00000e18 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:1009:12 in __cxx_atomic_fetch_add<int> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 1 at 0x7b640001d240 by thread T15 (mutexes: write M1011756495206963176): #0 value base/optional.h:604:5 (unit_tests+0xa89b544) #1 base::internal::TaskSchedulerImpl::GetWorkerPoolForTraits(base::TaskTraits const&) base/task/task_scheduler/task_scheduler_impl.cc:333 (unit_tests+0xa89b544) #2 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:264:5 (unit_tests+0xa89b12c) #3 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #4 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #5 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #6 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #8 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #9 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #10 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #11 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #12 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #13 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #14 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d240 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Mutex M1011756495206963176 is already destroyed. Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race base/optional.h:604:5 in value ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 8 at 0x7b640001d2b8 by thread T15 (mutexes: write M1011756495206963176): #0 operator-> base/task/task_scheduler/tracked_ref.h:102:34 (unit_tests+0xa89e10a) #1 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:92 (unit_tests+0xa89e10a) #2 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:264:37 (unit_tests+0xa89b168) #3 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #4 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #5 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #6 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #8 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #9 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #10 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #11 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #12 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #13 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #14 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d2b8 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Mutex M1011756495206963176 is already destroyed. Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race base/task/task_scheduler/tracked_ref.h:102:34 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Atomic read of size 1 at 0x7b5c00000fa8 by thread T15 (mutexes: write M1011756495206963176): #0 pthread_mutex_lock /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:4112:3 (unit_tests+0x3a6f1d6) #1 base::internal::LockImpl::Lock() base/synchronization/lock_impl_posix.cc:102:12 (unit_tests+0xa91547d) #2 Acquire base/synchronization/lock.h:31:26 (unit_tests+0xa8addf5) #3 BasicAutoLock base/synchronization/lock_impl.h:84 (unit_tests+0xa8addf5) #4 base::internal::TaskTracker::WillScheduleSequence(base::internal::Sequence::Transaction const&, base::internal::CanScheduleSequenceObserver*) base/task/task_scheduler/task_tracker.cc:453 (unit_tests+0xa8addf5) #5 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:92:24 (unit_tests+0xa89e119) #6 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:264:37 (unit_tests+0xa89b168) #7 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #8 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #9 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #10 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #12 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #13 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #14 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #15 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #16 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #17 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b5c00000fa8 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Mutex M1011756495206963176 is already destroyed. Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race base/synchronization/lock_impl_posix.cc:102:12 in base::internal::LockImpl::Lock() ================== [6830:6888:0324/121503.065377:16911074153:ERROR:model_type_store_service_impl.cc(35)] Failed to initialize ModelTypeStore backend: Init@../../components/sync/model_impl/model_type_store_backend.cc:99: IO error: /b/s/w/it_y2_l6/.org.chromium.Chromium.bWqNsC/Sync Data/LevelDB/CURRENT: Unable to create sequential file (ChromeMethodBFE: 7::NewSequentialFile::4) [ OK ] ChromeAutocompleteProviderClientTest.DontStartServiceWorkerIfSuggestDisabled (3512 ms) [----------] 2 tests from ChromeAutocompleteProviderClientTest (3704 ms total) [----------] 3 tests from ChromeAutocompleteSchemeClassifierTest ================== WARNING: ThreadSanitizer: data race (pid=6830) Write of size 8 at 0x562112c565a0 by main thread: #0 net::NetworkChangeNotifier::DisableForTest::DisableForTest() net/base/network_change_notifier.cc:838:29 (unit_tests+0x9c089fe) #1 make_unique<net::NetworkChangeNotifier::DisableForTest> buildtools/third_party/libc++/trunk/include/memory:3131:32 (unit_tests+0x9b04794) #2 content::(anonymous namespace)::NetworkChangeNotifierDisabler::OnTestCaseStart(testing::TestSuite const&) content/public/test/content_test_suite_base.cc:56 (unit_tests+0x9b04794) #3 testing::internal::TestEventRepeater::OnTestCaseStart(testing::TestSuite const&) third_party/googletest/src/googletest/src/gtest.cc:3424:1 (unit_tests+0x630a500) #4 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2796:13 (unit_tests+0x6305b15) #5 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #6 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #7 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #8 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #9 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #10 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #11 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #12 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #13 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #14 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #15 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #16 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #17 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #18 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Previous read of size 8 at 0x562112c565a0 by thread T15: #0 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc (unit_tests+0x9c07d81) #1 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (unit_tests+0x9c10474) #2 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (unit_tests+0x9c10474) #3 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (unit_tests+0x9c10474) #4 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (unit_tests+0x9c10474) #5 Run base/callback.h:136:12 (unit_tests+0x6646723) #6 OnCompleteConfig net/dns/dns_config_service.cc:158 (unit_tests+0x6646723) #7 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (unit_tests+0x6646723) #8 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:378:17 (unit_tests+0x66778cc) #9 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (unit_tests+0x6675cab) #10 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (unit_tests+0x6675f5a) #11 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (unit_tests+0x6675f5a) #12 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (unit_tests+0x6675f5a) #13 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (unit_tests+0x6675f5a) #14 Run base/callback.h:97:12 (unit_tests+0xa8bde18) #15 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (unit_tests+0xa8bde18) #16 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (unit_tests+0xa8bdf07) #17 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (unit_tests+0xa8bdf07) #18 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (unit_tests+0xa8bdf07) #19 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (unit_tests+0xa8bdf07) #20 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #21 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #22 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #23 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:220:7 (unit_tests+0xa89291b) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa892fee) #25 base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_libevent.cc:208:55 (unit_tests+0xa91f9c4) #26 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #27 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #28 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #29 base::Thread::Run(base::RunLoop*) base/threading/thread.cc:242:13 (unit_tests+0xa8c13a9) #30 base::Thread::ThreadMain() base/threading/thread.cc:312:3 (unit_tests+0xa8c1661) #31 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Location is global 'net::(anonymous namespace)::g_network_change_notifier' of size 8 at 0x562112c565a0 (unit_tests+0x000012b845a0) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race net/base/network_change_notifier.cc:838:29 in net::NetworkChangeNotifier::DisableForTest::DisableForTest() ================== [ RUN ] ChromeAutocompleteSchemeClassifierTest.NormalSearch [ OK ] ChromeAutocompleteSchemeClassifierTest.NormalSearch (29 ms) [ RUN ] ChromeAutocompleteSchemeClassifierTest.HttpUrl [ OK ] ChromeAutocompleteSchemeClassifierTest.HttpUrl (362 ms) [ RUN ] ChromeAutocompleteSchemeClassifierTest.BlockedScheme [ OK ] ChromeAutocompleteSchemeClassifierTest.BlockedScheme (29 ms) [----------] 3 tests from ChromeAutocompleteSchemeClassifierTest (426 ms total) [----------] 1 test from SearchProviderTest [ RUN ] SearchProviderTest.QueryDefaultProvider [ OK ] SearchProviderTest.QueryDefaultProvider (748 ms) [----------] 1 test from SearchProviderTest (750 ms total) [----------] Global test environment tear-down [==========] 10 tests from 4 test suites ran. (5161 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 11 warnings [42/4713] UserTypeFilterTest.SupervisedUser (77 ms) [ RUN ] UserTypeFilterTest.UnmanagedUser [ OK ] UserTypeFilterTest.UnmanagedUser (30 ms) [ RUN ] UserTypeFilterTest.EmptyFilter [ OK ] UserTypeFilterTest.EmptyFilter (48 ms) [----------] 4 tests from UserTypeFilterTest (257 ms total) [----------] 2 tests from ChromeAutocompleteProviderClientTest [ RUN ] ChromeAutocompleteProviderClientTest.StartServiceWorker [ OK ] ChromeAutocompleteProviderClientTest.StartServiceWorker (188 ms) [ RUN ] ChromeAutocompleteProviderClientTest.DontStartServiceWorkerIfSuggestDisabled ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 8 at 0x562112c5d2f8 by thread T15: #0 base::TaskScheduler::GetInstance() base/task/task_scheduler/task_scheduler.cc:85:10 (unit_tests+0xa8995fa) #1 GetTaskExecutorForTraits base/task/post_task.cc:50:32 (unit_tests+0xa878cec) #2 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:85 (unit_tests+0xa878cec) #3 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #4 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #6 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #7 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #8 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #9 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #10 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #11 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x562112c5d2f8 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+0xa899681) #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:374:3 (unit_tests+0x9a05f55) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is global 'base::(anonymous namespace)::g_task_scheduler' of size 8 at 0x562112c5d2f8 (unit_tests+0x000012b8b2f8) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) 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=6830) Read of size 8 at 0x7b640001d100 by thread T15: #0 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d17) #1 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #2 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #4 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #5 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #6 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #7 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #8 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #9 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #10 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d100 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) 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=6830) Atomic read of size 1 at 0x7b640001d238 by thread T15: #0 __tsan_atomic8_load /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:524:3 (unit_tests+0x3a9ac8c) #1 __cxx_atomic_load<unsigned char> buildtools/third_party/libc++/trunk/include/atomic:970:12 (unit_tests+0xa89a79b) #2 load buildtools/third_party/libc++/trunk/include/atomic:1487 (unit_tests+0xa89a79b) #3 IsSet base/synchronization/atomic_flag.h:34 (unit_tests+0xa89a79b) #4 SetUserBlockingPriorityIfNeeded base/task/task_scheduler/task_scheduler_impl.cc:338 (unit_tests+0xa89a79b) #5 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:161 (unit_tests+0xa89a79b) #6 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #7 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #8 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #10 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #11 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #12 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #13 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #14 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #15 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #16 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d238 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:970:12 in __cxx_atomic_load<unsigned char> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 8 at 0x7b640001d118 by thread T15: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa89aef3) #1 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257 (unit_tests+0xa89aef3) #2 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #3 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #4 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #5 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #7 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #8 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #9 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #10 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #11 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #12 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #13 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d118 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 8 at 0x7b5c00000e10 by thread T15: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa8adcb3) #1 BeforePostTask base/task/task_scheduler/task_tracker.cc (unit_tests+0xa8adcb3) #2 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:434 (unit_tests+0xa8adcb3) #3 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (unit_tests+0xa89af1a) #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:10 (unit_tests+0xa89a89e) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b5c00000e10 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Atomic read of size 4 at 0x7b040002ef00 by thread T15: #0 __tsan_atomic32_load /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:534:3 (unit_tests+0x3a9af8c) #1 __cxx_atomic_load<int> buildtools/third_party/libc++/trunk/include/atomic:964:12 (unit_tests+0xa8add32) #2 load buildtools/third_party/libc++/trunk/include/atomic:1483 (unit_tests+0xa8add32) #3 NoBarrier_Load base/atomicops_internals_portable.h:130 (unit_tests+0xa8add32) #4 HasShutdownStarted base/task/task_scheduler/task_tracker.cc:185 (unit_tests+0xa8add32) #5 BeforePostTask base/task/task_scheduler/task_tracker.cc:788 (unit_tests+0xa8add32) #6 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:434 (unit_tests+0xa8add32) #7 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (unit_tests+0xa89af1a) #8 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #9 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #10 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #11 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #12 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+0xa8bda82) #13 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #14 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #15 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #16 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #17 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #18 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #19 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b040002ef00 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:287:14 (unit_tests+0xa8abff5) #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:282:7 (unit_tests+0xa8abf81) #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+0xa919399) #4 TestTaskTracker base/test/scoped_task_environment.cc:623:7 (unit_tests+0x9a05a0d) #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:331 (unit_tests+0x9a05a0d) #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+0x3acf5fd) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #8 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #9 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #10 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #24 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 4 at 0x7b040002ef00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:287:14 (unit_tests+0xa8abff5) #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:282:7 (unit_tests+0xa8abf81) #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+0xa919399) #4 TestTaskTracker base/test/scoped_task_environment.cc:623:7 (unit_tests+0x9a05a0d) #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:331 (unit_tests+0x9a05a0d) #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+0x3acf5fd) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #8 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #9 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #10 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #24 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:964:12 in __cxx_atomic_load<int> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Atomic write of size 4 at 0x7b5c00000e18 by thread T15: #0 __tsan_atomic32_fetch_add /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:615:3 (unit_tests+0x3a9cf09) #1 __cxx_atomic_fetch_add<int> buildtools/third_party/libc++/trunk/include/atomic:1009:12 (unit_tests+0xa8add60) #2 fetch_add buildtools/third_party/libc++/trunk/include/atomic:1572 (unit_tests+0xa8add60) #3 NoBarrier_AtomicIncrement base/atomicops_internals_portable.h:86 (unit_tests+0xa8add60) #4 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:439 (unit_tests+0xa8add60) #5 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (unit_tests+0xa89af1a) #6 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #7 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #8 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #9 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #10 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+0xa8bda82) #11 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #12 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #13 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #14 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #15 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #16 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #17 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b5c00000e18 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:1009:12 in __cxx_atomic_fetch_add<int> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 1 at 0x7b640001d240 by thread T15 (mutexes: write M1011756495206963176): #0 value base/optional.h:604:5 (unit_tests+0xa89b544) #1 base::internal::TaskSchedulerImpl::GetWorkerPoolForTraits(base::TaskTraits const&) base/task/task_scheduler/task_scheduler_impl.cc:333 (unit_tests+0xa89b544) #2 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:264:5 (unit_tests+0xa89b12c) #3 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #4 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #5 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #6 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #8 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #9 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #10 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #11 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #12 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #13 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #14 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d240 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Mutex M1011756495206963176 is already destroyed. Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race base/optional.h:604:5 in value ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 8 at 0x7b640001d2b8 by thread T15 (mutexes: write M1011756495206963176): #0 operator-> base/task/task_scheduler/tracked_ref.h:102:34 (unit_tests+0xa89e10a) #1 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:92 (unit_tests+0xa89e10a) #2 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:264:37 (unit_tests+0xa89b168) #3 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #4 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #5 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #6 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #8 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #9 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #10 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #11 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #12 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #13 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #14 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d2b8 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Mutex M1011756495206963176 is already destroyed. Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race base/task/task_scheduler/tracked_ref.h:102:34 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Atomic read of size 1 at 0x7b5c00000fa8 by thread T15 (mutexes: write M1011756495206963176): #0 pthread_mutex_lock /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:4112:3 (unit_tests+0x3a6f1d6) #1 base::internal::LockImpl::Lock() base/synchronization/lock_impl_posix.cc:102:12 (unit_tests+0xa91547d) #2 Acquire base/synchronization/lock.h:31:26 (unit_tests+0xa8addf5) #3 BasicAutoLock base/synchronization/lock_impl.h:84 (unit_tests+0xa8addf5) #4 base::internal::TaskTracker::WillScheduleSequence(base::internal::Sequence::Transaction const&, base::internal::CanScheduleSequenceObserver*) base/task/task_scheduler/task_tracker.cc:453 (unit_tests+0xa8addf5) #5 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:92:24 (unit_tests+0xa89e119) #6 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:264:37 (unit_tests+0xa89b168) #7 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #8 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #9 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #10 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #12 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #13 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #14 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #15 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #16 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #17 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b5c00000fa8 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Mutex M1011756495206963176 is already destroyed. Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race base/synchronization/lock_impl_posix.cc:102:12 in base::internal::LockImpl::Lock() ================== [6830:6888:0324/121503.065377:16911074153:ERROR:model_type_store_service_impl.cc(35)] Failed to initialize ModelTypeStore backend: Init@../../components/sync/model_impl/model_type_store_backend.cc:99: IO error: /b/s/w/it_y2_l6/.org.chromium.Chromium.bWqNsC/Sync Data/LevelDB/CURRENT: Unable to create sequential file (ChromeMethodBFE: 7::NewSequentialFile::4) [ OK ] ChromeAutocompleteProviderClientTest.DontStartServiceWorkerIfSuggestDisabled (3512 ms) [----------] 2 tests from ChromeAutocompleteProviderClientTest (3704 ms total) [----------] 3 tests from ChromeAutocompleteSchemeClassifierTest ================== WARNING: ThreadSanitizer: data race (pid=6830) Write of size 8 at 0x562112c565a0 by main thread: #0 net::NetworkChangeNotifier::DisableForTest::DisableForTest() net/base/network_change_notifier.cc:838:29 (unit_tests+0x9c089fe) #1 make_unique<net::NetworkChangeNotifier::DisableForTest> buildtools/third_party/libc++/trunk/include/memory:3131:32 (unit_tests+0x9b04794) #2 content::(anonymous namespace)::NetworkChangeNotifierDisabler::OnTestCaseStart(testing::TestSuite const&) content/public/test/content_test_suite_base.cc:56 (unit_tests+0x9b04794) #3 testing::internal::TestEventRepeater::OnTestCaseStart(testing::TestSuite const&) third_party/googletest/src/googletest/src/gtest.cc:3424:1 (unit_tests+0x630a500) #4 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2796:13 (unit_tests+0x6305b15) #5 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #6 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #7 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #8 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #9 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #10 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #11 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #12 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #13 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #14 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #15 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #16 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #17 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #18 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Previous read of size 8 at 0x562112c565a0 by thread T15: #0 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc (unit_tests+0x9c07d81) #1 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (unit_tests+0x9c10474) #2 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (unit_tests+0x9c10474) #3 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (unit_tests+0x9c10474) #4 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (unit_tests+0x9c10474) #5 Run base/callback.h:136:12 (unit_tests+0x6646723) #6 OnCompleteConfig net/dns/dns_config_service.cc:158 (unit_tests+0x6646723) #7 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (unit_tests+0x6646723) #8 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:378:17 (unit_tests+0x66778cc) #9 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (unit_tests+0x6675cab) #10 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (unit_tests+0x6675f5a) #11 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (unit_tests+0x6675f5a) #12 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (unit_tests+0x6675f5a) #13 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (unit_tests+0x6675f5a) #14 Run base/callback.h:97:12 (unit_tests+0xa8bde18) #15 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (unit_tests+0xa8bde18) #16 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (unit_tests+0xa8bdf07) #17 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (unit_tests+0xa8bdf07) #18 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (unit_tests+0xa8bdf07) #19 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (unit_tests+0xa8bdf07) #20 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #21 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #22 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #23 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:220:7 (unit_tests+0xa89291b) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa892fee) #25 base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_libevent.cc:208:55 (unit_tests+0xa91f9c4) #26 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #27 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #28 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #29 base::Thread::Run(base::RunLoop*) base/threading/thread.cc:242:13 (unit_tests+0xa8c13a9) #30 base::Thread::ThreadMain() base/threading/thread.cc:312:3 (unit_tests+0xa8c1661) #31 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Location is global 'net::(anonymous namespace)::g_network_change_notifier' of size 8 at 0x562112c565a0 (unit_tests+0x000012b845a0) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race net/base/network_change_notifier.cc:838:29 in net::NetworkChangeNotifier::DisableForTest::DisableForTest() ================== [ RUN ] ChromeAutocompleteSchemeClassifierTest.NormalSearch [ OK ] ChromeAutocompleteSchemeClassifierTest.NormalSearch (29 ms) [ RUN ] ChromeAutocompleteSchemeClassifierTest.HttpUrl [ OK ] ChromeAutocompleteSchemeClassifierTest.HttpUrl (362 ms) [ RUN ] ChromeAutocompleteSchemeClassifierTest.BlockedScheme [ OK ] ChromeAutocompleteSchemeClassifierTest.BlockedScheme (29 ms) [----------] 3 tests from ChromeAutocompleteSchemeClassifierTest (426 ms total) [----------] 1 test from SearchProviderTest [ RUN ] SearchProviderTest.QueryDefaultProvider [ OK ] SearchProviderTest.QueryDefaultProvider (748 ms) [----------] 1 test from SearchProviderTest (750 ms total) [----------] Global test environment tear-down [==========] 10 tests from 4 test suites ran. (5161 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 11 warnings [43/4713] UserTypeFilterTest.UnmanagedUser (30 ms) [ RUN ] UserTypeFilterTest.EmptyFilter [ OK ] UserTypeFilterTest.EmptyFilter (48 ms) [----------] 4 tests from UserTypeFilterTest (257 ms total) [----------] 2 tests from ChromeAutocompleteProviderClientTest [ RUN ] ChromeAutocompleteProviderClientTest.StartServiceWorker [ OK ] ChromeAutocompleteProviderClientTest.StartServiceWorker (188 ms) [ RUN ] ChromeAutocompleteProviderClientTest.DontStartServiceWorkerIfSuggestDisabled ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 8 at 0x562112c5d2f8 by thread T15: #0 base::TaskScheduler::GetInstance() base/task/task_scheduler/task_scheduler.cc:85:10 (unit_tests+0xa8995fa) #1 GetTaskExecutorForTraits base/task/post_task.cc:50:32 (unit_tests+0xa878cec) #2 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:85 (unit_tests+0xa878cec) #3 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #4 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #6 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #7 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #8 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #9 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #10 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #11 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x562112c5d2f8 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+0xa899681) #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:374:3 (unit_tests+0x9a05f55) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is global 'base::(anonymous namespace)::g_task_scheduler' of size 8 at 0x562112c5d2f8 (unit_tests+0x000012b8b2f8) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) 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=6830) Read of size 8 at 0x7b640001d100 by thread T15: #0 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d17) #1 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #2 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #4 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #5 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #6 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #7 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #8 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #9 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #10 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d100 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) 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=6830) Atomic read of size 1 at 0x7b640001d238 by thread T15: #0 __tsan_atomic8_load /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:524:3 (unit_tests+0x3a9ac8c) #1 __cxx_atomic_load<unsigned char> buildtools/third_party/libc++/trunk/include/atomic:970:12 (unit_tests+0xa89a79b) #2 load buildtools/third_party/libc++/trunk/include/atomic:1487 (unit_tests+0xa89a79b) #3 IsSet base/synchronization/atomic_flag.h:34 (unit_tests+0xa89a79b) #4 SetUserBlockingPriorityIfNeeded base/task/task_scheduler/task_scheduler_impl.cc:338 (unit_tests+0xa89a79b) #5 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:161 (unit_tests+0xa89a79b) #6 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #7 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #8 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #10 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #11 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #12 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #13 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #14 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #15 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #16 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d238 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:970:12 in __cxx_atomic_load<unsigned char> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 8 at 0x7b640001d118 by thread T15: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa89aef3) #1 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257 (unit_tests+0xa89aef3) #2 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #3 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #4 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #5 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #7 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #8 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #9 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #10 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #11 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #12 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #13 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d118 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 8 at 0x7b5c00000e10 by thread T15: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa8adcb3) #1 BeforePostTask base/task/task_scheduler/task_tracker.cc (unit_tests+0xa8adcb3) #2 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:434 (unit_tests+0xa8adcb3) #3 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (unit_tests+0xa89af1a) #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:10 (unit_tests+0xa89a89e) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b5c00000e10 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Atomic read of size 4 at 0x7b040002ef00 by thread T15: #0 __tsan_atomic32_load /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:534:3 (unit_tests+0x3a9af8c) #1 __cxx_atomic_load<int> buildtools/third_party/libc++/trunk/include/atomic:964:12 (unit_tests+0xa8add32) #2 load buildtools/third_party/libc++/trunk/include/atomic:1483 (unit_tests+0xa8add32) #3 NoBarrier_Load base/atomicops_internals_portable.h:130 (unit_tests+0xa8add32) #4 HasShutdownStarted base/task/task_scheduler/task_tracker.cc:185 (unit_tests+0xa8add32) #5 BeforePostTask base/task/task_scheduler/task_tracker.cc:788 (unit_tests+0xa8add32) #6 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:434 (unit_tests+0xa8add32) #7 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (unit_tests+0xa89af1a) #8 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #9 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #10 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #11 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #12 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+0xa8bda82) #13 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #14 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #15 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #16 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #17 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #18 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #19 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b040002ef00 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:287:14 (unit_tests+0xa8abff5) #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:282:7 (unit_tests+0xa8abf81) #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+0xa919399) #4 TestTaskTracker base/test/scoped_task_environment.cc:623:7 (unit_tests+0x9a05a0d) #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:331 (unit_tests+0x9a05a0d) #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+0x3acf5fd) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #8 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #9 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #10 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #24 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 4 at 0x7b040002ef00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:287:14 (unit_tests+0xa8abff5) #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:282:7 (unit_tests+0xa8abf81) #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+0xa919399) #4 TestTaskTracker base/test/scoped_task_environment.cc:623:7 (unit_tests+0x9a05a0d) #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:331 (unit_tests+0x9a05a0d) #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+0x3acf5fd) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #8 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #9 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #10 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #24 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:964:12 in __cxx_atomic_load<int> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Atomic write of size 4 at 0x7b5c00000e18 by thread T15: #0 __tsan_atomic32_fetch_add /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:615:3 (unit_tests+0x3a9cf09) #1 __cxx_atomic_fetch_add<int> buildtools/third_party/libc++/trunk/include/atomic:1009:12 (unit_tests+0xa8add60) #2 fetch_add buildtools/third_party/libc++/trunk/include/atomic:1572 (unit_tests+0xa8add60) #3 NoBarrier_AtomicIncrement base/atomicops_internals_portable.h:86 (unit_tests+0xa8add60) #4 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:439 (unit_tests+0xa8add60) #5 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (unit_tests+0xa89af1a) #6 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #7 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #8 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #9 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #10 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+0xa8bda82) #11 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #12 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #13 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #14 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #15 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #16 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #17 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b5c00000e18 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:1009:12 in __cxx_atomic_fetch_add<int> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 1 at 0x7b640001d240 by thread T15 (mutexes: write M1011756495206963176): #0 value base/optional.h:604:5 (unit_tests+0xa89b544) #1 base::internal::TaskSchedulerImpl::GetWorkerPoolForTraits(base::TaskTraits const&) base/task/task_scheduler/task_scheduler_impl.cc:333 (unit_tests+0xa89b544) #2 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:264:5 (unit_tests+0xa89b12c) #3 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #4 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #5 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #6 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #8 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #9 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #10 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #11 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #12 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #13 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #14 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d240 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Mutex M1011756495206963176 is already destroyed. Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race base/optional.h:604:5 in value ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 8 at 0x7b640001d2b8 by thread T15 (mutexes: write M1011756495206963176): #0 operator-> base/task/task_scheduler/tracked_ref.h:102:34 (unit_tests+0xa89e10a) #1 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:92 (unit_tests+0xa89e10a) #2 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:264:37 (unit_tests+0xa89b168) #3 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #4 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #5 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #6 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #8 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #9 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #10 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #11 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #12 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #13 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #14 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d2b8 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Mutex M1011756495206963176 is already destroyed. Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race base/task/task_scheduler/tracked_ref.h:102:34 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Atomic read of size 1 at 0x7b5c00000fa8 by thread T15 (mutexes: write M1011756495206963176): #0 pthread_mutex_lock /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:4112:3 (unit_tests+0x3a6f1d6) #1 base::internal::LockImpl::Lock() base/synchronization/lock_impl_posix.cc:102:12 (unit_tests+0xa91547d) #2 Acquire base/synchronization/lock.h:31:26 (unit_tests+0xa8addf5) #3 BasicAutoLock base/synchronization/lock_impl.h:84 (unit_tests+0xa8addf5) #4 base::internal::TaskTracker::WillScheduleSequence(base::internal::Sequence::Transaction const&, base::internal::CanScheduleSequenceObserver*) base/task/task_scheduler/task_tracker.cc:453 (unit_tests+0xa8addf5) #5 base::internal::SchedulerWorkerPool::PostTaskWithSequenceNow(base::internal::Task, base::internal::SequenceAndTransaction) base/task/task_scheduler/scheduler_worker_pool.cc:92:24 (unit_tests+0xa89e119) #6 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:264:37 (unit_tests+0xa89b168) #7 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #8 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #9 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #10 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #12 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #13 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #14 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #15 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #16 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #17 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b5c00000fa8 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Mutex M1011756495206963176 is already destroyed. Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race base/synchronization/lock_impl_posix.cc:102:12 in base::internal::LockImpl::Lock() ================== [6830:6888:0324/121503.065377:16911074153:ERROR:model_type_store_service_impl.cc(35)] Failed to initialize ModelTypeStore backend: Init@../../components/sync/model_impl/model_type_store_backend.cc:99: IO error: /b/s/w/it_y2_l6/.org.chromium.Chromium.bWqNsC/Sync Data/LevelDB/CURRENT: Unable to create sequential file (ChromeMethodBFE: 7::NewSequentialFile::4) [ OK ] ChromeAutocompleteProviderClientTest.DontStartServiceWorkerIfSuggestDisabled (3512 ms) [----------] 2 tests from ChromeAutocompleteProviderClientTest (3704 ms total) [----------] 3 tests from ChromeAutocompleteSchemeClassifierTest ================== WARNING: ThreadSanitizer: data race (pid=6830) Write of size 8 at 0x562112c565a0 by main thread: #0 net::NetworkChangeNotifier::DisableForTest::DisableForTest() net/base/network_change_notifier.cc:838:29 (unit_tests+0x9c089fe) #1 make_unique<net::NetworkChangeNotifier::DisableForTest> buildtools/third_party/libc++/trunk/include/memory:3131:32 (unit_tests+0x9b04794) #2 content::(anonymous namespace)::NetworkChangeNotifierDisabler::OnTestCaseStart(testing::TestSuite const&) content/public/test/content_test_suite_base.cc:56 (unit_tests+0x9b04794) #3 testing::internal::TestEventRepeater::OnTestCaseStart(testing::TestSuite const&) third_party/googletest/src/googletest/src/gtest.cc:3424:1 (unit_tests+0x630a500) #4 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2796:13 (unit_tests+0x6305b15) #5 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #6 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #7 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #8 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #9 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #10 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #11 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #12 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #13 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #14 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #15 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #16 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #17 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #18 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Previous read of size 8 at 0x562112c565a0 by thread T15: #0 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc (unit_tests+0x9c07d81) #1 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (unit_tests+0x9c10474) #2 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (unit_tests+0x9c10474) #3 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (unit_tests+0x9c10474) #4 base::internal::Invoker<base::internal::BindState<void (*)(net::DnsConfig const&)>, void (net::DnsConfig const&)>::Run(base::internal::BindStateBase*, net::DnsConfig const&) base/bind_internal.h:654 (unit_tests+0x9c10474) #5 Run base/callback.h:136:12 (unit_tests+0x6646723) #6 OnCompleteConfig net/dns/dns_config_service.cc:158 (unit_tests+0x6646723) #7 net::DnsConfigService::OnHostsRead(std::__1::unordered_map<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress, net::DnsHostsKeyHash, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, std::__1::allocator<std::__1::pair<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> const, net::IPAddress> > > const&) net/dns/dns_config_service.cc:108 (unit_tests+0x6646723) #8 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:378:17 (unit_tests+0x66778cc) #9 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (unit_tests+0x6675cab) #10 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (unit_tests+0x6675f5a) #11 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (unit_tests+0x6675f5a) #12 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (unit_tests+0x6675f5a) #13 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (unit_tests+0x6675f5a) #14 Run base/callback.h:97:12 (unit_tests+0xa8bde18) #15 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (unit_tests+0xa8bde18) #16 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (unit_tests+0xa8bdf07) #17 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (unit_tests+0xa8bdf07) #18 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (unit_tests+0xa8bdf07) #19 base::internal::Invoker<base::internal::BindState<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (unit_tests+0xa8bdf07) #20 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #21 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #22 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #23 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:220:7 (unit_tests+0xa89291b) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa892fee) #25 base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_libevent.cc:208:55 (unit_tests+0xa91f9c4) #26 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #27 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #28 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #29 base::Thread::Run(base::RunLoop*) base/threading/thread.cc:242:13 (unit_tests+0xa8c13a9) #30 base::Thread::ThreadMain() base/threading/thread.cc:312:3 (unit_tests+0xa8c1661) #31 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Location is global 'net::(anonymous namespace)::g_network_change_notifier' of size 8 at 0x562112c565a0 (unit_tests+0x000012b845a0) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race net/base/network_change_notifier.cc:838:29 in net::NetworkChangeNotifier::DisableForTest::DisableForTest() ================== [ RUN ] ChromeAutocompleteSchemeClassifierTest.NormalSearch [ OK ] ChromeAutocompleteSchemeClassifierTest.NormalSearch (29 ms) [ RUN ] ChromeAutocompleteSchemeClassifierTest.HttpUrl [ OK ] ChromeAutocompleteSchemeClassifierTest.HttpUrl (362 ms) [ RUN ] ChromeAutocompleteSchemeClassifierTest.BlockedScheme [ OK ] ChromeAutocompleteSchemeClassifierTest.BlockedScheme (29 ms) [----------] 3 tests from ChromeAutocompleteSchemeClassifierTest (426 ms total) [----------] 1 test from SearchProviderTest [ RUN ] SearchProviderTest.QueryDefaultProvider [ OK ] SearchProviderTest.QueryDefaultProvider (748 ms) [----------] 1 test from SearchProviderTest (750 ms total) [----------] Global test environment tear-down [==========] 10 tests from 4 test suites ran. (5161 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 11 warnings [44/4713] UserTypeFilterTest.EmptyFilter (48 ms) [ RUN ] ChromeAutocompleteProviderClientTest.StartServiceWorker [ OK ] ChromeAutocompleteProviderClientTest.StartServiceWorker (188 ms) [ RUN ] ChromeAutocompleteProviderClientTest.DontStartServiceWorkerIfSuggestDisabled ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 8 at 0x562112c5d2f8 by thread T15: #0 base::TaskScheduler::GetInstance() base/task/task_scheduler/task_scheduler.cc:85:10 (unit_tests+0xa8995fa) #1 GetTaskExecutorForTraits base/task/post_task.cc:50:32 (unit_tests+0xa878cec) #2 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:85 (unit_tests+0xa878cec) #3 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #4 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #6 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #7 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #8 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #9 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #10 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #11 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #12 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x562112c5d2f8 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+0xa899681) #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:374:3 (unit_tests+0x9a05f55) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is global 'base::(anonymous namespace)::g_task_scheduler' of size 8 at 0x562112c5d2f8 (unit_tests+0x000012b8b2f8) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) 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=6830) Read of size 8 at 0x7b640001d100 by thread T15: #0 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d17) #1 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #2 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #4 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #5 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #6 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #7 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #8 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #9 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #10 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d100 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) 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=6830) Atomic read of size 1 at 0x7b640001d238 by thread T15: #0 __tsan_atomic8_load /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:524:3 (unit_tests+0x3a9ac8c) #1 __cxx_atomic_load<unsigned char> buildtools/third_party/libc++/trunk/include/atomic:970:12 (unit_tests+0xa89a79b) #2 load buildtools/third_party/libc++/trunk/include/atomic:1487 (unit_tests+0xa89a79b) #3 IsSet base/synchronization/atomic_flag.h:34 (unit_tests+0xa89a79b) #4 SetUserBlockingPriorityIfNeeded base/task/task_scheduler/task_scheduler_impl.cc:338 (unit_tests+0xa89a79b) #5 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:161 (unit_tests+0xa89a79b) #6 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #7 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #8 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #10 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #11 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #12 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #13 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #14 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #15 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #16 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d238 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/atomic:970:12 in __cxx_atomic_load<unsigned char> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 8 at 0x7b640001d118 by thread T15: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa89aef3) #1 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257 (unit_tests+0xa89aef3) #2 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #3 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #4 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #5 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #7 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #8 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #9 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #10 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #11 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #12 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #13 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b640001d118 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 1280 at 0x7b640001d100 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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+0x9a05ef1) #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:374 (unit_tests+0x9a05ef1) #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+0x3acf5fd) #4 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #5 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #6 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #7 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #8 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #16 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #17 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #18 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #19 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #20 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #21 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #23 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #24 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Read of size 8 at 0x7b5c00000e10 by thread T15: #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (unit_tests+0xa8adcb3) #1 BeforePostTask base/task/task_scheduler/task_tracker.cc (unit_tests+0xa8adcb3) #2 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:434 (unit_tests+0xa8adcb3) #3 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (unit_tests+0xa89af1a) #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:10 (unit_tests+0xa89a89e) #5 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #6 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #7 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #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+0xa8bda82) #9 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #10 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #11 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #12 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #13 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #14 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #15 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b5c00000e10 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 776 at 0x7b5c00000e00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:331:21 (unit_tests+0x9a059f6) #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+0x3acf5fd) #3 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #4 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #5 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #6 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #7 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #8 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #9 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #10 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #11 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #12 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #13 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #14 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #15 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #16 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #17 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #18 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #19 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #20 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #23 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Thread T15 'NetworkChangeNotifier' (tid=6877, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (unit_tests+0x3a5104b) #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+0xa919b07) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (unit_tests+0xa919a05) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (unit_tests+0xa8c0e60) #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+0x9c101af) #5 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:212:14 (unit_tests+0x9c05af7) #6 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:104:29 (unit_tests+0xcb6b05a) #7 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:294 (unit_tests+0xcb6b05a) #8 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>, bool) services/network/network_service.cc:254:5 (unit_tests+0xcb6a9f3) #9 content::GetNetworkServiceImpl() content/browser/network_service_instance.cc:239:29 (unit_tests+0x78b3bc3) #10 content::StoragePartitionImpl::NetworkContextOwner::Initialize(mojo::InterfaceRequest<network::mojom::NetworkContext>, scoped_refptr<net::URLRequestContextGetter>) content/browser/storage_partition_impl.cc:288:9 (unit_tests+0x7b19d35) #11 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:499:12 (unit_tests+0x7b1d913) #12 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:599 (unit_tests+0x7b1d913) #13 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:672 (unit_tests+0x7b1d913) #14 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:641 (unit_tests+0x7b1d913) #15 Run base/callback.h:97:12 (unit_tests+0xa8780a1) #16 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (unit_tests+0xa8780a1) #17 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (unit_tests+0xa892c25) #18 DoWork base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:255:7 (unit_tests+0xa8930fd) #19 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8930fd) #20 HandleDispatch base/message_loop/message_pump_glib.cc:263:25 (unit_tests+0xa820f57) #21 base::(anonymous namespace)::WorkSourceDispatch(_GSource*, int (*)(void*), void*) base/message_loop/message_pump_glib.cc:109 (unit_tests+0xa820f57) #22 g_main_context_dispatch <null> (libglib-2.0.so.0+0x48e13) #23 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (unit_tests+0xa8935e0) #24 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (unit_tests+0xa8935e0) #25 base::RunLoop::Run() base/run_loop.cc:157:14 (unit_tests+0xa850f8e) #26 RunThisRunLoop content/public/test/test_utils.cc:126:13 (unit_tests+0x9b4ebb3) #27 content::RunAllPendingInMessageLoop(content::BrowserThread::ID) content/public/test/test_utils.cc:155 (unit_tests+0x9b4ebb3) #28 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:553:5 (unit_tests+0x99f639f) #29 TestingProfile::~TestingProfile() chrome/test/base/testing_profile.cc:528:35 (unit_tests+0x99f6679) #30 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (unit_tests+0x3adca97) #31 reset buildtools/third_party/libc++/trunk/include/memory:2651 (unit_tests+0x3adca97) #32 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (unit_tests+0x3adca97) #33 ~ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42 (unit_tests+0x3adca97) #34 ChromeAutocompleteProviderClientTest_StartServiceWorker_Test::~ChromeAutocompleteProviderClientTest_StartServiceWorker_Test() chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:71 (unit_tests+0x3adca97) #35 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x630516e) #36 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (unit_tests+0x630516e) #37 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #38 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #39 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #40 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #41 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #42 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #43 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #44 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #45 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #46 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #47 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #48 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #49 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (unit_tests+0x9a0f47d) #50 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #51 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) SUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2620:19 in operator-> ================== ================== WARNING: ThreadSanitizer: data race (pid=6830) Atomic read of size 4 at 0x7b040002ef00 by thread T15: #0 __tsan_atomic32_load /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc:534:3 (unit_tests+0x3a9af8c) #1 __cxx_atomic_load<int> buildtools/third_party/libc++/trunk/include/atomic:964:12 (unit_tests+0xa8add32) #2 load buildtools/third_party/libc++/trunk/include/atomic:1483 (unit_tests+0xa8add32) #3 NoBarrier_Load base/atomicops_internals_portable.h:130 (unit_tests+0xa8add32) #4 HasShutdownStarted base/task/task_scheduler/task_tracker.cc:185 (unit_tests+0xa8add32) #5 BeforePostTask base/task/task_scheduler/task_tracker.cc:788 (unit_tests+0xa8add32) #6 base::internal::TaskTracker::WillPostTask(base::internal::Task*, base::TaskShutdownBehavior) base/task/task_scheduler/task_tracker.cc:434 (unit_tests+0xa8add32) #7 base::internal::TaskSchedulerImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/task_scheduler/task_scheduler_impl.cc:257:23 (unit_tests+0xa89af1a) #8 base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/task_scheduler/task_scheduler_impl.cc:162:10 (unit_tests+0xa89a89e) #9 base::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/post_task.cc:86:9 (unit_tests+0xa878d31) #10 PostTaskWithTraits base/task/post_task.cc:76:10 (unit_tests+0xa8792ee) #11 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27 (unit_tests+0xa8792ee) #12 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+0xa8bda82) #13 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:94:55 (unit_tests+0xa878e29) #14 net::SerialWorker::WorkNow() net/dns/serial_worker.cc:31:7 (unit_tests+0x6675c16) #15 net::internal::DnsConfigServicePosix::ReadNow() net/dns/dns_config_service_posix.cc:408:19 (unit_tests+0x6676485) #16 net::DnsConfigService::WatchConfig(base::RepeatingCallback<void (net::DnsConfig const&)> const&) net/dns/dns_config_service.cc:39:3 (unit_tests+0x6645ebd) #17 net::NetworkChangeNotifierLinux::Thread::Init() net/base/network_change_notifier_linux.cc:69:24 (unit_tests+0x9c10040) #18 base::Thread::ThreadMain() base/threading/thread.cc:301:3 (unit_tests+0xa8c15f9) #19 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (unit_tests+0xa91a074) Previous write of size 8 at 0x7b040002ef00 by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:287:14 (unit_tests+0xa8abff5) #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:282:7 (unit_tests+0xa8abf81) #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+0xa919399) #4 TestTaskTracker base/test/scoped_task_environment.cc:623:7 (unit_tests+0x9a05a0d) #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:331 (unit_tests+0x9a05a0d) #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+0x3acf5fd) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #8 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #9 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #10 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #18 base::TestSuite::Run() base/test/test_suite.cc:316 (unit_tests+0x9a0c172) #19 content::UnitTestTestSuite::Run() content/public/test/unittest_test_suite.cc:82:23 (unit_tests+0x9b538f2) #20 Invoke<int (content::UnitTestTestSuite::*)(), content::UnitTestTestSuite *> base/bind_internal.h:499:12 (unit_tests+0x99fce58) #21 MakeItSo<int (content::UnitTestTestSuite::*const &)(), content::UnitTestTestSuite *> base/bind_internal.h:599 (unit_tests+0x99fce58) #22 RunImpl<int (content::UnitTestTestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<content::UnitTestTestSuite> > &, 0> base/bind_internal.h:672 (unit_tests+0x99fce58) #23 base::internal::Invoker<base::internal::BindState<int (content::UnitTestTestSuite::*)(), base::internal::UnretainedWrapper<content::UnitTestTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (unit_tests+0x99fce58) #24 Run base/callback.h:97:12 (unit_tests+0x9a0f47d) #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+0x9a0f47d) #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (unit_tests+0x9a0f2e0) #27 main chrome/test/base/run_all_unittests.cc:30:10 (unit_tests+0x99fcd84) Location is heap block of size 4 at 0x7b040002ef00 allocated by main thread: #0 operator new(unsigned long) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:64:3 (unit_tests+0x3ac0a8b) #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:287:14 (unit_tests+0xa8abff5) #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:282:7 (unit_tests+0xa8abf81) #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+0xa919399) #4 TestTaskTracker base/test/scoped_task_environment.cc:623:7 (unit_tests+0x9a05a0d) #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:331 (unit_tests+0x9a05a0d) #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+0x3acf5fd) #7 content::TestBrowserThreadBundle::TestBrowserThreadBundle<void>() content/public/test/test_browser_thread_bundle.h:131:13 (unit_tests+0x3acf597) #8 ChromeAutocompleteProviderClientTest chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:42:7 (unit_tests+0x3add132) #9 ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test chrome/browser/autocomplete/chrome_autocomplete_provider_client_unittest.cc:89 (unit_tests+0x3add132) #10 testing::internal::TestFactoryImpl<ChromeAutocompleteProviderClientTest_DontStartServiceWorkerIfSuggestDisabled_Test>::CreateTest() third_party/googletest/src/googletest/include/gtest/internal/gtest-internal.h:460 (unit_tests+0x3add132) #11 HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test *> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6304f2f) #12 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2665 (unit_tests+0x6304f2f) #13 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (unit_tests+0x6305cb6) #14 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (unit_tests+0x6317536) #15 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (unit_tests+0x6316d19) #16 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (unit_tests+0x6316d19) #17 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (unit_tests+0x9a0c172) #18 base::TestSuite::Ru