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

{ "shards": [ { "bot_dimensions": [ { "key": "caches", "value": [ "swarming_module_cache_vpython" ] }, { "key": "cores", "value": [ "8" ] }, { "key": "cpu", "value": [ "x86", "x86-64", "x86-64-Broadwell_GCE", "x86-64-avx2" ] }, { "key": "gce", "value": [ "1" ] }, { "key": "gpu", "value": [ "none" ] }, { "key": "id", "value": [ "chrome-xenial-us-west1-a-11-zykn" ] }, { "key": "image", "value": [ "chrome-xenial-19052201-9cb74617499" ] }, { "key": "inside_docker", "value": [ "0" ] }, { "key": "kvm", "value": [ "1" ] }, { "key": "locale", "value": [ "en_US.UTF-8" ] }, { "key": "machine_type", "value": [ "n1-standard-8" ] }, { "key": "os", "value": [ "Linux", "Ubuntu", "Ubuntu-16.04" ] }, { "key": "pool", "value": [ "Chrome" ] }, { "key": "python", "value": [ "2.7.12" ] }, { "key": "server_version", "value": [ "4303-bae210e" ] }, { "key": "zone", "value": [ "us", "us-west", "us-west1", "us-west1-a" ] } ], "bot_id": "chrome-xenial-us-west1-a-11-zykn", "bot_version": "ec327ca04645110c43b092f9eb2d259c2461902ca791b7bcf390931d49bda575", "cipd_pins": { "client_package": { "package_name": "infra/tools/cipd/linux-amd64", "version": "nFftZl2kFquaI2EUmPGwzbc5sIbCocl9L55UeASqlLsC" }, "packages": [ { "package_name": "infra/python/cpython/linux-amd64", "path": ".swarming_module", "version": "46c0c897ca0f053799ee41fd148bb7a47232df47" }, { "package_name": "infra/tools/luci/logdog/butler/linux-amd64", "path": ".swarming_module", "version": "2737ea8ed9b958f4d5aa9ffe106115a649ada241" }, { "package_name": "infra/tools/luci/vpython-native/linux-amd64", "path": ".swarming_module", "version": "tfTmX4aGCfFtfQucj_nEfwiNisK0RmpKrITkZMBBq3cC" }, { "package_name": "infra/tools/luci/vpython/linux-amd64", "path": ".swarming_module", "version": "bmnYyAg9mbM_538s1dIP1hZZmOtc8C7ssF41ztN2cr0C" } ] }, "completed_ts": "2019-05-25T10:46:27.361016", "cost_saved_usd": 0.022161020601092155, "created_ts": "2019-05-25T14:54:51.667494", "deduped_from": "450767ead7b76f11", "duration": 175.50675201416016, "modified_ts": "2019-05-25T14:54:51.744653", "name": "services_unittests/Ubuntu-16.04/c49939444b/Linux TSan Tests/38948", "output": "/b/s/swarming_bot.1.zip/third_party/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.\nAdditional test environment:\n CHROME_DEVEL_SANDBOX=/opt/chromium/chrome_sandbox\n CHROME_HEADLESS=1\n G_SLICE=always-malloc\n LANG=en_US.UTF-8\n NSS_DISABLE_ARENA_FREE_LIST=1\n NSS_DISABLE_UNLOAD=1\n TSAN_OPTIONS=symbolize=1 external_symbolizer_path=/b/s/w/ir/third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer handle_abort=1\nCommand: ./services_unittests --test-launcher-bot-mode --cfi-diag=0 --test-launcher-summary-output=/b/s/w/iozti3CM/output.json --test-launcher-print-test-stdio=always --no-sandbox\n\nOpenbox-Message: Unable to find a valid menu file \"/var/lib/openbox/debian-menu.xml\"\nIMPORTANT DEBUGGING NOTE: batches of tests are run inside their\nown process. For debugging a test inside a debugger, use the\n--gtest_filter=<your_test_name> flag along with\n--single-process-tests.\nUsing sharding settings from environment. This is shard 0/1\nUsing 8 parallel jobs.\n[1/3004] IdentityManagerTest.CallbackSentOnUpdateToErrorStateOfRefreshTokenForAccount (2 ms)\n[2/3004] IdentityManagerTest.GetErrorStateOfRefreshTokenForAccount (2 ms)\n[3/3004] IdentityManagerTest.RemoveAccessTokenFromCache (1 ms)\n[4/3004] IdentityManagerTest.CreateAccessTokenFetcher (1 ms)\n[5/3004] IdentityManagerTest.CreateAccessTokenFetcherWithCustomURLLoaderFactory (2 ms)\n[6/3004] IdentityManagerTest.ObserveAccessTokenFetch (1 ms)\n[7/3004] IdentityManagerTest.ObserveAccessTokenRequestCompletionWithoutRefreshToken (1 ms)\n[8/3004] IdentityManagerTest.ObserveAccessTokenRequestCompletionWithRefreshToken (1 ms)\n[9/3004] IdentityManagerTest.ObserveAccessTokenRequestCompletionAfterRevokingRefreshToken (1 ms)\n[10/3004] IdentityManagerTest.GetAccountsCookieMutator (1 ms)\n[11/3004] IdentityAccessorImplTest.GetAccessTokenNotSignedIn (16 ms)\n[12/3004] IdentityAccessorImplTest.GetAccessTokenSignedIn (13 ms)\n[13/3004] AccessTokenFetcherTest.OneShotShouldCallBackOnFulfilledRequest (1 ms)\n[14/3004] AccessTokenFetcherTest.WaitUntilAvailableShouldCallBackOnFulfilledRequest (2 ms)\n[15/3004] AccessTokenFetcherTest.WaitUntilAvailableShouldCallBackOnFulfilledRequestAfterTokenAvailable (1 ms)\n[16/3004] AccessTokenFetcherTest.WaitUntilAvailableShouldIgnoreRefreshTokenForDifferentAccount (2 ms)\n[17/3004] AccessTokenFetcherTest.ShouldNotReplyIfDestroyed (1 ms)\n[18/3004] AccessTokenFetcherTest.ReturnsErrorWhenAccountIsUnknown (1 ms)\n[19/3004] AccessTokenFetcherTest.ReturnsErrorWhenAccountHasNoRefreshToken (1 ms)\n[20/3004] AccessTokenFetcherTest.CanceledAccessTokenRequest (1 ms)\n[21/3004] IdentityManagerTest.CallbackSentOnSuccessfulAdditionOfAccountToCookie (2 ms)\n[22/3004] IdentityManagerTest.CallbackSentOnFailureAdditionOfAccountToCookie (1 ms)\n[23/3004] IdentityManagerTest.CallbackSentOnSetAccountsInCookieCompleted_Success (1 ms)\n[24/3004] IdentityManagerTest.CallbackSentOnSetAccountsInCookieCompleted_Failure (1 ms)\n[25/3004] IdentityManagerTest.CallbackSentOnAccountsCookieDeletedByUserAction (4 ms)\n[26/3004] IdentityManagerTest.OnNetworkInitialized (5 ms)\n[27/3004] IdentityManagerTest.BatchChangeObserversAreNotifiedOnCredentialsUpdate (2 ms)\n[28/3004] IdentityManagerTest.FindAccountInfoForAccountWithRefreshTokenByAccountId (1 ms)\n[29/3004] IdentityManagerTest.FindAccountInfoForAccountWithRefreshTokenByEmailAddress (1 ms)\n[30/3004] IdentityManagerTest.FindAccountInfoForAccountWithRefreshTokenByGaiaId (1 ms)\n[31/3004] AccessTokenFetcherTest.RefreshTokenRevoked (2 ms)\n[32/3004] AccessTokenFetcherTest.FailedAccessTokenRequest (2 ms)\n[33/3004] AccessTokenFetcherTest.MultipleRequestsForSameAccountFulfilled (1 ms)\n[34/3004] AccessTokenFetcherTest.MultipleRequestsForDifferentAccountsFulfilled (2 ms)\n[35/3004] AccessTokenFetcherTest.MultipleRequestsForDifferentAccountsCanceledAndFulfilled (2 ms)\n[36/3004] AccessTokenFetcherTest.FetcherWithCustomURLLoaderFactory (2 ms)\n[37/3004] IdentityManagerTest.PrimaryAccountInfoAtStartup (2 ms)\n[38/3004] IdentityManagerTest.PrimaryAccountInfoAfterSignin (2 ms)\n[39/3004] IdentityManagerTest.PrimaryAccountInfoAfterSigninAndSignout (3 ms)\n[40/3004] IdentityManagerTest.PrimaryAccountInfoAfterSigninAndRefreshTokenRemoval (2 ms)\n[41/3004] IdentityManagerTest.DeprecatedLoadCredentialsForSupervisedUser (2 ms)\n[42/3004] IdentityManagerTest.CallbackSentOnPrimaryAccountRefreshTokenUpdateWithValidToken (1 ms)\n[43/3004] IdentityManagerTest.CallbackSentOnPrimaryAccountRefreshTokenUpdateWithInvalidToken (2 ms)\n[44/3004] IdentityManagerTest.CallbackSentOnPrimaryAccountRefreshTokenRemoval (2 ms)\n[45/3004] IdentityManagerTest.CallbackSentOnSecondaryAccountRefreshTokenUpdateWithValidToken (2 ms)\n[46/3004] IdentityManagerTest.CallbackSentOnSecondaryAccountRefreshTokenUpdateWithInvalidToken (2 ms)\n[47/3004] IdentityManagerTest.CallbackSentOnSecondaryAccountRefreshTokenRemoval (2 ms)\n[48/3004] IdentityManagerTest.CallbackSentOnSecondaryAccountRefreshTokenUpdateWithValidTokenWhenNoPrimaryAccount (3 ms)\n[49/3004] IdentityManagerTest.CallbackSentOnSecondaryAccountRefreshTokenUpdateWithInvalidTokenWhenNoPrimaryAccount (2 ms)\n[50/3004] IdentityManagerTest.CallbackSentOnSecondaryAccountRefreshTokenRemovalWhenNoPrimaryAccount (3 ms)\n[51/3004] IdentityManagerTest.HasPrimaryAccount (2 ms)\n[52/3004] IdentityManagerTest.GetAccountsInteractionWithPrimaryAccount (1 ms)\n[53/3004] IdentityManagerTest.QueryingOfRefreshTokensInteractionWithPrimaryAccount (2 ms)\n[54/3004] IdentityManagerTest.QueryingOfRefreshTokensReflectsEmptyInitialState (1 ms)\n[55/3004] IdentityManagerTest.GetAccountsInteractionWithSecondaryAccounts (2 ms)\n[56/3004] IdentityManagerTest.HasPrimaryAccountWithRefreshTokenInteractionWithSecondaryAccounts (3 ms)\n[57/3004] IdentityManagerTest.HasAccountWithRefreshTokenInteractionWithSecondaryAccounts (2 ms)\n[58/3004] IdentityManagerTest.GetAccountsInteractionBetweenPrimaryAndSecondaryAccounts (1 ms)\n[59/3004] IdentityManagerTest.HasPrimaryAccountWithRefreshTokenInteractionBetweenPrimaryAndSecondaryAccounts (2 ms)\n[60/3004] IdentityManagerTest.HasAccountWithRefreshTokenInteractionBetweenPrimaryAndSecondaryAccounts (2 ms)\n[61/3004] IdentityManagerTest.CallbackSentOnRefreshTokenRemovalOfUnknownAccount (1 ms)\n[62/3004] IdentityManagerTest.IdentityManagerGetsTokensLoadedEvent (1 ms)\n[63/3004] IdentityManagerTest.CallbackSentOnUpdateToAccountsInCookieWithNoAccounts (9 ms)\n[64/3004] IdentityManagerTest.CallbackSentOnUpdateToAccountsInCookieWithOneAccount (6 ms)\n[65/3004] IdentityManagerTest.CallbackSentOnUpdateToAccountsInCookieWithTwoAccounts (7 ms)\n[66/3004] IdentityManagerTest.CallbackSentOnUpdateToSignOutAccountsInCookie (23 ms)\n[67/3004] IdentityManagerTest.CallbackSentOnUpdateToAccountsInCookieWithStaleAccounts (8 ms)\n[68/3004] IdentityManagerTest.GetAccountsInCookieJarWithNoAccounts (5 ms)\n[69/3004] IdentityManagerTest.GetAccountsInCookieJarWithOneAccount (5 ms)\n[70/3004] IdentityManagerTest.GetAccountsInCookieJarWithTwoAccounts (7 ms)\n[71/3004] ContentServiceTest.NavigableContentsCreation (17 ms)\n[72/3004] IdentityAccessorImplTest.GetPrimaryAccountInfoNotSignedIn (36 ms)\n[73/3004] IdentityAccessorImplTest.GetPrimaryAccountInfoSignedInNoRefreshToken (23 ms)\n[74/3004] IdentityAccessorImplTest.GetPrimaryAccountInfoSignedInRefreshToken (15 ms)\n[75/3004] IdentityAccessorImplTest.GetPrimaryAccountWhenAvailableSignedIn (15 ms)\n[76/3004] IdentityAccessorImplTest.GetPrimaryAccountWhenAvailableSignInLater (11 ms)\n[77/3004] IdentityAccessorImplTest.GetPrimaryAccountWhenAvailableTokenAvailableLater (20 ms)\n[78/3004] IdentityAccessorImplTest.GetPrimaryAccountWhenAvailableAuthenticationAvailableLater (22 ms)\n[79/3004] IdentityAccessorImplTest.GetPrimaryAccountWhenAvailableOverlappingCalls (15 ms)\n[80/3004] IdentityAccessorImplTest.GetPrimaryAccountWhenAvailableRefreshTokenHasAuthError (14 ms)\n[81/3004] PrimaryAccountAccessTokenFetcherTest.OneShotCallsBackWhenSignedOut (2 ms)\n[82/3004] PrimaryAccountAccessTokenFetcherTest.OneShotCallsBackWhenNoRefreshToken (1 ms)\n[83/3004] PrimaryAccountAccessTokenFetcherTest.WaitAndRetryNoCallbackWhenSignedOut (1 ms)\n[84/3004] PrimaryAccountAccessTokenFetcherTest.ShouldWaitForSignIn (2 ms)\n[85/3004] PrimaryAccountAccessTokenFetcherTest.ShouldWaitForRefreshToken (1 ms)\n[86/3004] PrimaryAccountAccessTokenFetcherTest.ShouldIgnoreRefreshTokensForOtherAccounts (2 ms)\n[87/3004] PrimaryAccountAccessTokenFetcherTest.OneShotCanceledAccessTokenRequest (2 ms)\n[88/3004] PrimaryAccountAccessTokenFetcherTest.WaitAndRetryCanceledAccessTokenRequest (2 ms)\n[89/3004] PrimaryAccountAccessTokenFetcherTest.ShouldRetryCanceledAccessTokenRequestOnlyOnce (1 ms)\n[90/3004] PrimaryAccountAccessTokenFetcherTest.ShouldNotRetryCanceledAccessTokenRequestIfSignedOut (2 ms)\n[91/3004] IdentityManagerTest.AreRefreshTokensLoaded (2 ms)\n[92/3004] IdentityManagerTest.AccountIdMigration_DoneOnInitialization (1 ms)\n[93/3004] IdentityManagerTest.ObserveOnAccountUpdated (1 ms)\n[94/3004] IdentityManagerTest.TestOnAccountRemovedWithInfoCallback (2 ms)\n[95/3004] IdentityManagerTest.TestPickAccountIdForAccount (1 ms)\n[96/3004] IdentityManagerTest.FindExtendedAccountInfoForAccount (1 ms)\n[97/3004] IdentityTestEnvironmentTest.IdentityTestEnvironmentCancelsPendingRequestsOnDestruction (10 ms)\n[98/3004] PrimaryAccountAccessTokenFetcherTest.OneShotShouldReturnAccessToken (1 ms)\n[99/3004] PrimaryAccountAccessTokenFetcherTest.WaitAndRetryShouldReturnAccessToken (1 ms)\n[100/3004] PrimaryAccountAccessTokenFetcherTest.ShouldNotReplyIfDestroyed (2 ms)\n[101/3004] PrimaryAccountAccessTokenFetcherTest.ShouldNotRetryCanceledAccessTokenRequestIfRefreshTokenRevoked (4 ms)\n[102/3004] PrimaryAccountAccessTokenFetcherTest.ShouldNotRetryFailedAccessTokenRequest (2 ms)\n[103/3004] MetricsUtilsTest.GetLinearBucketMin (0 ms)\n[104/3004] MetricsUtilsTest.GetExponentialBucketMinForUserTiming (1 ms)\n[105/3004] UkmSourceIdTest.AssignSourceIds (0 ms)\n[106/3004] UkmSourceIdTest.ConvertToSourceId (0 ms)\n[107/3004] ChunkedDataPipeUploadDataStreamTest.ReadBeforeDataReady (27 ms)\n[108/3004] ChunkedDataPipeUploadDataStreamTest.ReadAfterDataReady (20 ms)\n[109/3004] ChunkedDataPipeUploadDataStreamTest.MultipleReadThrough (6 ms)\n[110/3004] ChunkedDataPipeUploadDataStreamTest.MultiplePartialReadThroughWithKnownSize (12 ms)\n[111/3004] ChunkedDataPipeUploadDataStreamTest.MultiplePartialReadThroughSizeNotKnown (15 ms)\n[112/3004] ChunkedDataPipeUploadDataStreamTest.GetSizeSucceedsBeforeInit (6 ms)\n[113/3004] ChunkedDataPipeUploadDataStreamTest.GetSizeSucceedsAfterReset (5 ms)\n[114/3004] ChunkedDataPipeUploadDataStreamTest.GetSizeFailsBeforeInit (5 ms)\n[115/3004] ChunkedDataPipeUploadDataStreamTest.GetSizeFailsAfterReset (2 ms)\n[116/3004] ChunkedDataPipeUploadDataStreamTest.CloseBodyPipeBeforeSuccess1 (3 ms)\n[117/3004] ChunkedDataPipeUploadDataStreamTest.CloseBodyPipeBeforeSuccess2 (2 ms)\n[118/3004] ChunkedDataPipeUploadDataStreamTest.CloseBodyPipeBeforeSuccess3 (2 ms)\n[119/3004] ChunkedDataPipeUploadDataStreamTest.CloseBodyPipeBeforeTruncation1 (2 ms)\n[120/3004] ChunkedDataPipeUploadDataStreamTest.CloseBodyPipeBeforeTruncation2 (2 ms)\n[121/3004] ChunkedDataPipeUploadDataStreamTest.CloseBodyPipeBeforeTruncation3 (4 ms)\n[122/3004] ChunkedDataPipeUploadDataStreamTest.CloseBodyPipeBeforeFailure1 (3 ms)\n[123/3004] ChunkedDataPipeUploadDataStreamTest.CloseBodyPipeBeforeFailure2 (4 ms)\n[124/3004] ChunkedDataPipeUploadDataStreamTest.CloseBodyPipeBeforeFailure3 (3 ms)\n[125/3004] ChunkedDataPipeUploadDataStreamTest.CloseBodyPipeBeforeCloseGetter1 (3 ms)\n[126/3004] ChunkedDataPipeUploadDataStreamTest.CloseBodyPipeBeforeCloseGetter2 (3 ms)\n[127/3004] ChunkedDataPipeUploadDataStreamTest.CloseBodyPipeBeforeCloseGetter3 (3 ms)\n[128/3004] ChunkedDataPipeUploadDataStreamTest.ExtraBytes1 (3 ms)\n[129/3004] ChunkedDataPipeUploadDataStreamTest.ExtraBytes2 (4 ms)\n[130/3004] ChunkedDataPipeUploadDataStreamTest.ClosePipeGetterBeforeInit (4 ms)\n[131/3004] ChunkedDataPipeUploadDataStreamTest.ClosePipeGetterWithoutCallingGetSizeCallbackNoPendingRead (4 ms)\n[132/3004] ChunkedDataPipeUploadDataStreamTest.ClosePipeGetterWithoutCallingGetSizeCallbackPendingRead (4 ms)\n[133/3004] ChunkedDataPipeUploadDataStreamTest.ClosePipeGetterAfterCallingGetSizeCallback (3 ms)\n[134/3004] CookieManagerTest.GetAllCookies (10 ms)\n[135/3004] CookieManagerTest.GetCookieList (9 ms)\n[136/3004] CookieManagerTest.GetCookieListHttpOnly (10 ms)\n[137/3004] CookieManagerTest.GetCookieListSameSite (45 ms)\n[138/3004] CookieManagerTest.GetCookieListAccessTime (24 ms)\n[139/3004] CookieManagerTest.DeleteCanonicalCookie (23 ms)\n[140/3004] CookieManagerTest.DeleteThroughSet (13 ms)\n[141/3004] CookieManagerTest.ConfirmSecureSetFails (25 ms)\n[142/3004] CookieManagerTest.ConfirmHttpOnlySetFails (18 ms)\n[143/3004] CookieManagerTest.ConfirmSecureOverwriteFails (15 ms)\n[144/3004] CookieManagerTest.ConfirmHttpOnlyOverwriteFails (10 ms)\n[145/3004] CookieManagerTest.DeleteEverything (22 ms)\n[146/3004] CookieManagerTest.DeleteByTime (7 ms)\n[147/3004] CookieManagerTest.DeleteByExcludingDomains (8 ms)\n[148/3004] CookieManagerTest.DeleteByIncludingDomains (7 ms)\n[149/3004] CookieManagerTest.DeleteDetails_eTLD (11 ms)\n[150/3004] CookieManagerTest.DeleteDetails_HostDomain (6 ms)\n[151/3004] CookieManagerTest.DeleteDetails_eTLDvsPrivateRegistry (26 ms)\n[152/3004] CookieManagerTest.DeleteDetails_PrivateRegistry (32 ms)\n[153/3004] CookieManagerTest.DeleteDetails_IgnoredFields (12 ms)\n[154/3004] CookieManagerTest.DeleteDetails_Consumer (52 ms)\n[155/3004] CookieManagerTest.DeleteByName (7 ms)\n[156/3004] CookieManagerTest.DeleteByURL (8 ms)\n[157/3004] CookieManagerTest.DeleteBySessionStatus (7 ms)\n[158/3004] CookieManagerTest.DeleteByAll (8 ms)\n[159/3004] CookieManagerTest.AddCookieChangeListener (11 ms)\n[160/3004] CookieManagerTest.AddGlobalChangeListener (12 ms)\n[161/3004] SessionCleanupCookieManagerTest.ForceKeepSessionState (57 ms)\n[162/3004] SessionCleanupCookieManagerTest.HttpCookieAllowedOnHttps (65 ms)\n[163/3004] CookieSettingsTest.GetCookieSettingDefault (0 ms)\n[164/3004] CookieSettingsTest.GetCookieSetting (0 ms)\n[165/3004] CookieSettingsTest.GetCookieSettingMustMatchBothPatterns (0 ms)\n[166/3004] CookieSettingsTest.GetCookieSettingGetsFirstSetting (1 ms)\n[167/3004] CookieSettingsTest.GetCookieSettingDontBlockThirdParty (0 ms)\n[168/3004] CookieSettingsTest.GetCookieSettingBlockThirdParty (0 ms)\n[169/3004] CookieSettingsTest.GetCookieSettingDontBlockThirdPartyWithException (0 ms)\n[170/3004] CookieSettingsTest.CreateDeleteCookieOnExitPredicateNoSettings (0 ms)\n[171/3004] CookieManagerTest.ListenerDestroyed (11 ms)\n[172/3004] CookieManagerTest.ServiceDestructVisible (5 ms)\n[173/3004] CookieManagerTest.CloningAndClientDestructVisible (7 ms)\n[174/3004] CookieManagerTest.BlockThirdPartyCookies (7 ms)\n[175/3004] FlushableCookieManagerTest.FlushCookieStore (9 ms)\n[176/3004] FlushableCookieManagerTest.DeletionFilterToInfo (6 ms)\n[177/3004] SessionCleanupCookieManagerTest.PersistSessionCookies (54 ms)\n[178/3004] SessionCleanupCookieManagerTest.DeleteSessionCookies (58 ms)\n[179/3004] SessionCleanupCookieManagerTest.SettingMustMatchDomain (83 ms)\n[180/3004] SessionCleanupCookieManagerTest.FirstSettingTakesPrecedence (74 ms)\n[181/3004] CrossOriginReadBlockingTest.IsValidCorsHeaderSet (1 ms)\n[182/3004] CrossOriginReadBlockingTest.SniffForHTML (0 ms)\n[183/3004] CrossOriginReadBlockingTest.SniffForXML (1 ms)\n[184/3004] CrossOriginReadBlockingTest.SniffForJSON (0 ms)\n[185/3004] CrossOriginReadBlockingTest.GetCanonicalMimeType (1 ms)\n[186/3004] CrossOriginResourcePolicyTest.ParseHeader (1 ms)\n[187/3004] CrossOriginResourcePolicyTest.ShouldAllowSameSite (2 ms)\n[188/3004] DataPipeElementReaderTest.InitInterruptsInit (5 ms)\n[189/3004] DataPipeElementReaderTest.InitInterruptsRead (5 ms)\n[190/3004] DnsConfigChangeManagerTest.Notification (10 ms)\n[191/3004] DnsConfigChangeManagerTest.Notification_InitialRead (8 ms)\n[192/3004] DnsConfigChangeManagerTest.MultipleNotification (6 ms)\n[193/3004] DnsConfigChangeManagerTest.MultipleClients (7 ms)\n[194/3004] HostResolverTest.Sync (5 ms)\n[195/3004] HostResolverTest.Async (5 ms)\n[196/3004] HostResolverTest.DnsQueryType (5 ms)\n[197/3004] HostResolverTest.InitialPriority (4 ms)\n[198/3004] HostResolverTest.Source (7 ms)\n[199/3004] HostResolverTest.SeparateCacheBySource (7 ms)\n[200/3004] HostResolverTest.CacheDisabled (5 ms)\n[201/3004] HostResolverTest.CacheDisabled_ErrorResults (9 ms)\n[202/3004] HostResolverTest.IncludeCanonicalName (4 ms)\n[203/3004] HostResolverTest.LoopbackOnly (5 ms)\n[204/3004] HostResolverTest.Failure_Sync (4 ms)\n[205/3004] HostResolverTest.Failure_Async (5 ms)\n[206/3004] HostResolverTest.NoOptionalParameters (4 ms)\n[207/3004] HostResolverTest.NoControlHandle (5 ms)\n[208/3004] HostResolverTest.CloseControlHandle (5 ms)\n[209/3004] HostResolverTest.Cancellation (4 ms)\n[210/3004] HostResolverTest.Cancellation_SubsequentRequest (5 ms)\n[211/3004] HostResolverTest.DestroyResolver (8 ms)\n[212/3004] HostResolverTest.CloseClient (4 ms)\n[213/3004] HostResolverTest.CloseClient_SubsequentRequest (7 ms)\n[214/3004] HostResolverTest.Binding (6 ms)\n[215/3004] HostResolverTest.CloseBinding (5 ms)\n[216/3004] HostResolverTest.CloseBinding_SubsequentRequest (8 ms)\n[217/3004] HostResolverTest.IsSpeculative (5 ms)\n[218/3004] HostResolverTest.TextResults (6 ms)\n[219/3004] HostResolverTest.HostResults (5 ms)\n[220/3004] HostResolverTest.MdnsListener_AddressResult (4 ms)\n[221/3004] CookieSettingsTest.CreateDeleteCookieOnExitPredicateNoSessionOnly (0 ms)\n[222/3004] CookieSettingsTest.CreateDeleteCookieOnExitPredicateSessionOnly (0 ms)\n[223/3004] CookieSettingsTest.CreateDeleteCookieOnExitPredicateAllow (0 ms)\n[224/3004] CookieSettingsTest.GetCookieSettingSecureOriginCookiesAllowed (0 ms)\n[225/3004] CookieSettingsTest.GetCookieSettingWithThirdPartyCookiesAllowedScheme (1 ms)\n[226/3004] CookieSettingsTest.GetCookieSettingMatchingSchemeCookiesAllowed (0 ms)\n[227/3004] CorsURLLoaderFactoryTest.DestructionOrder (71 ms)\n[228/3004] CorsURLLoaderTest.SameOriginWithoutInitiator (59 ms)\n[229/3004] CorsURLLoaderTest.NoCorsWithoutInitiator (37 ms)\n[230/3004] CorsURLLoaderTest.CorsWithoutInitiator (28 ms)\n[231/3004] CorsURLLoaderTest.CrossOriginRequestWithCorsMode (64 ms)\n[232/3004] CorsURLLoaderTest.CrossOriginRequestFetchRequestWithCorsModeButMismatchedCorsHeader (50 ms)\n[233/3004] CorsURLLoaderTest.StripUsernameAndPassword (26 ms)\n[234/3004] CorsURLLoaderTest.CorsCheckPassOnRedirect (48 ms)\n[235/3004] CorsURLLoaderTest.CorsCheckFailOnRedirect (24 ms)\n[236/3004] CorsURLLoaderTest.NetworkLoaderErrorDuringRedirect (22 ms)\n[237/3004] CorsURLLoaderTest.SameOriginToSameOriginRedirect (22 ms)\n[238/3004] CorsURLLoaderTest.SameOriginToCrossOriginRedirect (50 ms)\n[239/3004] CorsURLLoaderTest.CrossOriginToCrossOriginRedirect (50 ms)\n[240/3004] CorsURLLoaderTest.CrossOriginToOriginalOriginRedirect (48 ms)\n[241/3004] CorsURLLoaderTest.304ForSimpleRevalidation (39 ms)\n[242/3004] CorsURLLoaderTest.304ForSimpleGet (34 ms)\n[243/3004] CorsURLLoaderTest.200ForSimpleRevalidation (63 ms)\n[244/3004] CorsURLLoaderTest.RevalidationAndPreflight (63 ms)\n[245/3004] CorsURLLoaderTaintingTest.CalculateResponseTainting (1 ms)\n[246/3004] PreflightControllerCreatePreflightRequestTest.LexicographicalOrder (0 ms)\n[247/3004] PreflightControllerCreatePreflightRequestTest.ExcludeSimpleHeaders (1 ms)\n[248/3004] PreflightControllerCreatePreflightRequestTest.Credentials (0 ms)\n[249/3004] PreflightControllerCreatePreflightRequestTest.ExcludeSimpleContentTypeHeader (1 ms)\n[250/3004] PreflightControllerCreatePreflightRequestTest.IncludeNonSimpleHeader (0 ms)\n[251/3004] IgnoreErrorsCertVerifierTest.TestNoMatchCertError (5 ms)\n[252/3004] IgnoreErrorsCertVerifierTest.TestMatch (7 ms)\n[253/3004] InitiatorLockCompatibilityTest.VerifyRequestInitiatorSiteLock (1 ms)\n[254/3004] KeepaliveStatisticsRecorderTest.InitialState (0 ms)\n[255/3004] KeepaliveStatisticsRecorderTest.Register (1 ms)\n[256/3004] KeepaliveStatisticsRecorderTest.Unregister (0 ms)\n[257/3004] KeepaliveStatisticsRecorderTest.MultipleRegistration (0 ms)\n[258/3004] KeepaliveStatisticsRecorderTest.IssueOneRequest (1 ms)\n[259/3004] KeepaliveStatisticsRecorderTest.IssueRequests (0 ms)\n[260/3004] KeepaliveStatisticsRecorderTest.ProcessReuse (0 ms)\n[261/3004] CorsURLLoaderTest.CrossOriginToAnotherCrossOriginRedirect (39 ms)\n[262/3004] CorsURLLoaderTest.CrossOriginToAnotherCrossOriginRedirectWithPreflight (44 ms)\n[263/3004] CorsURLLoaderTest.RedirectInfoShouldBeUsed (60 ms)\n[264/3004] CorsURLLoaderTest.TooManyRedirects (66 ms)\n[265/3004] CorsURLLoaderTest.FollowErrorRedirect (21 ms)\n[266/3004] CorsURLLoaderTest.OriginAccessList_Allowed (19 ms)\n[267/3004] CorsURLLoaderTest.OriginAccessList_Blocked (17 ms)\n[268/3004] CorsURLLoaderTest.OriginAccessList_AllowedByFactoryList (18 ms)\n[269/3004] CorsURLLoaderTest.OriginAccessList_AllowedByFactoryListButBlocked (18 ms)\n[270/3004] CorsURLLoaderTest.OriginAccessList_NoCors (22 ms)\n[271/3004] PreflightControllerCreatePreflightRequestTest.IncludeNonSimpleContentTypeHeader (0 ms)\n[272/3004] PreflightControllerCreatePreflightRequestTest.ExcludeForbiddenHeaders (1 ms)\n[273/3004] PreflightControllerCreatePreflightRequestTest.Tainted (0 ms)\n[274/3004] PreflightControllerCreatePreflightRequestTest.FetchWindowId (0 ms)\n[275/3004] PreflightControllerCreatePreflightRequestTest.RenderFrameId (0 ms)\n[276/3004] PreflightControllerTest.CheckInvalidRequest (81 ms)\n[277/3004] PreflightControllerTest.CheckValidRequest (66 ms)\n[278/3004] PreflightControllerTest.CheckTaintedRequest (31 ms)\n[279/3004] PreflightControllerTest.CheckResponseWithNullHeaders (19 ms)\n[280/3004] CrossOriginReadBlockingTest.IsBlockableScheme (0 ms)\n[281/3004] MojoHostResolverImplTest.Resolve (7 ms)\n[282/3004] MojoHostResolverImplTest.ResolveSynchronous (5 ms)\n[283/3004] MojoHostResolverImplTest.ResolveMultiple (7 ms)\n[284/3004] MojoHostResolverImplTest.ResolveDuplicate (7 ms)\n[285/3004] MojoHostResolverImplTest.ResolveFailure (5 ms)\n[286/3004] MojoHostResolverImplTest.ResolveEx (5 ms)\n[287/3004] MojoHostResolverImplTest.DestroyClient (5 ms)\n[288/3004] NetworkChangeManagerTest.ClientNotified (6 ms)\n[289/3004] NetworkChangeManagerTest.OneClientPipeBroken (11 ms)\n[290/3004] NetworkChangeManagerTest.NewClientReceivesCurrentType (8 ms)\n[291/3004] NetworkChangeConnectionTypeTest.ConnectionTypeEnumMatch (0 ms)\n[292/3004] NetworkContextTest.DestroyContextWithLiveRequest (35 ms)\n[293/3004] NetworkContextTest.DisableQuic (16 ms)\n[294/3004] NetworkContextTest.UserAgentAndLanguage (14 ms)\n[295/3004] NetworkContextTest.EnableBrotli (8 ms)\n[296/3004] NetworkContextTest.ContextName (9 ms)\n[297/3004] NetworkContextTest.QuicUserAgentId (11 ms)\n[298/3004] NetworkContextTest.DataUrlSupport (15 ms)\n[299/3004] NetworkContextTest.FileUrlSupportDisabled (17 ms)\n[300/3004] NetworkContextTest.DisableFtpUrlSupport (13 ms)\n[301/3004] NetworkContextTest.EnableFtpUrlSupport (15 ms)\n[302/3004] NetworkContextTest.DisableReporting (8 ms)\n[303/3004] NetworkContextTest.EnableReporting (11 ms)\n[304/3004] NetworkContextTest.DisableNetworkErrorLogging (8 ms)\n[305/3004] NetworkContextTest.EnableNetworkErrorLogging (6 ms)\n[306/3004] NetworkContextTest.Http09Disabled (6 ms)\n[307/3004] NetworkContextTest.Http09Enabled (6 ms)\n[308/3004] NetworkContextTest.DefaultHttpNetworkSessionParams (5 ms)\n[309/3004] NetworkContextTest.FixedHttpPort (8 ms)\n[310/3004] NetworkContextTest.NoCache (6 ms)\n[311/3004] NetworkContextTest.ClearHttpCacheWithNoCache (15 ms)\n[312/3004] NetworkContextTest.ClearHttpCache (20 ms)\n[313/3004] NetworkContextTest.MultipleClearHttpCacheCalls (16 ms)\n[314/3004] NetworkContextTest.NotifyExternalCacheHit (7 ms)\n[315/3004] NetworkContextTest.NotifyExternalCacheHit_Split (8 ms)\n[316/3004] NetworkContextTest.CountHttpCache (8 ms)\n[317/3004] NetworkContextTest.ClearHostCache (21 ms)\n[318/3004] NetworkContextTest.ClearHttpAuthCache (8 ms)\n[319/3004] NetworkContextTest.ClearAllHttpAuthCache (7 ms)\n[320/3004] NetworkContextTest.ClearEmptyHttpAuthCache (6 ms)\n[321/3004] NetworkContextTest.LookupBasicAuthCredentials (15 ms)\n[322/3004] NetworkContextTest.ClearReportingCacheReports (10 ms)\n[323/3004] NetworkContextTest.ClearReportingCacheReportsWithFilter (10 ms)\n[324/3004] NetworkContextTest.ClearReportingCacheReportsWithNonRegisterableFilter (12 ms)\n[325/3004] NetworkContextTest.ClearEmptyReportingCacheReports (8 ms)\n[326/3004] NetworkContextTest.ClearReportingCacheReportsWithNoService (7 ms)\n[327/3004] NetworkContextTest.ClearReportingCacheClients (10 ms)\n[328/3004] NetworkContextTest.ClearReportingCacheClientsWithFilter (9 ms)\n[329/3004] NetworkContextTest.ClearEmptyReportingCacheClients (8 ms)\n[330/3004] NetworkContextTest.ClearReportingCacheClientsWithNoService (6 ms)\n[331/3004] NetworkContextTest.ClearNetworkErrorLogging (12 ms)\n[332/3004] NetworkContextTest.ClearNetworkErrorLoggingWithFilter (7 ms)\n[333/3004] NetworkContextTest.ClearEmptyNetworkErrorLogging (9 ms)\n[334/3004] NetworkContextTest.ClearEmptyNetworkErrorLoggingWithNoService (8 ms)\n[335/3004] NetworkContextTest.CookieManager (10 ms)\n[336/3004] NetworkContextTest.ProxyConfig (50 ms)\n[337/3004] NetworkContextTest.StaticProxyConfig (8 ms)\n[338/3004] NetworkContextTest.NoInitialProxyConfig (14 ms)\n[339/3004] NetworkContextTest.DestroyedWithoutProxyConfig (12 ms)\n[340/3004] NetworkContextTest.CancelPendingProxyLookup (10 ms)\n[341/3004] HostResolverTest.MdnsListener_TextResult (7 ms)\n[342/3004] HostResolverTest.MdnsListener_HostnameResult (4 ms)\n[343/3004] HostResolverTest.MdnsListener_UnhandledResult (4 ms)\n[344/3004] HttpCacheDataCounterTest.Basic (30 ms)\n[345/3004] HttpCacheDataCounterTestNoCache.BeSensible (10 ms)\n[346/3004] HttpCacheDataRemoverTest.ClearAll (13 ms)\n[347/3004] HttpCacheDataRemoverTest.FilterDeleteByDomain (12 ms)\n[348/3004] HttpCacheDataRemoverTest.FilterKeepByDomain (24 ms)\n[349/3004] HttpCacheDataRemoverTest.FilterDeleteByOrigin (15 ms)\n[350/3004] HttpCacheDataRemoverTest.FilterKeepByOrigin (11 ms)\n[351/3004] HttpCacheDataRemoverTest.FilterDeleteByDomainAndOrigin (20 ms)\n[352/3004] HttpCacheDataRemoverTest.FilterKeepByDomainAndOrigin (16 ms)\n[353/3004] HttpCacheDataRemoverTest.FilterByDateFromUnbounded (16 ms)\n[354/3004] HttpCacheDataRemoverTest.FilterByDateToUnbounded (13 ms)\n[355/3004] HttpCacheDataRemoverTest.FilterByDateRange (11 ms)\n[356/3004] HttpCacheDataRemoverTest.FilterDeleteByDomainAndDate (17 ms)\n[357/3004] HttpCacheDataRemoverTest.FilterKeepByDomainAndDate (16 ms)\n[358/3004] HttpCacheDataRemoverTest.DeleteHttpRemover (14 ms)\n[359/3004] HttpCacheDataRemoverTest.TestDelayedBackend (16 ms)\n[360/3004] IgnoreErrorsCertVerifierTest.TestNoMatchCertOk (6 ms)\n[361/3004] NetworkContextTest.ResolveHost_NoControlHandle (14 ms)\n[362/3004] NetworkContextTest.ResolveHost_CloseControlHandle (9 ms)\n[363/3004] NetworkContextTest.ResolveHost_Cancellation (12 ms)\n[364/3004] NetworkContextTest.ResolveHost_DestroyContext (16 ms)\n[365/3004] NetworkContextTest.ResolveHost_CloseClient (12 ms)\n[366/3004] NetworkContextTest.CreateHostResolver (19 ms)\n[367/3004] NetworkContextTest.CreateHostResolver_CloseResolver (16 ms)\n[368/3004] NetworkContextTest.CreateHostResolver_CloseContext (14 ms)\n[369/3004] NetworkContextTest.CreateHostResolverWithConfigOverrides (14 ms)\n[370/3004] NetworkContextTest.PrivacyModeDisabledByDefault (15 ms)\n[371/3004] NetworkContextTest.MemoryCache (14 ms)\n[372/3004] NetworkContextTest.DiskCache (10 ms)\n[373/3004] NetworkContextTest.SimpleCache (10 ms)\n[374/3004] NetworkContextTest.HttpServerPropertiesToDisk (24 ms)\n[375/3004] NetworkContextTest.ClearHttpServerPropertiesInMemory (7 ms)\n[376/3004] NetworkContextTest.ClearingNetworkingHistoryClearNetworkQualityPrefs (10 ms)\n[377/3004] NetworkContextTest.TransportSecurityStatePersisted (22 ms)\n[378/3004] NetworkContextTest.CertReporting (271 ms)\n[379/3004] NetworkContextTest.Referrers (59 ms)\n[380/3004] NetworkContextTest.HttpRequestCompletionErrorCodes (125 ms)\n[381/3004] NetworkContextTest.PacQuickCheck (17 ms)\n[382/3004] NetworkContextTest.CreateUDPSocket (15 ms)\n[383/3004] NetworkContextTest.CreateNetLogExporter (34 ms)\n[384/3004] NetworkContextTest.CreateNetLogExporterUnbounded (45 ms)\n[385/3004] NetworkContextTest.CreateNetLogExporterErrors (45 ms)\n[386/3004] NetworkContextTest.DestroyNetLogExporterWhileCreatingScratchDir (11 ms)\n[387/3004] NetworkContextTest.ResolveHost_Sync (19 ms)\n[388/3004] NetworkContextTest.ResolveHost_Async (17 ms)\n[389/3004] NetworkContextTest.ResolveHost_Failure_Sync (14 ms)\n[390/3004] NetworkContextTest.ResolveHost_Failure_Async (15 ms)\n[391/3004] NetworkContextTest.PrivacyModeEnabledIfCookiesBlocked (16 ms)\n[392/3004] NetworkContextTest.PrivacyModeDisabledIfCookiesAllowed (9 ms)\n[393/3004] NetworkContextTest.PrivacyModeDisabledIfCookiesSettingForOtherURL (9 ms)\n[394/3004] NetworkContextTest.PrivacyModeEnabledIfThirdPartyCookiesBlocked (10 ms)\n[395/3004] NetworkContextTest.CanSetCookieFalseIfCookiesBlocked (11 ms)\n[396/3004] NetworkContextTest.CanSetCookieTrueIfCookiesAllowed (8 ms)\n[397/3004] NetworkContextTest.CanGetCookiesFalseIfCookiesBlocked (7 ms)\n[398/3004] NetworkContextTest.CanGetCookiesTrueIfCookiesAllowed (7 ms)\n[399/3004] NetworkContextTest.PreconnectOne (11 ms)\n[400/3004] NetworkContextTest.PreconnectHSTS (167 ms)\n[401/3004] NetworkContextTest.PreconnectZero (18 ms)\n[402/3004] NetworkContextTest.PreconnectTwo (22 ms)\n[403/3004] NetworkContextTest.PreconnectFour (19 ms)\n[404/3004] NetworkContextTest.PreconnectMax (16 ms)\n[405/3004] NetworkContextTest.CloseConnections (54 ms)\n[406/3004] NetworkContextTest.ExpectCT (16 ms)\n[407/3004] NetworkContextTest.SetExpectCTTestReport (27 ms)\n[408/3004] NetworkContextTest.QueryHSTS (11 ms)\n[409/3004] NetworkContextTest.GetHSTSState (12 ms)\n[410/3004] NetworkContextTest.ForceReloadProxyConfig (53 ms)\n[ RUN ] CorsURLLoaderTest.NavigateWithoutInitiator\n[ OK ] CorsURLLoaderTest.NavigateWithoutInitiator (40 ms)\n[ RUN ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther1\n[12383:12383:0525/034333.168126:18605123978:WARNING:cors_url_loader_factory.cc(153)] |fetch_credentials_mode| and |allow_credentials| or |load_flags| contradict each other.\n[ OK ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther1 (36 ms)\n[ RUN ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther2\n[12383:12383:0525/034333.227651:18605183503:WARNING:cors_url_loader_factory.cc(153)] |fetch_credentials_mode| and |allow_credentials| or |load_flags| contradict each other.\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b1c00001998 by main thread:\n #0 reset buildtools/third_party/libc++/trunk/include/memory:2649:20 (services_unittests+0x4aed5d2)\n #1 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5d2)\n #2 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5d2)\n #3 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #4 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #5 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #6 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #7 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #8 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #9 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #10 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #11 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #12 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #13 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #14 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #15 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #16 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #17 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #18 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #19 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #20 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #21 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #22 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #23 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #24 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #25 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #26 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #27 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #28 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #29 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #30 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #31 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #32 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #33 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #34 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #35 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous read of size 8 at 0x7b1c00001998 by thread T17:\n #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (services_unittests+0x4aec87b)\n #1 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec87b)\n #2 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #3 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #4 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #5 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 (services_unittests+0x4af4dc4)\n #6 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #7 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #8 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 (services_unittests+0x273b963)\n #9 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #10 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #11 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #12 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #13 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #14 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #15 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #16 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #17 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #18 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #19 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #20 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 (services_unittests+0x4106d67)\n #21 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #22 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #23 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #24 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #25 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #26 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #27 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #28 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #29 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #30 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #31 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #32 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Location is heap block of size 104 at 0x7b1c00001960 allocated by main thread:\n #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 (services_unittests+0x195b8db)\n #1 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:10 (services_unittests+0x4ae9b8f)\n #2 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:109:29 (services_unittests+0x52da62b)\n #3 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:302 (services_unittests+0x52da62b)\n #4 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:262:5 (services_unittests+0x52d9c42)\n #5 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #6 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #7 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #8 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #9 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #10 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #11 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #12 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #13 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #15 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #16 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #17 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #18 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #19 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #20 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #21 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #22 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #23 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #24 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #25 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2649:20 in reset\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Read of size 8 at 0x7b30000004e8 by main thread:\n #0 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539:37 (services_unittests+0x273631d)\n #1 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x273631d)\n #2 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x273631d)\n #3 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8)\n #4 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8)\n #5 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8)\n #6 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8)\n #7 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8)\n #8 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #9 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #10 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #11 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #12 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #13 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #14 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #15 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #16 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #17 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #18 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #19 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #20 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #21 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #22 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #23 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #24 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #25 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #26 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #27 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #28 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #29 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #30 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #31 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #32 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #33 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #34 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #35 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #36 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #37 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #38 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #39 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #40 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 8 at 0x7b30000004e8 by thread T17 (mutexes: write M467102432451626112):\n #0 __node_insert_multi_perform buildtools/third_party/libc++/trunk/include/__hash_table:2014:23 (services_unittests+0x2738049)\n #1 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2042 (services_unittests+0x2738049)\n #2 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x2737b8e)\n #3 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737b8e)\n #4 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737b8e)\n #5 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #6 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #7 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #8 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #9 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #10 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #11 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #12 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #13 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 (services_unittests+0x4af4dc4)\n #14 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #15 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #16 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 (services_unittests+0x273b963)\n #17 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #18 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #19 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #20 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #21 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #22 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #23 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #24 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #25 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #26 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #27 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #28 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 (services_unittests+0x4106d67)\n #29 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #30 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #31 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #32 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #33 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #34 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #35 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #36 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #37 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #38 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #39 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #40 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Location is heap block of size 184 at 0x7b3000000480 allocated by main thread:\n #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 (services_unittests+0x195b8db)\n #1 net::NetworkChangeNotifier::NetworkChangeNotifier(net::NetworkChangeNotifier::NetworkChangeCalculatorParams const&) net/base/network_change_notifier.cc:679:22 (services_unittests+0x4aec24e)\n #2 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:92:7 (services_unittests+0x4af49cc)\n #3 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (services_unittests+0x4ae9bb7)\n #4 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:109:29 (services_unittests+0x52da62b)\n #5 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:302 (services_unittests+0x52da62b)\n #6 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:262:5 (services_unittests+0x52d9c42)\n #7 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #8 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #9 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #10 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #11 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #12 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #13 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #14 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #15 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #16 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #17 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #18 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #19 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #20 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #21 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #22 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #23 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #24 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #27 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/__hash_table:1539:37 in ~__hash_table\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Read of size 8 at 0x7b1400020170 by main thread:\n #0 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1583:39 (services_unittests+0x2736337)\n #1 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x2736337)\n #2 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x2736337)\n #3 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x2736337)\n #4 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8)\n #5 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8)\n #6 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8)\n #7 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8)\n #8 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8)\n #9 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #10 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #11 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #12 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #13 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #14 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #15 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #16 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #17 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #18 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #19 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #20 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #21 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #22 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #23 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #24 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #25 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #26 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #27 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #28 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #29 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #30 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #31 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #32 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #33 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #34 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #35 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #36 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #37 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #38 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #39 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #40 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #41 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 8 at 0x7b1400020170 by thread T17 (mutexes: write M467102432451626112):\n #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 (services_unittests+0x195b8db)\n #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x2737bb1)\n #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x2737bb1)\n #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x2737bb1)\n #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x2737bb1)\n #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x2737bb1)\n #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737bb1)\n #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737bb1)\n #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #16 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 (services_unittests+0x4af4dc4)\n #17 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #19 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 (services_unittests+0x273b963)\n #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #26 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #31 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 (services_unittests+0x4106d67)\n #32 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #39 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #40 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #41 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #42 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Location is heap block of size 72 at 0x7b1400020170 allocated by thread T17:\n #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 (services_unittests+0x195b8db)\n #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x2737bb1)\n #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x2737bb1)\n #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x2737bb1)\n #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x2737bb1)\n #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x2737bb1)\n #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737bb1)\n #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737bb1)\n #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #16 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 (services_unittests+0x4af4dc4)\n #17 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #19 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 (services_unittests+0x273b963)\n #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #26 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #31 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 (services_unittests+0x4106d67)\n #32 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #39 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #40 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #41 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #42 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/__hash_table:1583:39 in __deallocate_node\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Read of size 1 at 0x7b1400020197 by main thread:\n #0 __is_long buildtools/third_party/libc++/trunk/include/string:1426:39 (services_unittests+0x273634c)\n #1 ~basic_string buildtools/third_party/libc++/trunk/include/string:2137 (services_unittests+0x273634c)\n #2 ~pair buildtools/third_party/libc++/trunk/include/utility:315 (services_unittests+0x273634c)\n #3 ~pair buildtools/third_party/libc++/trunk/include/utility:315 (services_unittests+0x273634c)\n #4 __destroy<std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> > buildtools/third_party/libc++/trunk/include/memory:1747 (services_unittests+0x273634c)\n #5 destroy<std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> > buildtools/third_party/libc++/trunk/include/memory:1595 (services_unittests+0x273634c)\n #6 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1600 (services_unittests+0x273634c)\n #7 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x273634c)\n #8 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x273634c)\n #9 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x273634c)\n #10 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8)\n #11 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8)\n #12 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8)\n #13 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8)\n #14 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8)\n #15 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #20 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #22 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #23 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #24 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #25 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #26 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #27 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #28 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #29 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #30 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #31 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #32 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #33 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #34 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #35 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #36 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #37 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #38 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #39 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #40 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #41 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #42 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #43 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #44 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #45 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #46 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #47 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 8 at 0x7b1400020190 by thread T17 (mutexes: write M467102432451626112):\n #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 (services_unittests+0x195b8db)\n #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x2737bb1)\n #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x2737bb1)\n #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x2737bb1)\n #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x2737bb1)\n #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x2737bb1)\n #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737bb1)\n #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737bb1)\n #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #16 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 (services_unittests+0x4af4dc4)\n #17 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #19 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 (services_unittests+0x273b963)\n #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #26 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #31 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 (services_unittests+0x4106d67)\n #32 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #39 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #40 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #41 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #42 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Location is heap block of size 72 at 0x7b1400020170 allocated by thread T17:\n #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 (services_unittests+0x195b8db)\n #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x2737bb1)\n #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x2737bb1)\n #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x2737bb1)\n #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x2737bb1)\n #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x2737bb1)\n #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737bb1)\n #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737bb1)\n #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #16 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 (services_unittests+0x4af4dc4)\n #17 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #19 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 (services_unittests+0x273b963)\n #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #26 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #31 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 (services_unittests+0x4106d67)\n #32 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #39 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #40 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #41 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #42 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/string:1426:39 in __is_long\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b1400020180 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x273636e)\n #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x273636e)\n #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x273636e)\n #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x273636e)\n #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x273636e)\n #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x273636e)\n #7 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1601 (services_unittests+0x273636e)\n #8 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x273636e)\n #9 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x273636e)\n #10 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x273636e)\n #11 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8)\n #15 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8)\n #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #17 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #18 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #19 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #20 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #22 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #23 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #24 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #25 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #26 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #27 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #28 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #29 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #30 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #31 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #32 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #33 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #34 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #35 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #36 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #37 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #38 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #39 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #40 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #41 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #42 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #43 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #44 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #45 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #46 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #47 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #48 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous read of size 1 at 0x7b1400020184 by thread T17 (mutexes: write M467102432451626112):\n #0 operator() base/strings/string_piece.h:536:17 (services_unittests+0x2737e96)\n #1 operator() net/dns/dns_hosts.h:28 (services_unittests+0x2737e96)\n #2 operator() buildtools/third_party/libc++/trunk/include/unordered_map:440 (services_unittests+0x2737e96)\n #3 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2040 (services_unittests+0x2737e96)\n #4 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x2737b8e)\n #5 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737b8e)\n #6 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737b8e)\n #7 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #8 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #9 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #10 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #11 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #12 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #13 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #14 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #15 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 (services_unittests+0x4af4dc4)\n #16 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #17 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #18 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 (services_unittests+0x273b963)\n #19 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #20 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #21 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #22 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #23 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #24 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #25 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #26 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #27 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #28 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #29 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #30 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 (services_unittests+0x4106d67)\n #31 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #32 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #33 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #34 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #35 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #36 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #37 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #38 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #39 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #40 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #41 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #42 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b1400020138 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x273636e)\n #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x273636e)\n #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x273636e)\n #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x273636e)\n #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x273636e)\n #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x273636e)\n #7 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1601 (services_unittests+0x273636e)\n #8 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x273636e)\n #9 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x273636e)\n #10 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x273636e)\n #11 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8)\n #15 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8)\n #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #17 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #18 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #19 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #20 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #22 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #23 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #24 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #25 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #26 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #27 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #28 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #29 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #30 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #31 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #32 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #33 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #34 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #35 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #36 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #37 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #38 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #39 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #40 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #41 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #42 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #43 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #44 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #45 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #46 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #47 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #48 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous read of size 1 at 0x7b1400020139 by thread T17 (mutexes: write M467102432451626112):\n #0 operator() base/strings/string_piece.h:536:17 (services_unittests+0x2737f17)\n #1 operator() net/dns/dns_hosts.h:28 (services_unittests+0x2737f17)\n #2 operator() buildtools/third_party/libc++/trunk/include/unordered_map:440 (services_unittests+0x2737f17)\n #3 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2040 (services_unittests+0x2737f17)\n #4 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x2737b8e)\n #5 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737b8e)\n #6 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__ha\n<truncated (1047176 bytes)>\ninternal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #36 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #37 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #38 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #39 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #40 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #41 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #42 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b30000004f0 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 8 at 0x7b30000004f0 by thread T17 (mutexes: write M467102432451626112):\n #0 __node_insert_multi_perform buildtools/third_party/libc++/trunk/include/__hash_table:2032:5 (services_unittests+0x27380f8)\n #1 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2042 (services_unittests+0x27380f8)\n #2 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x2737b8e)\n #3 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737b8e)\n #4 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737b8e)\n #5 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #6 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #7 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #8 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #9 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #10 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #11 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #12 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #13 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 (services_unittests+0x4af4dc4)\n #14 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #15 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #16 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 (services_unittests+0x273b963)\n #17 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #18 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #19 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #20 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #21 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #22 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #23 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #24 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #25 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #26 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #27 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #28 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 (services_unittests+0x4106d67)\n #29 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #30 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #31 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #32 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #33 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #34 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #35 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #36 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #37 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #38 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #39 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #40 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b30000004f8 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 4 at 0x7b30000004f8 by thread T17 (mutexes: write M467102432451626112):\n #0 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1569:27 (services_unittests+0x2736528)\n #1 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736528)\n #2 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736528)\n #3 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #4 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #5 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #6 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #7 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #8 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 (services_unittests+0x4af4dc4)\n #9 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #10 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #11 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 (services_unittests+0x273b963)\n #12 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #13 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #14 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #15 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #16 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #17 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #18 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #19 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #20 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #21 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #22 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #23 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 (services_unittests+0x4106d67)\n #24 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #25 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #26 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #27 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #28 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #29 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #30 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #31 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #32 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #33 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #34 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #35 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b3000000500 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 8 at 0x7b3000000500 by thread T17 (mutexes: write M467102432451626112):\n #0 memcpy /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:801:5 (services_unittests+0x18f6ea7)\n #1 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31:55 (services_unittests+0x2736555)\n #2 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #3 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #4 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #5 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #6 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #7 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 (services_unittests+0x4af4dc4)\n #8 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #9 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #10 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 (services_unittests+0x273b963)\n #11 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #12 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #13 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #14 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #15 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #16 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #17 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #18 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #19 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #20 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #21 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #22 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 (services_unittests+0x4106d67)\n #23 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #24 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #25 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #26 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #27 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #28 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #29 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #30 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #31 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #32 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #33 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #34 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b3000000518 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous read of size 8 at 0x7b3000000518 by thread T17 (mutexes: write M467102432451626112):\n #0 capacity buildtools/third_party/libc++/trunk/include/vector:372:54 (services_unittests+0x2738516)\n #1 capacity buildtools/third_party/libc++/trunk/include/vector:659 (services_unittests+0x2738516)\n #2 std::__1::enable_if<(__is_forward_iterator<net::DnsConfig::DnsOverHttpsServerConfig*>::value) && (is_constructible<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::iterator_traits<net::DnsConfig::DnsOverHttpsServerConfig*>::reference>::value), void>::type std::__1::vector<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::allocator<net::DnsConfig::DnsOverHttpsServerConfig> >::assign<net::DnsConfig::DnsOverHttpsServerConfig*>(net::DnsConfig::DnsOverHttpsServerConfig*, net::DnsConfig::DnsOverHttpsServerConfig*) buildtools/third_party/libc++/trunk/include/vector:1439 (services_unittests+0x2738516)\n #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x273657e)\n #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x273657e)\n #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #10 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 (services_unittests+0x4af4dc4)\n #11 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #13 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 (services_unittests+0x273b963)\n #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #19 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #20 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #25 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 (services_unittests+0x4106d67)\n #26 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #30 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #31 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #32 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #33 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #34 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #35 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #36 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b3000000520 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 8 at 0x7b3000000520 by thread T17 (mutexes: write M467102432451626112):\n #0 __destruct_at_end buildtools/third_party/libc++/trunk/include/vector:427:12 (services_unittests+0x27386c4)\n #1 __destruct_at_end buildtools/third_party/libc++/trunk/include/vector:833 (services_unittests+0x27386c4)\n #2 std::__1::enable_if<(__is_forward_iterator<net::DnsConfig::DnsOverHttpsServerConfig*>::value) && (is_constructible<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::iterator_traits<net::DnsConfig::DnsOverHttpsServerConfig*>::reference>::value), void>::type std::__1::vector<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::allocator<net::DnsConfig::DnsOverHttpsServerConfig> >::assign<net::DnsConfig::DnsOverHttpsServerConfig*>(net::DnsConfig::DnsOverHttpsServerConfig*, net::DnsConfig::DnsOverHttpsServerConfig*) buildtools/third_party/libc++/trunk/include/vector:1453 (services_unittests+0x27386c4)\n #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x273657e)\n #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x273657e)\n #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #10 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 (services_unittests+0x4af4dc4)\n #11 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #13 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 (services_unittests+0x273b963)\n #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #19 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #20 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #25 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 (services_unittests+0x4106d67)\n #26 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #30 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #31 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #32 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #33 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #34 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #35 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #36 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b3000000528 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous read of size 8 at 0x7b3000000528 by thread T17 (mutexes: write M467102432451626112):\n #0 capacity buildtools/third_party/libc++/trunk/include/vector:372:40 (services_unittests+0x273850a)\n #1 capacity buildtools/third_party/libc++/trunk/include/vector:659 (services_unittests+0x273850a)\n #2 std::__1::enable_if<(__is_forward_iterator<net::DnsConfig::DnsOverHttpsServerConfig*>::value) && (is_constructible<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::iterator_traits<net::DnsConfig::DnsOverHttpsServerConfig*>::reference>::value), void>::type std::__1::vector<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::allocator<net::DnsConfig::DnsOverHttpsServerConfig> >::assign<net::DnsConfig::DnsOverHttpsServerConfig*>(net::DnsConfig::DnsOverHttpsServerConfig*, net::DnsConfig::DnsOverHttpsServerConfig*) buildtools/third_party/libc++/trunk/include/vector:1439 (services_unittests+0x273850a)\n #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x273657e)\n #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x273657e)\n #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #10 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 (services_unittests+0x4af4dc4)\n #11 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #13 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 (services_unittests+0x273b963)\n #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #19 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #20 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #25 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 (services_unittests+0x4106d67)\n #26 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #30 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #31 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #32 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #33 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #34 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #35 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #36 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b3000000530 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 1 at 0x7b3000000530 by thread T17 (mutexes: write M467102432451626112):\n #0 SetDnsConfig net/base/network_change_notifier.cc:79:10 (services_unittests+0x4aec8a6)\n #1 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec8a6)\n #2 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #3 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #4 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #5 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 (services_unittests+0x4af4dc4)\n #6 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #7 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #8 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 (services_unittests+0x273b963)\n #9 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #10 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #11 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #12 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #13 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #14 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #15 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #16 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #17 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #18 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #19 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #20 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 (services_unittests+0x4106d67)\n #21 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #22 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #23 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #24 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #25 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #26 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #27 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #28 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #29 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #30 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #31 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #32 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n[ OK ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther2 (1825 ms)\n[ RUN ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther3\n[12383:12383:0525/034335.020129:18606976037:WARNING:cors_url_loader_factory.cc(153)] |fetch_credentials_mode| and |allow_credentials| or |load_flags| contradict each other.\n[ OK ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther3 (29 ms)\n[ RUN ] CorsURLLoaderTest.NavigationFromRenderer\n[ OK ] CorsURLLoaderTest.NavigationFromRenderer (16 ms)\n[ RUN ] CorsURLLoaderTest.SameOriginRequest\n[ OK ] CorsURLLoaderTest.SameOriginRequest (18 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsMode\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsMode (26 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod (23 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin\n[ OK ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin (14 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader (17 ms)\n[----------] 10 tests from CorsURLLoaderTest (2046 ms total)\n\n[----------] Global test environment tear-down\n[==========] 10 tests from 1 test suite ran. (2048 ms total)\n[ PASSED ] 10 tests.\nThreadSanitizer: reported 41 warnings\nThreadSanitizer: Matched 2 suppressions (pid=12383):\n2 race:net::(anonymous namespace)::g_network_change_notifier\n\n[411/3004] CorsURLLoaderTest.NavigateWithoutInitiator (40 ms)\n[ RUN ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther1\n[12383:12383:0525/034333.168126:18605123978:WARNING:cors_url_loader_factory.cc(153)] |fetch_credentials_mode| and |allow_credentials| or |load_flags| contradict each other.\n[ OK ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther1 (36 ms)\n[ RUN ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther2\n[12383:12383:0525/034333.227651:18605183503:WARNING:cors_url_loader_factory.cc(153)] |fetch_credentials_mode| and |allow_credentials| or |load_flags| contradict each other.\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b1c00001998 by main thread:\n #0 reset buildtools/third_party/libc++/trunk/include/memory:2649:20 (services_unittests+0x4aed5d2)\n #1 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5d2)\n #2 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5d2)\n #3 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #4 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #5 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #6 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #7 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #8 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #9 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #10 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #11 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #12 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #13 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #14 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #15 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #16 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #17 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #18 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #19 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #20 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #21 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #22 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #23 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #24 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #25 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #26 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #27 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #28 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #29 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #30 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #31 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #32 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #33 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #34 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #35 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous read of size 8 at 0x7b1c00001998 by thread T17:\n #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (services_unittests+0x4aec87b)\n #1 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec87b)\n #2 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #3 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #4 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #5 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 (services_unittests+0x4af4dc4)\n #6 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #7 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #8 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 (services_unittests+0x273b963)\n #9 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #10 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #11 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #12 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #13 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #14 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #15 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #16 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #17 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #18 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #19 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #20 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 (services_unittests+0x4106d67)\n #21 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #22 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #23 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #24 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #25 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #26 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #27 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #28 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #29 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #30 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #31 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #32 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Location is heap block of size 104 at 0x7b1c00001960 allocated by main thread:\n #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 (services_unittests+0x195b8db)\n #1 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:10 (services_unittests+0x4ae9b8f)\n #2 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:109:29 (services_unittests+0x52da62b)\n #3 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:302 (services_unittests+0x52da62b)\n #4 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:262:5 (services_unittests+0x52d9c42)\n #5 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #6 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #7 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #8 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #9 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #10 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #11 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #12 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #13 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #15 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #16 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #17 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #18 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #19 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #20 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #21 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #22 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #23 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #24 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #25 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2649:20 in reset\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Read of size 8 at 0x7b30000004e8 by main thread:\n #0 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539:37 (services_unittests+0x273631d)\n #1 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x273631d)\n #2 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x273631d)\n #3 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8)\n #4 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8)\n #5 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8)\n #6 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8)\n #7 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8)\n #8 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #9 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #10 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #11 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #12 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #13 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #14 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #15 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #16 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #17 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #18 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #19 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #20 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #21 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #22 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #23 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #24 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #25 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #26 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #27 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #28 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #29 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #30 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #31 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #32 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #33 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #34 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #35 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #36 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #37 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #38 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #39 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #40 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 8 at 0x7b30000004e8 by thread T17 (mutexes: write M467102432451626112):\n #0 __node_insert_multi_perform buildtools/third_party/libc++/trunk/include/__hash_table:2014:23 (services_unittests+0x2738049)\n #1 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2042 (services_unittests+0x2738049)\n #2 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x2737b8e)\n #3 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737b8e)\n #4 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737b8e)\n #5 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #6 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #7 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #8 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #9 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #10 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #11 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #12 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #13 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 (services_unittests+0x4af4dc4)\n #14 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #15 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #16 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 (services_unittests+0x273b963)\n #17 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #18 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #19 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #20 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #21 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #22 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #23 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #24 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #25 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #26 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #27 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #28 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 (services_unittests+0x4106d67)\n #29 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #30 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #31 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #32 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #33 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #34 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #35 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #36 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #37 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #38 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #39 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #40 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Location is heap block of size 184 at 0x7b3000000480 allocated by main thread:\n #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 (services_unittests+0x195b8db)\n #1 net::NetworkChangeNotifier::NetworkChangeNotifier(net::NetworkChangeNotifier::NetworkChangeCalculatorParams const&) net/base/network_change_notifier.cc:679:22 (services_unittests+0x4aec24e)\n #2 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:92:7 (services_unittests+0x4af49cc)\n #3 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (services_unittests+0x4ae9bb7)\n #4 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:109:29 (services_unittests+0x52da62b)\n #5 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:302 (services_unittests+0x52da62b)\n #6 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:262:5 (services_unittests+0x52d9c42)\n #7 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #8 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #9 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #10 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #11 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #12 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #13 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #14 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #15 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #16 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #17 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #18 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #19 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #20 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #21 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #22 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #23 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #24 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #27 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/__hash_table:1539:37 in ~__hash_table\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Read of size 8 at 0x7b1400020170 by main thread:\n #0 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1583:39 (services_unittests+0x2736337)\n #1 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x2736337)\n #2 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x2736337)\n #3 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x2736337)\n #4 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8)\n #5 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8)\n #6 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8)\n #7 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8)\n #8 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8)\n #9 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #10 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #11 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #12 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #13 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #14 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #15 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #16 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #17 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #18 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #19 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #20 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #21 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #22 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #23 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #24 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #25 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #26 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #27 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #28 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #29 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #30 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #31 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #32 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #33 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #34 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #35 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #36 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #37 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #38 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #39 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #40 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #41 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 8 at 0x7b1400020170 by thread T17 (mutexes: write M467102432451626112):\n #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 (services_unittests+0x195b8db)\n #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x2737bb1)\n #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x2737bb1)\n #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x2737bb1)\n #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x2737bb1)\n #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x2737bb1)\n #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737bb1)\n #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737bb1)\n #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #16 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 (services_unittests+0x4af4dc4)\n #17 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #19 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 (services_unittests+0x273b963)\n #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #26 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #31 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 (services_unittests+0x4106d67)\n #32 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #39 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #40 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #41 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #42 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Location is heap block of size 72 at 0x7b1400020170 allocated by thread T17:\n #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 (services_unittests+0x195b8db)\n #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x2737bb1)\n #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x2737bb1)\n #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x2737bb1)\n #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x2737bb1)\n #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x2737bb1)\n #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737bb1)\n #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737bb1)\n #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #16 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 (services_unittests+0x4af4dc4)\n #17 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #19 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 (services_unittests+0x273b963)\n #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #26 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #31 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 (services_unittests+0x4106d67)\n #32 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #39 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #40 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #41 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #42 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/__hash_table:1583:39 in __deallocate_node\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Read of size 1 at 0x7b1400020197 by main thread:\n #0 __is_long buildtools/third_party/libc++/trunk/include/string:1426:39 (services_unittests+0x273634c)\n #1 ~basic_string buildtools/third_party/libc++/trunk/include/string:2137 (services_unittests+0x273634c)\n #2 ~pair buildtools/third_party/libc++/trunk/include/utility:315 (services_unittests+0x273634c)\n #3 ~pair buildtools/third_party/libc++/trunk/include/utility:315 (services_unittests+0x273634c)\n #4 __destroy<std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> > buildtools/third_party/libc++/trunk/include/memory:1747 (services_unittests+0x273634c)\n #5 destroy<std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> > buildtools/third_party/libc++/trunk/include/memory:1595 (services_unittests+0x273634c)\n #6 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1600 (services_unittests+0x273634c)\n #7 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x273634c)\n #8 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x273634c)\n #9 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x273634c)\n #10 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8)\n #11 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8)\n #12 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8)\n #13 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8)\n #14 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8)\n #15 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #20 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #22 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #23 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #24 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #25 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #26 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #27 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #28 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #29 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #30 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #31 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #32 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #33 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #34 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #35 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #36 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #37 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #38 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #39 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #40 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #41 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #42 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #43 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #44 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #45 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #46 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #47 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 8 at 0x7b1400020190 by thread T17 (mutexes: write M467102432451626112):\n #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 (services_unittests+0x195b8db)\n #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x2737bb1)\n #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x2737bb1)\n #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x2737bb1)\n #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x2737bb1)\n #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x2737bb1)\n #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737bb1)\n #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737bb1)\n #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #16 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 (services_unittests+0x4af4dc4)\n #17 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #19 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 (services_unittests+0x273b963)\n #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #26 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #31 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 (services_unittests+0x4106d67)\n #32 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #39 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #40 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #41 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #42 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Location is heap block of size 72 at 0x7b1400020170 allocated by thread T17:\n #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 (services_unittests+0x195b8db)\n #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x2737bb1)\n #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x2737bb1)\n #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x2737bb1)\n #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x2737bb1)\n #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x2737bb1)\n #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737bb1)\n #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737bb1)\n #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #16 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 (services_unittests+0x4af4dc4)\n #17 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #19 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 (services_unittests+0x273b963)\n #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #26 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #31 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 (services_unittests+0x4106d67)\n #32 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #39 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #40 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #41 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #42 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/string:1426:39 in __is_long\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b1400020180 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x273636e)\n #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x273636e)\n #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x273636e)\n #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x273636e)\n #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x273636e)\n #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x273636e)\n #7 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1601 (services_unittests+0x273636e)\n #8 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x273636e)\n #9 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x273636e)\n #10 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x273636e)\n #11 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8)\n #15 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8)\n #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #17 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #18 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #19 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #20 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #22 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #23 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #24 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #25 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #26 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #27 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #28 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #29 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #30 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #31 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #32 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #33 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #34 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #35 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #36 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #37 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #38 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #39 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #40 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #41 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #42 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #43 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #44 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #45 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #46 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #47 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #48 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous read of size 1 at 0x7b1400020184 by thread T17 (mutexes: write M467102432451626112):\n #0 operator() base/strings/string_piece.h:536:17 (services_unittests+0x2737e96)\n #1 operator() net/dns/dns_hosts.h:28 (services_unittests+0x2737e96)\n #2 operator() buildtools/third_party/libc++/trunk/include/unordered_map:440 (services_unittests+0x2737e96)\n #3 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2040 (services_unittests+0x2737e96)\n #4 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x2737b8e)\n #5 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737b8e)\n #6 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737b8e)\n #7 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #8 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #9 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #10 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #11 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #12 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #13 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #14 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #15 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 (services_unittests+0x4af4dc4)\n #16 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #17 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #18 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 (services_unittests+0x273b963)\n #19 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #20 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #21 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #22 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #23 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #24 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #25 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #26 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #27 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #28 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #29 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #30 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 (services_unittests+0x4106d67)\n #31 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #32 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #33 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #34 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #35 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #36 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #37 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #38 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #39 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #40 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #41 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #42 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b1400020138 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x273636e)\n #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x273636e)\n #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x273636e)\n #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x273636e)\n #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x273636e)\n #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x273636e)\n #7 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1601 (services_unittests+0x273636e)\n #8 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x273636e)\n #9 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x273636e)\n #10 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x273636e)\n #11 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8)\n #15 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8)\n #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #17 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #18 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #19 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #20 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #22 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #23 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #24 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #25 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #26 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #27 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #28 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #29 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #30 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #31 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #32 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #33 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #34 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #35 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #36 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #37 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #38 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #39 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #40 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #41 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #42 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #43 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #44 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #45 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #46 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #47 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #48 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous read of size 1 at 0x7b1400020139 by thread T17 (mutexes: write M467102432451626112):\n #0 operator() base/strings/string_piece.h:536:17 (services_unittests+0x2737f17)\n #1 operator() net/dns/dns_hosts.h:28 (services_unittests+0x2737f17)\n #2 operator() buildtools/third_party/libc++/trunk/include/unordered_map:440 (services_unittests+0x2737f17)\n #3 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2040 (services_unittests+0x2737f17)\n #4 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x2737b8e)\n #5 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737b8e)\n #6 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net:\n<truncated (1047056 bytes)>\ninternal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #36 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #37 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #38 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #39 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #40 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #41 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #42 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b30000004f0 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 8 at 0x7b30000004f0 by thread T17 (mutexes: write M467102432451626112):\n #0 __node_insert_multi_perform buildtools/third_party/libc++/trunk/include/__hash_table:2032:5 (services_unittests+0x27380f8)\n #1 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2042 (services_unittests+0x27380f8)\n #2 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x2737b8e)\n #3 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737b8e)\n #4 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737b8e)\n #5 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #6 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #7 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #8 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #9 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #10 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #11 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #12 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #13 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 (services_unittests+0x4af4dc4)\n #14 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #15 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #16 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 (services_unittests+0x273b963)\n #17 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #18 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #19 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #20 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #21 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #22 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #23 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #24 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #25 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #26 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #27 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #28 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 (services_unittests+0x4106d67)\n #29 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #30 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #31 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #32 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #33 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #34 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #35 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #36 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #37 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #38 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #39 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #40 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b30000004f8 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 4 at 0x7b30000004f8 by thread T17 (mutexes: write M467102432451626112):\n #0 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1569:27 (services_unittests+0x2736528)\n #1 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736528)\n #2 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736528)\n #3 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #4 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #5 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #6 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #7 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #8 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 (services_unittests+0x4af4dc4)\n #9 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #10 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #11 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 (services_unittests+0x273b963)\n #12 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #13 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #14 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #15 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #16 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #17 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #18 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #19 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #20 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #21 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #22 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #23 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 (services_unittests+0x4106d67)\n #24 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #25 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #26 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #27 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #28 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #29 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #30 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #31 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #32 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #33 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #34 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #35 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b3000000500 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 8 at 0x7b3000000500 by thread T17 (mutexes: write M467102432451626112):\n #0 memcpy /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:801:5 (services_unittests+0x18f6ea7)\n #1 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31:55 (services_unittests+0x2736555)\n #2 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #3 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #4 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #5 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #6 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #7 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 (services_unittests+0x4af4dc4)\n #8 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #9 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #10 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 (services_unittests+0x273b963)\n #11 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #12 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #13 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #14 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #15 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #16 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #17 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #18 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #19 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #20 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #21 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #22 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 (services_unittests+0x4106d67)\n #23 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #24 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #25 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #26 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #27 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #28 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #29 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #30 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #31 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #32 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #33 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #34 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b3000000518 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous read of size 8 at 0x7b3000000518 by thread T17 (mutexes: write M467102432451626112):\n #0 capacity buildtools/third_party/libc++/trunk/include/vector:372:54 (services_unittests+0x2738516)\n #1 capacity buildtools/third_party/libc++/trunk/include/vector:659 (services_unittests+0x2738516)\n #2 std::__1::enable_if<(__is_forward_iterator<net::DnsConfig::DnsOverHttpsServerConfig*>::value) && (is_constructible<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::iterator_traits<net::DnsConfig::DnsOverHttpsServerConfig*>::reference>::value), void>::type std::__1::vector<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::allocator<net::DnsConfig::DnsOverHttpsServerConfig> >::assign<net::DnsConfig::DnsOverHttpsServerConfig*>(net::DnsConfig::DnsOverHttpsServerConfig*, net::DnsConfig::DnsOverHttpsServerConfig*) buildtools/third_party/libc++/trunk/include/vector:1439 (services_unittests+0x2738516)\n #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x273657e)\n #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x273657e)\n #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #10 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 (services_unittests+0x4af4dc4)\n #11 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #13 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 (services_unittests+0x273b963)\n #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #19 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #20 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #25 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 (services_unittests+0x4106d67)\n #26 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #30 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #31 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #32 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #33 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #34 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #35 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #36 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b3000000520 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 8 at 0x7b3000000520 by thread T17 (mutexes: write M467102432451626112):\n #0 __destruct_at_end buildtools/third_party/libc++/trunk/include/vector:427:12 (services_unittests+0x27386c4)\n #1 __destruct_at_end buildtools/third_party/libc++/trunk/include/vector:833 (services_unittests+0x27386c4)\n #2 std::__1::enable_if<(__is_forward_iterator<net::DnsConfig::DnsOverHttpsServerConfig*>::value) && (is_constructible<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::iterator_traits<net::DnsConfig::DnsOverHttpsServerConfig*>::reference>::value), void>::type std::__1::vector<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::allocator<net::DnsConfig::DnsOverHttpsServerConfig> >::assign<net::DnsConfig::DnsOverHttpsServerConfig*>(net::DnsConfig::DnsOverHttpsServerConfig*, net::DnsConfig::DnsOverHttpsServerConfig*) buildtools/third_party/libc++/trunk/include/vector:1453 (services_unittests+0x27386c4)\n #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x273657e)\n #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x273657e)\n #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #10 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 (services_unittests+0x4af4dc4)\n #11 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #13 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 (services_unittests+0x273b963)\n #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #19 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #20 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #25 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 (services_unittests+0x4106d67)\n #26 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #30 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #31 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #32 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #33 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #34 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #35 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #36 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b3000000528 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous read of size 8 at 0x7b3000000528 by thread T17 (mutexes: write M467102432451626112):\n #0 capacity buildtools/third_party/libc++/trunk/include/vector:372:40 (services_unittests+0x273850a)\n #1 capacity buildtools/third_party/libc++/trunk/include/vector:659 (services_unittests+0x273850a)\n #2 std::__1::enable_if<(__is_forward_iterator<net::DnsConfig::DnsOverHttpsServerConfig*>::value) && (is_constructible<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::iterator_traits<net::DnsConfig::DnsOverHttpsServerConfig*>::reference>::value), void>::type std::__1::vector<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::allocator<net::DnsConfig::DnsOverHttpsServerConfig> >::assign<net::DnsConfig::DnsOverHttpsServerConfig*>(net::DnsConfig::DnsOverHttpsServerConfig*, net::DnsConfig::DnsOverHttpsServerConfig*) buildtools/third_party/libc++/trunk/include/vector:1439 (services_unittests+0x273850a)\n #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x273657e)\n #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x273657e)\n #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #10 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 (services_unittests+0x4af4dc4)\n #11 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #13 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 (services_unittests+0x273b963)\n #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #19 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #20 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #25 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 (services_unittests+0x4106d67)\n #26 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #30 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #31 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #32 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #33 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #34 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #35 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #36 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b3000000530 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 1 at 0x7b3000000530 by thread T17 (mutexes: write M467102432451626112):\n #0 SetDnsConfig net/base/network_change_notifier.cc:79:10 (services_unittests+0x4aec8a6)\n #1 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec8a6)\n #2 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #3 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #4 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #5 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 (services_unittests+0x4af4dc4)\n #6 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #7 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #8 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 (services_unittests+0x273b963)\n #9 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #10 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #11 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #12 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #13 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #14 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #15 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #16 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #17 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #18 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #19 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #20 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 (services_unittests+0x4106d67)\n #21 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #22 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #23 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #24 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #25 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #26 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #27 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #28 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #29 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #30 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #31 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #32 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n[ OK ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther2 (1825 ms)\n[ RUN ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther3\n[12383:12383:0525/034335.020129:18606976037:WARNING:cors_url_loader_factory.cc(153)] |fetch_credentials_mode| and |allow_credentials| or |load_flags| contradict each other.\n[ OK ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther3 (29 ms)\n[ RUN ] CorsURLLoaderTest.NavigationFromRenderer\n[ OK ] CorsURLLoaderTest.NavigationFromRenderer (16 ms)\n[ RUN ] CorsURLLoaderTest.SameOriginRequest\n[ OK ] CorsURLLoaderTest.SameOriginRequest (18 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsMode\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsMode (26 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod (23 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin\n[ OK ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin (14 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader (17 ms)\n[----------] 10 tests from CorsURLLoaderTest (2046 ms total)\n\n[----------] Global test environment tear-down\n[==========] 10 tests from 1 test suite ran. (2048 ms total)\n[ PASSED ] 10 tests.\nThreadSanitizer: reported 41 warnings\nThreadSanitizer: Matched 2 suppressions (pid=12383):\n2 race:net::(anonymous namespace)::g_network_change_notifier\n\n[412/3004] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther1 (36 ms)\n[ RUN ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther2\n[12383:12383:0525/034333.227651:18605183503:WARNING:cors_url_loader_factory.cc(153)] |fetch_credentials_mode| and |allow_credentials| or |load_flags| contradict each other.\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b1c00001998 by main thread:\n #0 reset buildtools/third_party/libc++/trunk/include/memory:2649:20 (services_unittests+0x4aed5d2)\n #1 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5d2)\n #2 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5d2)\n #3 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #4 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #5 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #6 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #7 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #8 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #9 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #10 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #11 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #12 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #13 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #14 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #15 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #16 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #17 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #18 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #19 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #20 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #21 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #22 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #23 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #24 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #25 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #26 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #27 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #28 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #29 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #30 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #31 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #32 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #33 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #34 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #35 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous read of size 8 at 0x7b1c00001998 by thread T17:\n #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (services_unittests+0x4aec87b)\n #1 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec87b)\n #2 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #3 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #4 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #5 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 (services_unittests+0x4af4dc4)\n #6 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #7 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #8 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 (services_unittests+0x273b963)\n #9 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #10 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #11 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #12 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #13 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #14 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #15 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #16 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #17 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #18 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #19 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #20 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 (services_unittests+0x4106d67)\n #21 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #22 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #23 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #24 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #25 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #26 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #27 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #28 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #29 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #30 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #31 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #32 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Location is heap block of size 104 at 0x7b1c00001960 allocated by main thread:\n #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 (services_unittests+0x195b8db)\n #1 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:10 (services_unittests+0x4ae9b8f)\n #2 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:109:29 (services_unittests+0x52da62b)\n #3 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:302 (services_unittests+0x52da62b)\n #4 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:262:5 (services_unittests+0x52d9c42)\n #5 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #6 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #7 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #8 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #9 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #10 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #11 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #12 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #13 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #14 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #15 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #16 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #17 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #18 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #19 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #20 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #21 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #22 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #23 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #24 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #25 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/memory:2649:20 in reset\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Read of size 8 at 0x7b30000004e8 by main thread:\n #0 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539:37 (services_unittests+0x273631d)\n #1 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x273631d)\n #2 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x273631d)\n #3 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8)\n #4 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8)\n #5 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8)\n #6 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8)\n #7 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8)\n #8 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #9 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #10 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #11 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #12 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #13 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #14 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #15 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #16 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #17 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #18 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #19 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #20 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #21 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #22 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #23 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #24 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #25 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #26 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #27 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #28 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #29 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #30 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #31 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #32 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #33 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #34 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #35 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #36 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #37 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #38 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #39 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #40 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 8 at 0x7b30000004e8 by thread T17 (mutexes: write M467102432451626112):\n #0 __node_insert_multi_perform buildtools/third_party/libc++/trunk/include/__hash_table:2014:23 (services_unittests+0x2738049)\n #1 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2042 (services_unittests+0x2738049)\n #2 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x2737b8e)\n #3 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737b8e)\n #4 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737b8e)\n #5 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #6 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #7 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #8 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #9 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #10 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #11 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #12 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #13 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 (services_unittests+0x4af4dc4)\n #14 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #15 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #16 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 (services_unittests+0x273b963)\n #17 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #18 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #19 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #20 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #21 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #22 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #23 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #24 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #25 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #26 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #27 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #28 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 (services_unittests+0x4106d67)\n #29 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #30 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #31 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #32 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #33 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #34 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #35 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #36 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #37 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #38 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #39 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #40 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Location is heap block of size 184 at 0x7b3000000480 allocated by main thread:\n #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 (services_unittests+0x195b8db)\n #1 net::NetworkChangeNotifier::NetworkChangeNotifier(net::NetworkChangeNotifier::NetworkChangeCalculatorParams const&) net/base/network_change_notifier.cc:679:22 (services_unittests+0x4aec24e)\n #2 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:92:7 (services_unittests+0x4af49cc)\n #3 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:14 (services_unittests+0x4ae9bb7)\n #4 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:109:29 (services_unittests+0x52da62b)\n #5 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:302 (services_unittests+0x52da62b)\n #6 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:262:5 (services_unittests+0x52d9c42)\n #7 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #8 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #9 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #10 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #11 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #12 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #13 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #14 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #15 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #16 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #17 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #18 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #19 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #20 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #21 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #22 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #23 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #24 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #25 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #26 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #27 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/__hash_table:1539:37 in ~__hash_table\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Read of size 8 at 0x7b1400020170 by main thread:\n #0 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1583:39 (services_unittests+0x2736337)\n #1 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x2736337)\n #2 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x2736337)\n #3 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x2736337)\n #4 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8)\n #5 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8)\n #6 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8)\n #7 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8)\n #8 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8)\n #9 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #10 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #11 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #12 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #13 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #14 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #15 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #16 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #17 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #18 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #19 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #20 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #21 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #22 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #23 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #24 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #25 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #26 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #27 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #28 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #29 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #30 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #31 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #32 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #33 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #34 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #35 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #36 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #37 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #38 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #39 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #40 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #41 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 8 at 0x7b1400020170 by thread T17 (mutexes: write M467102432451626112):\n #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 (services_unittests+0x195b8db)\n #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x2737bb1)\n #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x2737bb1)\n #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x2737bb1)\n #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x2737bb1)\n #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x2737bb1)\n #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737bb1)\n #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737bb1)\n #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #16 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 (services_unittests+0x4af4dc4)\n #17 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #19 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 (services_unittests+0x273b963)\n #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #26 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #31 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 (services_unittests+0x4106d67)\n #32 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #39 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #40 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #41 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #42 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Location is heap block of size 72 at 0x7b1400020170 allocated by thread T17:\n #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 (services_unittests+0x195b8db)\n #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x2737bb1)\n #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x2737bb1)\n #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x2737bb1)\n #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x2737bb1)\n #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x2737bb1)\n #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737bb1)\n #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737bb1)\n #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #16 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 (services_unittests+0x4af4dc4)\n #17 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #19 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 (services_unittests+0x273b963)\n #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #26 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #31 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 (services_unittests+0x4106d67)\n #32 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #39 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #40 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #41 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #42 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/__hash_table:1583:39 in __deallocate_node\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Read of size 1 at 0x7b1400020197 by main thread:\n #0 __is_long buildtools/third_party/libc++/trunk/include/string:1426:39 (services_unittests+0x273634c)\n #1 ~basic_string buildtools/third_party/libc++/trunk/include/string:2137 (services_unittests+0x273634c)\n #2 ~pair buildtools/third_party/libc++/trunk/include/utility:315 (services_unittests+0x273634c)\n #3 ~pair buildtools/third_party/libc++/trunk/include/utility:315 (services_unittests+0x273634c)\n #4 __destroy<std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> > buildtools/third_party/libc++/trunk/include/memory:1747 (services_unittests+0x273634c)\n #5 destroy<std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> > buildtools/third_party/libc++/trunk/include/memory:1595 (services_unittests+0x273634c)\n #6 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1600 (services_unittests+0x273634c)\n #7 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x273634c)\n #8 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x273634c)\n #9 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x273634c)\n #10 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8)\n #11 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8)\n #12 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8)\n #13 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8)\n #14 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8)\n #15 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #20 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #22 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #23 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #24 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #25 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #26 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #27 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #28 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #29 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #30 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #31 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #32 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #33 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #34 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #35 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #36 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #37 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #38 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #39 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #40 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #41 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #42 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #43 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #44 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #45 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #46 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #47 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 8 at 0x7b1400020190 by thread T17 (mutexes: write M467102432451626112):\n #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 (services_unittests+0x195b8db)\n #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x2737bb1)\n #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x2737bb1)\n #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x2737bb1)\n #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x2737bb1)\n #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x2737bb1)\n #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737bb1)\n #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737bb1)\n #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #16 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 (services_unittests+0x4af4dc4)\n #17 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #19 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 (services_unittests+0x273b963)\n #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #26 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #31 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 (services_unittests+0x4106d67)\n #32 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #39 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #40 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #41 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #42 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Location is heap block of size 72 at 0x7b1400020170 allocated by thread T17:\n #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 (services_unittests+0x195b8db)\n #1 __libcpp_allocate buildtools/third_party/libc++/trunk/include/new:238:10 (services_unittests+0x2737bb1)\n #2 allocate buildtools/third_party/libc++/trunk/include/memory:1813 (services_unittests+0x2737bb1)\n #3 allocate buildtools/third_party/libc++/trunk/include/memory:1546 (services_unittests+0x2737bb1)\n #4 __construct_node<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2524 (services_unittests+0x2737bb1)\n #5 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2186 (services_unittests+0x2737bb1)\n #6 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737bb1)\n #7 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737bb1)\n #8 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #9 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #10 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #11 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #12 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #13 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #14 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #15 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #16 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 (services_unittests+0x4af4dc4)\n #17 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #18 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #19 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 (services_unittests+0x273b963)\n #20 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #21 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #22 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #23 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #24 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #25 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #26 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #27 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #28 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #29 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #30 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #31 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 (services_unittests+0x4106d67)\n #32 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #33 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #34 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #35 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #36 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #37 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #38 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #39 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #40 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #41 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #42 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #43 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race buildtools/third_party/libc++/trunk/include/string:1426:39 in __is_long\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b1400020180 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x273636e)\n #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x273636e)\n #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x273636e)\n #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x273636e)\n #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x273636e)\n #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x273636e)\n #7 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1601 (services_unittests+0x273636e)\n #8 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x273636e)\n #9 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x273636e)\n #10 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x273636e)\n #11 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8)\n #15 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8)\n #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #17 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #18 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #19 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #20 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #22 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #23 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #24 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #25 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #26 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #27 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #28 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #29 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #30 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #31 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #32 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #33 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #34 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #35 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #36 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #37 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #38 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #39 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #40 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #41 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #42 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #43 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #44 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #45 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #46 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #47 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #48 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous read of size 1 at 0x7b1400020184 by thread T17 (mutexes: write M467102432451626112):\n #0 operator() base/strings/string_piece.h:536:17 (services_unittests+0x2737e96)\n #1 operator() net/dns/dns_hosts.h:28 (services_unittests+0x2737e96)\n #2 operator() buildtools/third_party/libc++/trunk/include/unordered_map:440 (services_unittests+0x2737e96)\n #3 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2040 (services_unittests+0x2737e96)\n #4 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x2737b8e)\n #5 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737b8e)\n #6 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737b8e)\n #7 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #8 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #9 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #10 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #11 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #12 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #13 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #14 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #15 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 (services_unittests+0x4af4dc4)\n #16 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #17 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #18 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 (services_unittests+0x273b963)\n #19 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #20 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #21 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #22 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #23 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #24 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #25 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #26 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #27 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #28 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #29 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #30 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 (services_unittests+0x4106d67)\n #31 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #32 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #33 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #34 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #35 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #36 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #37 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #38 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #39 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #40 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #41 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #42 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b1400020138 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 __do_call buildtools/third_party/libc++/trunk/include/new:319:12 (services_unittests+0x273636e)\n #2 __do_deallocate_handle_size buildtools/third_party/libc++/trunk/include/new:277 (services_unittests+0x273636e)\n #3 __do_deallocate_handle_size_align buildtools/third_party/libc++/trunk/include/new:247 (services_unittests+0x273636e)\n #4 __libcpp_deallocate buildtools/third_party/libc++/trunk/include/new:325 (services_unittests+0x273636e)\n #5 deallocate buildtools/third_party/libc++/trunk/include/memory:1816 (services_unittests+0x273636e)\n #6 deallocate buildtools/third_party/libc++/trunk/include/memory:1554 (services_unittests+0x273636e)\n #7 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1601 (services_unittests+0x273636e)\n #8 ~__hash_table buildtools/third_party/libc++/trunk/include/__hash_table:1539 (services_unittests+0x273636e)\n #9 ~unordered_map buildtools/third_party/libc++/trunk/include/unordered_map:968 (services_unittests+0x273636e)\n #10 net::DnsConfig::~DnsConfig() net/dns/dns_config.cc:29 (services_unittests+0x273636e)\n #11 ~NetworkState net/base/network_change_notifier.cc:68:27 (services_unittests+0x4aed5e8)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338 (services_unittests+0x4aed5e8)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5e8)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5e8)\n #15 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5e8)\n #16 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #17 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #18 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #19 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #20 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #21 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #22 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #23 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #24 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #25 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #26 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #27 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #28 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #29 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #30 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #31 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #32 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #33 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #34 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #35 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #36 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #37 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #38 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #39 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #40 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #41 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #42 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #43 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #44 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #45 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #46 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #47 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #48 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous read of size 1 at 0x7b1400020139 by thread T17 (mutexes: write M467102432451626112):\n #0 operator() base/strings/string_piece.h:536:17 (services_unittests+0x2737f17)\n #1 operator() net/dns/dns_hosts.h:28 (services_unittests+0x2737f17)\n #2 operator() buildtools/third_party/libc++/trunk/include/unordered_map:440 (services_unittests+0x2737f17)\n #3 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2040 (services_unittests+0x2737f17)\n #4 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x2737b8e)\n #5 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737b8e)\n #6 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1\n<truncated (1046717 bytes)>\ninternal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #36 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #37 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #38 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #39 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #40 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #41 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #42 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b30000004f0 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 8 at 0x7b30000004f0 by thread T17 (mutexes: write M467102432451626112):\n #0 __node_insert_multi_perform buildtools/third_party/libc++/trunk/include/__hash_table:2032:5 (services_unittests+0x27380f8)\n #1 std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__node_insert_multi(std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*) buildtools/third_party/libc++/trunk/include/__hash_table:2042 (services_unittests+0x27380f8)\n #2 __emplace_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:2187:20 (services_unittests+0x2737b8e)\n #3 __insert_multi<const std::__1::pair<const std::__1::pair<std::__1::basic_string<char>, net::AddressFamily>, net::IPAddress> &> buildtools/third_party/libc++/trunk/include/__hash_table:1143 (services_unittests+0x2737b8e)\n #4 void std::__1::__hash_table<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::__unordered_map_hasher<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, net::DnsHostsKeyHash, true>, std::__1::__unordered_map_equal<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, std::__1::equal_to<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily> >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress> > >::__assign_multi<std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*> >(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>, std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, net::AddressFamily>, net::IPAddress>, void*>*>) buildtools/third_party/libc++/trunk/include/__hash_table:1793 (services_unittests+0x2737b8e)\n #5 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1570:9 (services_unittests+0x2736543)\n #6 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736543)\n #7 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736543)\n #8 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #9 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #10 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #11 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #12 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #13 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 (services_unittests+0x4af4dc4)\n #14 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #15 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #16 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 (services_unittests+0x273b963)\n #17 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #18 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #19 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #20 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #21 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #22 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #23 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #24 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #25 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #26 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #27 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #28 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 (services_unittests+0x4106d67)\n #29 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #30 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #31 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #32 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #33 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #34 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #35 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #36 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #37 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #38 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #39 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #40 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b30000004f8 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 4 at 0x7b30000004f8 by thread T17 (mutexes: write M467102432451626112):\n #0 operator= buildtools/third_party/libc++/trunk/include/__hash_table:1569:27 (services_unittests+0x2736528)\n #1 operator= buildtools/third_party/libc++/trunk/include/unordered_map:974 (services_unittests+0x2736528)\n #2 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x2736528)\n #3 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #4 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #5 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #6 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #7 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #8 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 (services_unittests+0x4af4dc4)\n #9 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #10 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #11 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 (services_unittests+0x273b963)\n #12 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #13 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #14 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #15 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #16 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #17 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #18 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #19 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #20 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #21 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #22 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #23 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 (services_unittests+0x4106d67)\n #24 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #25 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #26 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #27 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #28 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #29 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #30 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #31 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #32 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #33 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #34 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #35 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b3000000500 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 8 at 0x7b3000000500 by thread T17 (mutexes: write M467102432451626112):\n #0 memcpy /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:801:5 (services_unittests+0x18f6ea7)\n #1 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31:55 (services_unittests+0x2736555)\n #2 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #3 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #4 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #5 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #6 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #7 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 (services_unittests+0x4af4dc4)\n #8 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #9 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #10 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 (services_unittests+0x273b963)\n #11 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #12 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #13 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #14 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #15 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #16 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #17 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #18 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #19 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #20 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #21 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #22 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 (services_unittests+0x4106d67)\n #23 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #24 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #25 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #26 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #27 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #28 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #29 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #30 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #31 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #32 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #33 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #34 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b3000000518 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous read of size 8 at 0x7b3000000518 by thread T17 (mutexes: write M467102432451626112):\n #0 capacity buildtools/third_party/libc++/trunk/include/vector:372:54 (services_unittests+0x2738516)\n #1 capacity buildtools/third_party/libc++/trunk/include/vector:659 (services_unittests+0x2738516)\n #2 std::__1::enable_if<(__is_forward_iterator<net::DnsConfig::DnsOverHttpsServerConfig*>::value) && (is_constructible<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::iterator_traits<net::DnsConfig::DnsOverHttpsServerConfig*>::reference>::value), void>::type std::__1::vector<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::allocator<net::DnsConfig::DnsOverHttpsServerConfig> >::assign<net::DnsConfig::DnsOverHttpsServerConfig*>(net::DnsConfig::DnsOverHttpsServerConfig*, net::DnsConfig::DnsOverHttpsServerConfig*) buildtools/third_party/libc++/trunk/include/vector:1439 (services_unittests+0x2738516)\n #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x273657e)\n #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x273657e)\n #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #10 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 (services_unittests+0x4af4dc4)\n #11 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #13 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 (services_unittests+0x273b963)\n #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #19 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #20 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #25 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 (services_unittests+0x4106d67)\n #26 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #30 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #31 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #32 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #33 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #34 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #35 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #36 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b3000000520 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 8 at 0x7b3000000520 by thread T17 (mutexes: write M467102432451626112):\n #0 __destruct_at_end buildtools/third_party/libc++/trunk/include/vector:427:12 (services_unittests+0x27386c4)\n #1 __destruct_at_end buildtools/third_party/libc++/trunk/include/vector:833 (services_unittests+0x27386c4)\n #2 std::__1::enable_if<(__is_forward_iterator<net::DnsConfig::DnsOverHttpsServerConfig*>::value) && (is_constructible<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::iterator_traits<net::DnsConfig::DnsOverHttpsServerConfig*>::reference>::value), void>::type std::__1::vector<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::allocator<net::DnsConfig::DnsOverHttpsServerConfig> >::assign<net::DnsConfig::DnsOverHttpsServerConfig*>(net::DnsConfig::DnsOverHttpsServerConfig*, net::DnsConfig::DnsOverHttpsServerConfig*) buildtools/third_party/libc++/trunk/include/vector:1453 (services_unittests+0x27386c4)\n #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x273657e)\n #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x273657e)\n #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #10 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 (services_unittests+0x4af4dc4)\n #11 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #13 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 (services_unittests+0x273b963)\n #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #19 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #20 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #25 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 (services_unittests+0x4106d67)\n #26 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #30 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #31 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #32 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #33 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #34 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #35 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #36 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b3000000528 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous read of size 8 at 0x7b3000000528 by thread T17 (mutexes: write M467102432451626112):\n #0 capacity buildtools/third_party/libc++/trunk/include/vector:372:40 (services_unittests+0x273850a)\n #1 capacity buildtools/third_party/libc++/trunk/include/vector:659 (services_unittests+0x273850a)\n #2 std::__1::enable_if<(__is_forward_iterator<net::DnsConfig::DnsOverHttpsServerConfig*>::value) && (is_constructible<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::iterator_traits<net::DnsConfig::DnsOverHttpsServerConfig*>::reference>::value), void>::type std::__1::vector<net::DnsConfig::DnsOverHttpsServerConfig, std::__1::allocator<net::DnsConfig::DnsOverHttpsServerConfig> >::assign<net::DnsConfig::DnsOverHttpsServerConfig*>(net::DnsConfig::DnsOverHttpsServerConfig*, net::DnsConfig::DnsOverHttpsServerConfig*) buildtools/third_party/libc++/trunk/include/vector:1439 (services_unittests+0x273850a)\n #3 operator= buildtools/third_party/libc++/trunk/include/vector:1403:9 (services_unittests+0x273657e)\n #4 net::DnsConfig::operator=(net::DnsConfig const&) net/dns/dns_config.cc:31 (services_unittests+0x273657e)\n #5 SetDnsConfig net/base/network_change_notifier.cc:77:17 (services_unittests+0x4aec893)\n #6 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec893)\n #7 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #8 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #9 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #10 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 (services_unittests+0x4af4dc4)\n #11 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #12 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #13 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 (services_unittests+0x273b963)\n #14 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #15 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #16 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #17 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #18 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #19 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #20 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #21 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #22 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #23 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #24 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #25 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 (services_unittests+0x4106d67)\n #26 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #27 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #28 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #29 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #30 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #31 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #32 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #33 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #34 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #35 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #36 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #37 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n==================\nWARNING: ThreadSanitizer: data race (pid=12383)\n Write of size 8 at 0x7b3000000530 by main thread:\n #0 operator delete(void*) /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 (services_unittests+0x195c02e)\n #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x4aed5f8)\n #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x4aed5f8)\n #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5f8)\n #4 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5f8)\n #5 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #6 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #7 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #8 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #9 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #10 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #11 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #12 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #13 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #14 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #15 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #16 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #17 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1a1f472)\n #18 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1a1f472)\n #19 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1a1f472)\n #20 network::cors::(anonymous namespace)::CorsURLLoaderTest::~CorsURLLoaderTest() services/network/cors/cors_url_loader_unittest.cc:136 (services_unittests+0x1a1f472)\n #21 network::cors::(anonymous namespace)::CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test::~CorsURLLoaderTest_CredentialsModeAndLoadFlagsContradictEachOther2_Test() services/network/cors/cors_url_loader_unittest.cc:504:1 (services_unittests+0x1a192e9)\n #22 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #23 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #24 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #25 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #26 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #27 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #28 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #29 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #30 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #31 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #32 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #33 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #34 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #35 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #36 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #37 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous write of size 1 at 0x7b3000000530 by thread T17 (mutexes: write M467102432451626112):\n #0 SetDnsConfig net/base/network_change_notifier.cc:79:10 (services_unittests+0x4aec8a6)\n #1 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec8a6)\n #2 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #3 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #4 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #5 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 (services_unittests+0x4af4dc4)\n #6 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #7 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #8 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 (services_unittests+0x273b963)\n #9 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #10 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #11 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #12 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #13 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #14 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #15 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #16 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #17 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #18 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #19 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #20 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 (services_unittests+0x4106d67)\n #21 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #22 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #23 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #24 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #25 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #26 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #27 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #28 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #29 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #30 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #31 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #32 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Mutex M467102432451626112 is already destroyed.\n\n Thread T17 'ThreadPoolForeg' (tid=12516, running) created by main thread at:\n #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:989:3 (services_unittests+0x18ecbfb)\n #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (services_unittests+0x415d427)\n #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (services_unittests+0x415d325)\n #3 base::internal::WorkerThread::Start(base::WorkerThreadObserver*) base/task/thread_pool/worker_thread.cc:68:3 (services_unittests+0x40f7e7d)\n #4 operator() base/task/thread_pool/thread_group_impl.cc:185:15 (services_unittests+0x40eff1b)\n #5 ForEachWorker<(lambda at ../../base/task/thread_pool/thread_group_impl.cc:184:37)> base/task/thread_pool/thread_group_impl.cc:150 (services_unittests+0x40eff1b)\n #6 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::FlushImpl() base/task/thread_pool/thread_group_impl.cc:184 (services_unittests+0x40eff1b)\n #7 base::internal::ThreadGroupImpl::ScopedWorkersExecutor::~ScopedWorkersExecutor() base/task/thread_pool/thread_group_impl.cc:103:30 (services_unittests+0x40ec924)\n #8 base::internal::ThreadGroupImpl::PushTaskSourceAndWakeUpWorkers(base::internal::BasicTaskSourceAndTransaction<base::internal::RegisteredTaskSource>) base/task/thread_pool/thread_group_impl.cc:446:1 (services_unittests+0x40ed0cd)\n #9 base::internal::ThreadPoolImpl::PostTaskWithSequenceNow(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:343:38 (services_unittests+0x40e5ab1)\n #10 base::internal::ThreadPoolImpl::PostTaskWithSequence(base::internal::Task, scoped_refptr<base::internal::Sequence>) base/task/thread_pool/thread_pool_impl.cc:360:12 (services_unittests+0x40e5d53)\n #11 base::internal::ThreadPoolImpl::PostDelayedTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::TimeDelta) base/task/thread_pool/thread_pool_impl.cc:221:10 (services_unittests+0x40e5071)\n #12 PostDelayedTaskWithTraits base/task/post_task.cc:85:9 (services_unittests+0x40c65ab)\n #13 base::PostTaskWithTraits(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>) base/task/post_task.cc:75 (services_unittests+0x40c65ab)\n #14 base::(anonymous namespace)::PostTaskAndReplyWithTraitsTaskRunner::PostTask(base::Location const&, base::OnceCallback<void ()>) base/task/post_task.cc:27:5 (services_unittests+0x40c69df)\n #15 base::internal::PostTaskAndReplyImpl::PostTaskAndReply(base::Location const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/threading/post_task_and_reply_impl.cc:138:34 (services_unittests+0x41068e2)\n #16 base::PostTaskWithTraitsAndReply(base::Location const&, base::TaskTraits const&, base::OnceCallback<void ()>, base::OnceCallback<void ()>) base/task/post_task.cc:93:55 (services_unittests+0x40c6439)\n #17 PostTaskWithTraitsAndReplyWithResult<OnceCallback, bool, bool, void> base/task/post_task.h:163:10 (services_unittests+0x2758be5)\n #18 net::HostResolverManager::RunLoopbackProbeJob() net/dns/host_resolver_manager.cc:2995 (services_unittests+0x2758be5)\n #19 net::HostResolverManager::HostResolverManager(net::HostResolver::ManagerOptions const&, net::NetLog*, base::RepeatingCallback<std::__1::unique_ptr<net::DnsClient, std::__1::default_delete<net::DnsClient> > (net::NetLog*)>) net/dns/host_resolver_manager.cc:2344:3 (services_unittests+0x2754297)\n #20 make_unique<net::HostResolverManager, net::HostResolver::ManagerOptions, net::NetLog *&> buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52da86d)\n #21 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:321 (services_unittests+0x52da86d)\n #22 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:262:5 (services_unittests+0x52d9c42)\n #23 std::__1::__unique_if<network::NetworkService>::__unique_single std::__1::make_unique<network::NetworkService, std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >, std::nullptr_t, std::nullptr_t, mojo::InterfaceRequest<service_manager::mojom::Service> >(std::__1::unique_ptr<service_manager::BinderRegistryWithArgs<>, std::__1::default_delete<service_manager::BinderRegistryWithArgs<> > >&&, std::nullptr_t&&, std::nullptr_t&&, mojo::InterfaceRequest<service_manager::mojom::Service>&&) buildtools/third_party/libc++/trunk/include/memory:3131:32 (services_unittests+0x52db684)\n #24 network::NetworkService::CreateForTesting(mojo::InterfaceRequest<service_manager::mojom::Service>) services/network/network_service.cc:387:10 (services_unittests+0x52db595)\n #25 network::NetworkService::CreateForTesting() services/network/network_service.cc:382:10 (services_unittests+0x52db4e4)\n #26 network::cors::(anonymous namespace)::CorsURLLoaderTest::SetUp() services/network/cors/cors_url_loader_unittest.cc:156:24 (services_unittests+0x1a11f4a)\n #27 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2bbc2)\n #28 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2517 (services_unittests+0x2a2bbc2)\n #29 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2698:11 (services_unittests+0x2a2cf68)\n #30 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #31 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #32 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #33 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #34 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #35 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #36 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #37 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #38 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #39 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #40 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #41 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #42 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #43 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\nSUMMARY: ThreadSanitizer: data race /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_new_delete.cc:126:3 in operator delete(void*)\n==================\n[ OK ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther2 (1825 ms)\n[ RUN ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther3\n[12383:12383:0525/034335.020129:18606976037:WARNING:cors_url_loader_factory.cc(153)] |fetch_credentials_mode| and |allow_credentials| or |load_flags| contradict each other.\n[ OK ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther3 (29 ms)\n[ RUN ] CorsURLLoaderTest.NavigationFromRenderer\n[ OK ] CorsURLLoaderTest.NavigationFromRenderer (16 ms)\n[ RUN ] CorsURLLoaderTest.SameOriginRequest\n[ OK ] CorsURLLoaderTest.SameOriginRequest (18 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsMode\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsMode (26 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod (23 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin\n[ OK ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin (14 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader (17 ms)\n[----------] 10 tests from CorsURLLoaderTest (2046 ms total)\n\n[----------] Global test environment tear-down\n[==========] 10 tests from 1 test suite ran. (2048 ms total)\n[ PASSED ] 10 tests.\nThreadSanitizer: reported 41 warnings\nThreadSanitizer: Matched 2 suppressions (pid=12383):\n2 race:net::(anonymous namespace)::g_network_change_notifier\n\n[413/3004] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther2 (1825 ms)\n[ RUN ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther3\n[12383:12383:0525/034335.020129:18606976037:WARNING:cors_url_loader_factory.cc(153)] |fetch_credentials_mode| and |allow_credentials| or |load_flags| contradict each other.\n[ OK ] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther3 (29 ms)\n[ RUN ] CorsURLLoaderTest.NavigationFromRenderer\n[ OK ] CorsURLLoaderTest.NavigationFromRenderer (16 ms)\n[ RUN ] CorsURLLoaderTest.SameOriginRequest\n[ OK ] CorsURLLoaderTest.SameOriginRequest (18 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsMode\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsMode (26 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod (23 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin\n[ OK ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin (14 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader (17 ms)\n[----------] 10 tests from CorsURLLoaderTest (2046 ms total)\n\n[----------] Global test environment tear-down\n[==========] 10 tests from 1 test suite ran. (2048 ms total)\n[ PASSED ] 10 tests.\nThreadSanitizer: reported 41 warnings\nThreadSanitizer: Matched 2 suppressions (pid=12383):\n2 race:net::(anonymous namespace)::g_network_change_notifier\n[414/3004] CorsURLLoaderTest.CredentialsModeAndLoadFlagsContradictEachOther3 (29 ms)\n[ RUN ] CorsURLLoaderTest.NavigationFromRenderer\n[ OK ] CorsURLLoaderTest.NavigationFromRenderer (16 ms)\n[ RUN ] CorsURLLoaderTest.SameOriginRequest\n[ OK ] CorsURLLoaderTest.SameOriginRequest (18 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsMode\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsMode (26 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod (23 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin\n[ OK ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin (14 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader (17 ms)\n[----------] 10 tests from CorsURLLoaderTest (2046 ms total)\n\n[----------] Global test environment tear-down\n[==========] 10 tests from 1 test suite ran. (2048 ms total)\n[ PASSED ] 10 tests.\nThreadSanitizer: reported 41 warnings\nThreadSanitizer: Matched 2 suppressions (pid=12383):\n2 race:net::(anonymous namespace)::g_network_change_notifier\n[415/3004] CorsURLLoaderTest.NavigationFromRenderer (16 ms)\n[ RUN ] CorsURLLoaderTest.SameOriginRequest\n[ OK ] CorsURLLoaderTest.SameOriginRequest (18 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsMode\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsMode (26 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod (23 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin\n[ OK ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin (14 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader (17 ms)\n[----------] 10 tests from CorsURLLoaderTest (2046 ms total)\n\n[----------] Global test environment tear-down\n[==========] 10 tests from 1 test suite ran. (2048 ms total)\n[ PASSED ] 10 tests.\nThreadSanitizer: reported 41 warnings\nThreadSanitizer: Matched 2 suppressions (pid=12383):\n2 race:net::(anonymous namespace)::g_network_change_notifier\n[416/3004] CorsURLLoaderTest.SameOriginRequest (18 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsMode\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsMode (26 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod (23 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin\n[ OK ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin (14 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader (17 ms)\n[----------] 10 tests from CorsURLLoaderTest (2046 ms total)\n\n[----------] Global test environment tear-down\n[==========] 10 tests from 1 test suite ran. (2048 ms total)\n[ PASSED ] 10 tests.\nThreadSanitizer: reported 41 warnings\nThreadSanitizer: Matched 2 suppressions (pid=12383):\n2 race:net::(anonymous namespace)::g_network_change_notifier\n[417/3004] CorsURLLoaderTest.CrossOriginRequestWithNoCorsMode (26 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod (23 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin\n[ OK ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin (14 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader (17 ms)\n[----------] 10 tests from CorsURLLoaderTest (2046 ms total)\n\n[----------] Global test environment tear-down\n[==========] 10 tests from 1 test suite ran. (2048 ms total)\n[ PASSED ] 10 tests.\nThreadSanitizer: reported 41 warnings\nThreadSanitizer: Matched 2 suppressions (pid=12383):\n2 race:net::(anonymous namespace)::g_network_change_notifier\n[418/3004] CorsURLLoaderTest.CrossOriginRequestWithNoCorsModeAndPatchMethod (23 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin\n[ OK ] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin (14 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader (17 ms)\n[----------] 10 tests from CorsURLLoaderTest (2046 ms total)\n\n[----------] Global test environment tear-down\n[==========] 10 tests from 1 test suite ran. (2048 ms total)\n[ PASSED ] 10 tests.\nThreadSanitizer: reported 41 warnings\nThreadSanitizer: Matched 2 suppressions (pid=12383):\n2 race:net::(anonymous namespace)::g_network_change_notifier\n[419/3004] CorsURLLoaderTest.CrossOriginRequestFetchRequestModeSameOrigin (14 ms)\n[ RUN ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader\n[ OK ] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader (17 ms)\n[----------] 10 tests from CorsURLLoaderTest (2046 ms total)\n\n[----------] Global test environment tear-down\n[==========] 10 tests from 1 test suite ran. (2048 ms total)\n[ PASSED ] 10 tests.\nThreadSanitizer: reported 41 warnings\nThreadSanitizer: Matched 2 suppressions (pid=12383):\n2 race:net::(anonymous namespace)::g_network_change_notifier\n[420/3004] CorsURLLoaderTest.CrossOriginRequestWithCorsModeButMissingCorsHeader (17 ms)\n[421/3004] NetworkServiceProxyDelegateTest.AddsHeadersBeforeCache (14 ms)\n[422/3004] NetworkServiceProxyDelegateTest.DoesNotAddHeadersBeforeCacheWithEmptyConfig (12 ms)\n[423/3004] NetworkServiceProxyDelegateTest.DoesNotAddHeadersBeforeCacheForHttps (14 ms)\n[424/3004] NetworkServiceProxyDelegateTest.DoesNotAddHeadersBeforeCacheForWebSocket (17 ms)\n[425/3004] NetworkServiceProxyDelegateTest.AddsHeadersAfterCache (10 ms)\n[426/3004] NetworkServiceProxyDelegateTest.DoesNotAddHeadersAfterCacheForProxyNotInConfig (15 ms)\n[427/3004] NetworkServiceProxyDelegateTest.DoesNotAddHeadersAfterCacheForDirect (15 ms)\n[428/3004] NetworkServiceProxyDelegateTest.DoesNotAddHeadersAfterCacheForHttps (15 ms)\n[429/3004] NetworkServiceProxyDelegateTest.DoesNotAddHeadersIfProxyIsBypassed (13 ms)\n[430/3004] NetworkServiceProxyDelegateTest.RemovesPreCacheHeadersWhenProxyNotInConfig (5 ms)\n[431/3004] NetworkServiceProxyDelegateTest.DoesNotRemoveHeaderForHttpsIfAlreadyExists (16 ms)\n[432/3004] NetworkServiceProxyDelegateTest.KeepsPreCacheHeadersWhenProxyInConfig (10 ms)\n[433/3004] NetworkServiceProxyDelegateTest.KeepsHeadersWhenConfigUpdated (14 ms)\n[434/3004] NetworkServiceProxyDelegateTest.RemovesPreCacheHeadersWhenConfigUpdatedToBeEmpty (42 ms)\n[435/3004] NetworkServiceProxyDelegateTest.AddsHeadersToTunnelRequest (7 ms)\n[436/3004] NetworkServiceProxyDelegateTest.OnResolveProxySuccessHttpProxy (7 ms)\n[437/3004] NetworkServiceProxyDelegateTest.OnResolveProxySuccessHttpsProxy (7 ms)\n[438/3004] NetworkServiceProxyDelegateTest.OnResolveProxySuccessHttpsProxyNoQuic (11 ms)\n[439/3004] NetworkServiceProxyDelegateTest.OnResolveProxySuccessHttpsUrl (33 ms)\n[440/3004] NetworkServiceProxyDelegateTest.OnResolveProxySuccessWebSocketUrl (33 ms)\n[441/3004] NetworkContextTest.ClearBadProxiesCache (30 ms)\n[442/3004] NetworkContextTest.ProxyErrorClientNotifiedOfProxyConnection (26 ms)\n[443/3004] NetworkContextTest.ProxyErrorClientNotNotifiedOfUnreachableError (36 ms)\n[444/3004] NetworkContextTest.ProxyErrorClientNotifiedOfPacError (33 ms)\n[445/3004] NetworkContextTest.EnsureProperProxyServerIsUsed (67 ms)\n[446/3004] NetworkContextTest.HeaderClientModifiesHeaders (61 ms)\n[447/3004] NetworkContextTest.HeaderClientFailsRequest (46 ms)\n[448/3004] NetworkContextTest.HangingHeaderClientModifiesHeadersAsynchronously (42 ms)\n[449/3004] NetworkContextTest.HangingHeaderClientAbortDuringOnBeforeSendHeaders (49 ms)\n[450/3004] NetworkContextTest.HangingHeaderClientAbortDuringOnHeadersReceived (56 ms)\n[451/3004] NetworkContextMockHostTest.CustomProxyDoesNotAddHeadersWhenNoProxyUsed (57 ms)\n[452/3004] NetworkContextMockHostTest.CustomProxyDoesNotAddHeadersWhenOtherProxyUsed (41 ms)\n[453/3004] NetworkContextMockHostTest.CustomProxyUsesSpecifiedProxyList (52 ms)\n[454/3004] NetworkContextMockHostTest.UseCustomProxyForNavigationAndRenderFrameRequest (119 ms)\n[455/3004] NetworkQualitiesPrefDelegateTest.WritingReadingToPrefsEnabled (46 ms)\n[456/3004] NetworkQualityEstimatorManagerTest.ClientNotified (7 ms)\n[457/3004] NetworkQualityEstimatorManagerTest.ClientNotifiedUnknownNetworkQuality (22 ms)\n[458/3004] NetworkQualityEstimatorManagerTest.OneClientPipeBroken (23 ms)\n[459/3004] NetworkQualityEstimatorManagerTest.NewClientReceivesCurrentEffectiveType (13 ms)\n[460/3004] NetworkServiceProxyDelegateTest.NullConfigDoesNotCrash (5 ms)\n[461/3004] NetworkServiceProxyDelegateTest.OnResolveProxyNoRuleForHttpsUrl (26 ms)\n[462/3004] NetworkServiceProxyDelegateTest.OnResolveProxyLocalhost (15 ms)\n[463/3004] NetworkServiceProxyDelegateTest.OnResolveProxyEmptyConfig (7 ms)\n[464/3004] NetworkServiceProxyDelegateTest.OnResolveProxyNonIdempotentMethod (8 ms)\n[465/3004] NetworkServiceProxyDelegateTest.OnResolveProxyNonIdempotentMethodAllowed (6 ms)\n[466/3004] NetworkServiceProxyDelegateTest.OnResolveProxyBypassForWebSocketScheme (6 ms)\n[467/3004] NetworkServiceProxyDelegateTest.OnResolveProxyDoesNotOverrideExisting (20 ms)\n[468/3004] NetworkServiceProxyDelegateTest.OnResolveProxyOverridesExisting (17 ms)\n[469/3004] NetworkServiceProxyDelegateTest.OnResolveProxyDeprioritizesBadProxies (6 ms)\n[470/3004] NetworkServiceProxyDelegateTest.OnResolveProxyAllProxiesBad (6 ms)\n[471/3004] NetworkContextTest.MaximumCount (66 ms)\n[472/3004] NetworkContextTest.AllowAllCookies (52 ms)\n[473/3004] NetworkContextTest.BlockThirdPartyCookies (63 ms)\n[474/3004] NetworkContextTest.BlockAllCookies (48 ms)\n[475/3004] NetworkContextMockHostTest.CustomProxyAddsHeaders (54 ms)\n[476/3004] NetworkContextMockHostTest.CanUseProxyOnHttpSelfRedirect (71 ms)\n[477/3004] NetworkContextMockHostTest.CanUseProxyOnHttpRedirectCycles (97 ms)\n[478/3004] NetworkContextMockHostTest.CustomProxyHeadersAreMerged (54 ms)\n[479/3004] NetworkContextMockHostTest.CustomProxyConfigHeadersAddedBeforeCache (55 ms)\n[480/3004] NetworkContextMockHostTest.CustomProxyRequestHeadersAddedBeforeCache (79 ms)\n[481/3004] P2PSocketStunTcpTest.SendStunNoAuth (32 ms)\n[482/3004] P2PSocketStunTcpTest.ReceiveStun (32 ms)\n[483/3004] P2PSocketStunTcpTest.SendDataNoAuth (12 ms)\n[484/3004] P2PSocketStunTcpTest.AsyncWrites (17 ms)\n[485/3004] P2PSocketTcpWithPseudoTlsTest.Basic (29 ms)\n[486/3004] P2PSocketUdpTest.SendStunNoAuth (10 ms)\n[487/3004] P2PSocketUdpTest.SendDataNoAuth (7 ms)\n[488/3004] P2PSocketUdpTest.SendAfterStunRequest (8 ms)\n[489/3004] P2PSocketUdpTest.SendAfterStunResponse (24 ms)\n[490/3004] P2PSocketUdpTest.SendAfterStunResponseDifferentHost (9 ms)\n[491/3004] P2PSocketUdpTest.ThrottleAfterLimit (17 ms)\n[492/3004] P2PSocketUdpTest.ThrottleAfterLimitAfterReceive (14 ms)\n[493/3004] P2PSocketUdpTest.ThrottlingStopsAtExpectedTimes (15 ms)\n[494/3004] P2PSocketUdpTest.PortRangeImplicitPort (12 ms)\n[495/3004] P2PSocketUdpTest.PortRangeExplictValidPort (9 ms)\n[496/3004] P2PSocketUdpTest.PortRangeExplictInvalidPort (17 ms)\n[497/3004] PendingCallbackChainTest.SingleSyncResultOk (0 ms)\n[498/3004] PendingCallbackChainTest.SingleSyncResultError (0 ms)\n[499/3004] PendingCallbackChainTest.SingleAsyncResultOk (1 ms)\n[500/3004] PendingCallbackChainTest.SingleAsyncResultError (0 ms)\n[501/3004] ProxyResolvingSocketMojoTest.SocketDestroyedBeforeConnectCompletes (9 ms)\n[502/3004] ProxyResolvingSocketMojoTest.SocketObserver (11 ms)\n[503/3004] ResourceSchedulerParamsManagerTest.VerifyAllDefaultParams (0 ms)\n[504/3004] ResourceSchedulerParamsManagerTest.DelayRequestsOnMultiplexedConnections (0 ms)\n[505/3004] ResourceSchedulerParamsManagerTest.DisableDelayRequestsOnMultiplexedConnections (1 ms)\n[506/3004] ResourceSchedulerParamsManagerTest.MaxQueuingTime (0 ms)\n[507/3004] ResourceSchedulerParamsManagerTest.MultipleFieldTrialsEnabled (1 ms)\n[508/3004] ResourceSchedulerParamsManagerTest.ReadInvalidConfigTest (0 ms)\n[509/3004] ResourceSchedulerParamsManagerTest.ReadValidConfigTest2 (0 ms)\n[510/3004] ResourceSchedulerParamsManagerTest.ReadValidConfigTest3 (0 ms)\n[511/3004] ResourceSchedulerParamsManagerTest.ThrottleDelayableDisabled (0 ms)\n[512/3004] ResourceSchedulerParamsManagerTest.MaxDelayableRequestsAndNonDelayableWeightSet (0 ms)\n[513/3004] ResourceSchedulerTest.OneIsolatedLowRequest (4 ms)\n[514/3004] ResourceSchedulerTest.OneLowLoadsUntilCriticalComplete (2 ms)\n[515/3004] ResourceSchedulerTest.MaxRequestsPerHostForSpdyWhenNotDelayable (2 ms)\n[516/3004] ResourceSchedulerTest.BackgroundRequestStartsImmediately (2 ms)\n[517/3004] ResourceSchedulerTest.CancelOtherRequestsWhileResuming (2 ms)\n[518/3004] ResourceSchedulerTest.LimitedNumberOfDelayableRequestsInFlight (3 ms)\n[519/3004] ResourceSchedulerTest.RaisePriorityAndStart (2 ms)\n[520/3004] ResourceSchedulerTest.RaisePriorityInQueue (3 ms)\n[521/3004] NetworkServiceProxyDelegateTest.InitialConfigUsedForProxy (11 ms)\n[522/3004] NetworkServiceTest.CreateAndDestroyContext (43 ms)\n[523/3004] NetworkServiceTest.DestroyingServiceDestroysContext (35 ms)\n[524/3004] NetworkServiceTest.CreateContextWithoutChannelID (73 ms)\n[525/3004] NetworkServiceTest.AuthDefaultParams (69 ms)\n[526/3004] NetworkServiceTest.AuthSchemesDigestAndNtlmOnly (45 ms)\n[527/3004] NetworkServiceTest.AuthSchemesNone (53 ms)\n[528/3004] NetworkServiceTest.AuthGssapiLibraryName (45 ms)\n[529/3004] NetworkServiceTest.AuthServerWhitelist (62 ms)\n[530/3004] NetworkServiceTest.AuthDelegateWhitelist (38 ms)\n[531/3004] OriginPolicyManagerTest.DestroyWhileCallbackUninvoked (109 ms)\n[532/3004] P2PSocketTcpServerTest.Accept (12 ms)\n[533/3004] P2PSocketTcpServerTest.Accept2 (20 ms)\n[534/3004] P2PSocketTcpTest.SendStunNoAuth (20 ms)\n[535/3004] P2PSocketTcpTest.ReceiveStun (30 ms)\n[536/3004] P2PSocketTcpTest.SendDataNoAuth (14 ms)\n[537/3004] P2PSocketTcpTest.SendAfterStunRequest (9 ms)\n[538/3004] P2PSocketTcpTest.AsyncWrites (8 ms)\n[539/3004] P2PSocketTcpTest.PacketIdIsPropagated (7 ms)\n[540/3004] P2PSocketTcpTest.SendDataWithPacketOptions (24 ms)\n[541/3004] PendingCallbackChainTest.MultipleSyncResultOk (0 ms)\n[542/3004] PendingCallbackChainTest.MultipleSyncResultError (0 ms)\n[543/3004] PendingCallbackChainTest.MultipleSyncSameError (0 ms)\n[544/3004] PendingCallbackChainTest.MultipleSyncResultDifferentError (0 ms)\n[545/3004] PendingCallbackChainTest.SyncAndAsyncResultOk (0 ms)\n[546/3004] PendingCallbackChainTest.MultipleAsyncResultOk (0 ms)\n[547/3004] PendingCallbackChainTest.MultipleAsyncResultError (0 ms)\n[548/3004] ProxyConfigServiceMojoTest.ObserveProxyChanges (9 ms)\n[549/3004] ProxyConfigServiceMojoTest.LargePacUrlNotTruncated (825 ms)\n[550/3004] ProxyResolvingSocketMojoTest.ConnectWithFakeTLSHandshake (13 ms)\n[551/3004] ResourceSchedulerTest.LowerPriority (5 ms)\n[552/3004] ResourceSchedulerTest.LowerPriorityBrowserRequestsNotThrottled (3 ms)\n[553/3004] ResourceSchedulerTest.ReprioritizedRequestGoesToBackOfQueue (2 ms)\n[554/3004] ResourceSchedulerTest.HigherIntraPriorityGoesToFrontOfQueue (3 ms)\n[555/3004] ResourceSchedulerTest.NonHTTPSchedulesImmediately (2 ms)\n[556/3004] ResourceSchedulerTest.SpdyProxySchedulesImmediately (2 ms)\n[557/3004] ResourceSchedulerTest.NewSpdyHostInDelayableRequests (3 ms)\n[558/3004] ResourceSchedulerTest.NewDelayableSpdyHostInDelayableRequestsSlowConnection (3 ms)\n[559/3004] ResourceSchedulerTest.RequestStartedAfterClientDeleted (2 ms)\n[560/3004] ResourceSchedulerTest.RequestStartedAfterClientDeletedManyDelayable (3 ms)\n[561/3004] NetworkUsageAccumulatorTest.MultipleWavesMixedData (1 ms)\n[562/3004] OriginPolicyFetcherTest.GetPolicyURL (81 ms)\n[563/3004] OriginPolicyFetcherTest.IsValidRedirect (91 ms)\n[564/3004] OriginPolicyFetcherTest.EndToEnd (125 ms)\n[565/3004] OriginPolicyFetcherTest.EndToEndInvalidRedirects (88 ms)\n[566/3004] OriginPolicyFetcherTest.EndToEndDefaultNotRedirecting (31 ms)\n[567/3004] OriginPolicyFetcherTest.EmptyVersionConstructor (15 ms)\n[568/3004] OriginPolicyManagerTest.AddBinding (15 ms)\n[569/3004] OriginPolicyManagerTest.ParseHeaders (18 ms)\n[570/3004] OriginPolicyManagerTest.EndToEndPolicyRetrieve (63 ms)\n[571/3004] ResourceSchedulerTest.RequestLimitOverrideEnabled (7 ms)\n[572/3004] ResourceSchedulerTest.RequestLimitOverrideDisabled (4 ms)\n[573/3004] ResourceSchedulerTest.RequestLimitOverrideOutsideECTRange (7 ms)\n[574/3004] ResourceSchedulerTest.RequestLimitOverrideFixedForPageLoad (3 ms)\n[575/3004] ResourceSchedulerTest.RequestLimitReducedAcrossPageLoads (5 ms)\n[576/3004] ResourceSchedulerTest.ThrottleDelayableDisabled (3 ms)\n[577/3004] ResourceSchedulerTest.NonDelayableThrottlesDelayableOutsideECT (4 ms)\n[578/3004] ResourceSchedulerTest.NonDelayableThrottlesDelayableVaryNonDelayable (11 ms)\n[579/3004] ResourceSchedulerTest.NonDelayableThrottlesDelayableWeight1 (3 ms)\n[580/3004] ResourceSchedulerTest.NonDelayableThrottlesDelayableWeight3 (3 ms)\n[581/3004] NetworkServiceTestWithResolverMap.RawRequestAccessControlWithRedirect (143 ms)\n[582/3004] NetworkChangeTest.NetworkChangeManagerRequest (32 ms)\n[583/3004] NetworkServiceNetworkChangeTest.NetworkChangeManagerRequest (31 ms)\n[584/3004] NetworkServiceNetworkDelegateTest.ClearSiteDataNetworkContextCient (260 ms)\n[585/3004] NetworkServiceNetworkDelegateTest.HandleClearSiteDataHeaders (218 ms)\n[586/3004] NetworkUsageAccumulatorTest.ChildRouteData (0 ms)\n[587/3004] NetworkUsageAccumulatorTest.TwoChildRouteData (0 ms)\n[588/3004] NetworkUsageAccumulatorTest.TwoSameChildRouteData (0 ms)\n[589/3004] NetworkUsageAccumulatorTest.SameRouteDifferentProcesses (0 ms)\n[590/3004] NetworkUsageAccumulatorTest.ClearAfterTermination (0 ms)\n[591/3004] ResourceSchedulerTest.NumDelayableAtStartOfNonDelayableUMA (7 ms)\n[592/3004] ResourceSchedulerTest.SchedulerEnabled (3 ms)\n[593/3004] ResourceSchedulerTest.SchedulerDisabled (2 ms)\n[594/3004] ResourceSchedulerTest.MultipleInstances_1 (2 ms)\n[595/3004] ResourceSchedulerTest.MultipleInstances_2 (3 ms)\n[596/3004] ResourceSchedulerTest.MaxRequestsPerHostForSpdyWhenDelayableSlowConnections (4 ms)\n[597/3004] ResourceSchedulerTest.MaxRequestsPerHostForSpdyWhenDelayableFastConnections (5 ms)\n[598/3004] ResourceSchedulerTest.MaxRequestsPerHostForNonSpdyWhenDelayableSlowConnections (3 ms)\n[599/3004] ResourceSchedulerTest.DelayableRequestLimitSpdyDelayableSlowConnections (4 ms)\n[600/3004] ResourceSchedulerTest.MaxQueuingDelaySet (6 ms)\n[601/3004] ResourceSchedulerTest.MaxQueuingDelayNotSet (6 ms)\n[602/3004] ResourceSchedulerTest.MaxQueuingDelayTimerFires (10 ms)\n[603/3004] ResourceSchedulerTest.MaxQueuingDelayTimerNotFired (5 ms)\n[604/3004] ResourceSchedulerTest.MaxQueuingDelayTimerRunsOnRequestSchedule (7 ms)\n[605/3004] ResourceSchedulerTest.NonDelayableRequestArrivesAfterDelayableStarts (4 ms)\n[606/3004] ResourceSchedulerTest.NonDelayableToNonDelayableMetrics (6 ms)\n[607/3004] RestrictedCookieManagerTest.GetAllForUrlBlankFilter (4 ms)\n[608/3004] RestrictedCookieManagerTest.GetAllForUrlEmptyFilter (2 ms)\n[609/3004] RestrictedCookieManagerTest.GetAllForUrlEqualsMatch (3 ms)\n[610/3004] RestrictedCookieManagerTest.GetAllForUrlStartsWithMatch (3 ms)\n[611/3004] RestrictedCookieManagerTest.GetAllForUrlFromWrongOrigin (4 ms)\n[612/3004] RestrictedCookieManagerTest.GetAllForUrlPolicy (4 ms)\n[613/3004] RestrictedCookieManagerTest.SetCanonicalCookie (4 ms)\n[614/3004] RestrictedCookieManagerTest.SetCanonicalCookieFromWrongOrigin (2 ms)\n[615/3004] RestrictedCookieManagerTest.SetCanonicalCookiePolicy (4 ms)\n[616/3004] RestrictedCookieManagerTest.ChangeDispatch (5 ms)\n[617/3004] RestrictedCookieManagerTest.ChangeSettings (4 ms)\n[618/3004] RestrictedCookieManagerTest.AddChangeListenerFromWrongOrigin (7 ms)\n[619/3004] SessionCleanupCookieStoreTest.TestPersistence (137 ms)\n[620/3004] SessionCleanupCookieStoreTest.TestNetLogIncludeCookies (52 ms)\n[621/3004] TCPBoundSocketTest.UpgradeToTLS (185 ms)\n[622/3004] TCPSocketTest.ReadAndWrite (31 ms)\n[623/3004] TCPSocketTest.CannotConnectToWrongInterface (9 ms)\n[624/3004] TCPSocketTest.ServerReceivesMultipleAccept (85 ms)\n[625/3004] TCPSocketTest.AcceptedSocketCantUpgradeToTLS (12 ms)\n[626/3004] TCPSocketTest.SocketClosed (13 ms)\n[627/3004] TCPSocketTest.ReadPipeClosed (11 ms)\n[628/3004] TCPSocketTest.WritePipeClosed (11 ms)\n[629/3004] TCPSocketTest.ServerSocketClosedAcceptedSocketAlive (11 ms)\n[630/3004] TCPSocketWithMockSocketTest.SetNoDelayAndKeepAlive (7 ms)\n[631/3004] TCPSocketWithMockSocketTest.SetNoDelayFails (14 ms)\n[632/3004] TCPSocketWithMockSocketTest.SetOptionsAfterTLSUpgrade (12 ms)\n[633/3004] TCPSocketWithMockSocketTest.SocketDestroyedBeforeConnectCompletes (6 ms)\n[634/3004] TCPSocketWithMockSocketTest.ServerAcceptClientConnectionWithMockSocket/0 (133 ms)\n[635/3004] TCPSocketWithMockSocketTest.ServerAcceptClientConnectionWithMockSocket/1 (39 ms)\n[636/3004] TCPSocketWithMockSocketTest.ServerAcceptWithObserverReadError/0 (14 ms)\n[637/3004] TCPSocketWithMockSocketTest.ServerAcceptWithObserverReadError/1 (10 ms)\n[638/3004] TCPSocketWithMockSocketTest.ServerAcceptWithObserverWriteError/0 (12 ms)\n[639/3004] TCPSocketWithMockSocketTest.ServerAcceptWithObserverWriteError/1 (10 ms)\n[640/3004] TCPSocketWithMockSocketTest.ReadAndWriteMultiple/0 (14 ms)\n[641/3004] TCPSocketWithMockSocketTest.InitialTCPConnectedSocketOptionsFails/1 (8 ms)\n[642/3004] TCPSocketWithMockSocketTest.SetBufferSizes/0 (8 ms)\n[643/3004] TCPSocketWithMockSocketTest.SetBufferSizes/1 (8 ms)\n[644/3004] TCPSocketWithMockSocketTest.SetBufferSizesFails/0 (7 ms)\n[645/3004] TCPSocketWithMockSocketTest.SetBufferSizesFails/1 (6 ms)\n[646/3004] TCPServerSocketTest.GetLocalAddressFailedInListen (3 ms)\n[647/3004] TestURLLoaderFactoryTest.Simple (8 ms)\n[648/3004] TestURLLoaderFactoryTest.AddResponseAdvanced (5 ms)\n[649/3004] TestURLLoaderFactoryTest.AddResponse404 (5 ms)\n[650/3004] TestURLLoaderFactoryTest.MultipleSameURL (4 ms)\n[651/3004] TCPSocketWithMockSocketTest.ReadAndWriteMultiple/1 (18 ms)\n[652/3004] TCPSocketWithMockSocketTest.PartialStreamSocketWrite/0 (16 ms)\n[653/3004] TCPSocketWithMockSocketTest.PartialStreamSocketWrite/1 (12 ms)\n[654/3004] TCPSocketWithMockSocketTest.ReadError/0 (7 ms)\n[655/3004] TCPSocketWithMockSocketTest.ReadError/1 (7 ms)\n[656/3004] TCPSocketWithMockSocketTest.WriteError/0 (7 ms)\n[657/3004] TCPSocketWithMockSocketTest.WriteError/1 (7 ms)\n[658/3004] TCPSocketWithMockSocketTest.InitialTCPConnectedSocketOptions/0 (114 ms)\n[659/3004] TCPSocketWithMockSocketTest.InitialTCPConnectedSocketOptions/1 (77 ms)\n[660/3004] TCPSocketWithMockSocketTest.InitialTCPConnectedSocketOptionsFails/0 (4 ms)\n[661/3004] TestURLLoaderFactoryTest.SimulateResponseNoRawHeadersByDefault (9 ms)\n[662/3004] TestURLLoaderFactoryTest.SimulateResponseReportRawHeaders (5 ms)\n[663/3004] TestURLLoaderFactoryTest.SimulateResponseWithoutRemovingFromPendingList (11 ms)\n[664/3004] ThrottlingControllerTest.SingleDisableEnable (1 ms)\n[665/3004] ThrottlingControllerTest.InterceptorIsolation (1 ms)\n[666/3004] ThrottlingControllerTest.FailOnStart (0 ms)\n[667/3004] ThrottlingControllerTest.FailRunningTransaction (1 ms)\n[668/3004] ThrottlingControllerTest.ReadAfterFail (0 ms)\n[669/3004] ThrottlingControllerTest.CancelTransaction (1 ms)\n[670/3004] ThrottlingControllerTest.CancelFailedTransaction (0 ms)\n[671/3004] TestURLLoaderFactoryTest.MultipleSameURL2 (13 ms)\n[672/3004] TestURLLoaderFactoryTest.Redirects (7 ms)\n[673/3004] TestURLLoaderFactoryTest.IsPending (9 ms)\n[674/3004] TestURLLoaderFactoryTest.IsPendingLoadFlags (10 ms)\n[675/3004] TestURLLoaderFactoryTest.NumPending (8 ms)\n[676/3004] TestURLLoaderFactoryTest.NumPending2 (9 ms)\n[677/3004] TestURLLoaderFactoryTest.SimulateResponse (8 ms)\n[678/3004] TestURLLoaderFactoryTest.SimulateResponseMultipleRequests (11 ms)\n[679/3004] TestURLLoaderFactoryTest.SimulateResponseUrlMatch (7 ms)\n[680/3004] TestURLLoaderFactoryTest.SimulateResponseMostRecentMatch (10 ms)\n[681/3004] UDPSocketTest.Settings (9 ms)\n[682/3004] UDPSocketTest.TestSendWithBind (6 ms)\n[683/3004] UDPSocketTest.TestSendToWithConnect (7 ms)\n[684/3004] UDPSocketTest.TestUnexpectedSequences (8 ms)\n[685/3004] UDPSocketTest.TestBufferValid (6 ms)\n[686/3004] UDPSocketTest.TestInsufficientResources (18 ms)\n[687/3004] UDPSocketTest.TestReceiveMoreOverflow (8 ms)\n[688/3004] UDPSocketTest.TestReadSend (24 ms)\n[689/3004] UDPSocketTest.TestReadSendTo (29 ms)\n[690/3004] UDPSocketTest.TestReceiveMoreWithBufferSize (15 ms)\n[ RUN ] NetworkServiceTest.DelegateByKdcPolicy\n[ OK ] NetworkServiceTest.DelegateByKdcPolicy (43 ms)\n[ RUN ] NetworkServiceTest.AuthNegotiateCnameLookup\n[ OK ] NetworkServiceTest.AuthNegotiateCnameLookup (39 ms)\n[ RUN ] NetworkServiceTest.AuthEnableNegotiatePort\n[ OK ] NetworkServiceTest.AuthEnableNegotiatePort (49 ms)\n[ RUN ] NetworkServiceTest.DnsClientEnableDisable\n[ OK ] NetworkServiceTest.DnsClientEnableDisable (977 ms)\n[ RUN ] NetworkServiceTest.DnsOverHttpsEnableDisable\n==================\nWARNING: ThreadSanitizer: data race (pid=13403)\n Write of size 8 at 0x7b1c00001768 by main thread:\n #0 reset buildtools/third_party/libc++/trunk/include/memory:2649:20 (services_unittests+0x4aed5d2)\n #1 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x4aed5d2)\n #2 net::NetworkChangeNotifier::~NetworkChangeNotifier() net/base/network_change_notifier.cc:187 (services_unittests+0x4aed5d2)\n #3 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:112:1 (services_unittests+0x4af4c2c)\n #4 net::NetworkChangeNotifierLinux::~NetworkChangeNotifierLinux() net/base/network_change_notifier_linux.cc:110:59 (services_unittests+0x4af4c59)\n #5 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x529ec88)\n #6 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x529ec88)\n #7 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x529ec88)\n #8 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:27 (services_unittests+0x529ec88)\n #9 network::NetworkChangeManager::~NetworkChangeManager() services/network/network_change_manager.cc:25:47 (services_unittests+0x529ecf9)\n #10 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x52daead)\n #11 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x52daead)\n #12 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x52daead)\n #13 network::NetworkService::~NetworkService() services/network/network_service.cc:353 (services_unittests+0x52daead)\n #14 network::NetworkService::~NetworkService() services/network/network_service.cc:336:35 (services_unittests+0x52db2b9)\n #15 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1b51a3b)\n #16 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1b51a3b)\n #17 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1b51a3b)\n #18 ~NetworkServiceTest services/network/network_service_unittest.cc:89 (services_unittests+0x1b51a3b)\n #19 network::(anonymous namespace)::NetworkServiceTest_DnsOverHttpsEnableDisable_Test::~NetworkServiceTest_DnsOverHttpsEnableDisable_Test() services/network/network_service_unittest.cc:459 (services_unittests+0x1b51a3b)\n #20 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a2cffe)\n #21 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2704 (services_unittests+0x2a2cffe)\n #22 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2828:28 (services_unittests+0x2a2db36)\n #23 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5285:44 (services_unittests+0x2a3fee6)\n #24 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2a3f349)\n #25 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4873 (services_unittests+0x2a3f349)\n #26 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2453:46 (services_unittests+0x517a712)\n #27 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x517a712)\n #28 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1de0578)\n #29 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1de0578)\n #30 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1de0578)\n #31 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, int ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x1de0578)\n #32 Run base/callback.h:97:12 (services_unittests+0x5183c8d)\n #33 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:158 (services_unittests+0x5183c8d)\n #34 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:508:10 (services_unittests+0x5183af0)\n #35 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1de01af)\n\n Previous read of size 8 at 0x7b1c00001768 by thread T6:\n #0 operator-> buildtools/third_party/libc++/trunk/include/memory:2620:19 (services_unittests+0x4aec87b)\n #1 net::NetworkChangeNotifier::SetDnsConfig(net::DnsConfig const&) net/base/network_change_notifier.cc:799 (services_unittests+0x4aec87b)\n #2 Invoke<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:399:12 (services_unittests+0x4af4dc4)\n #3 MakeItSo<void (*const &)(const net::DnsConfig &), const net::DnsConfig &> base/bind_internal.h:599 (services_unittests+0x4af4dc4)\n #4 RunImpl<void (*const &)(const net::DnsConfig &), const std::__1::tuple<> &> base/bind_internal.h:672 (services_unittests+0x4af4dc4)\n #5 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 (services_unittests+0x4af4dc4)\n #6 Run base/callback.h:136:12 (services_unittests+0x273b963)\n #7 OnCompleteConfig net/dns/dns_config_service.cc:158 (services_unittests+0x273b963)\n #8 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 (services_unittests+0x273b963)\n #9 net::internal::DnsConfigServicePosix::HostsReader::OnWorkFinished() net/dns/dns_config_service_posix.cc:385:17 (services_unittests+0x277068c)\n #10 net::SerialWorker::OnWorkJobFinished() net/dns/serial_worker.cc:63:13 (services_unittests+0x276e35b)\n #11 Invoke<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:499:12 (services_unittests+0x276e60a)\n #12 MakeItSo<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker>> base/bind_internal.h:619 (services_unittests+0x276e60a)\n #13 RunImpl<void (net::SerialWorker::*)(), std::__1::tuple<base::WeakPtr<net::SerialWorker> >, 0> base/bind_internal.h:672 (services_unittests+0x276e60a)\n #14 base::internal::Invoker<base::internal::BindState<void (net::SerialWorker::*)(), base::WeakPtr<net::SerialWorker> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x276e60a)\n #15 Run base/callback.h:97:12 (services_unittests+0x4106c78)\n #16 base::(anonymous namespace)::PostTaskAndReplyRelay::RunReply(base::(anonymous namespace)::PostTaskAndReplyRelay) base/threading/post_task_and_reply_impl.cc:114 (services_unittests+0x4106c78)\n #17 Invoke<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:399:12 (services_unittests+0x4106d67)\n #18 MakeItSo<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), base::(anonymous namespace)::PostTaskAndReplyRelay> base/bind_internal.h:599 (services_unittests+0x4106d67)\n #19 RunImpl<void (*)(base::(anonymous namespace)::PostTaskAndReplyRelay), std::__1::tuple<base::(anonymous namespace)::PostTaskAndReplyRelay>, 0> base/bind_internal.h:672 (services_unittests+0x4106d67)\n #20 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 (services_unittests+0x4106d67)\n #21 Run base/callback.h:97:12 (services_unittests+0x40c5ac5)\n #22 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:143 (services_unittests+0x40c5ac5)\n #23 base::internal::TaskTracker::RunSkipOnShutdown(base::internal::Task*) base/task/thread_pool/task_tracker.cc:747:19 (services_unittests+0x40e9511)\n #24 RunTaskWithShutdownBehavior base/task/thread_pool/task_tracker.cc:765:7 (services_unittests+0x40e8fbe)\n #25 base::internal::TaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker.cc:593 (services_unittests+0x40e8fbe)\n #26 base::internal::TaskTrackerPosix::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/task/thread_pool/task_tracker_posix.cc:24:16 (services_unittests+0x415cecf)\n #27 base::test::ScopedTaskEnvironment::TestTaskTracker::RunOrSkipTask(base::internal::Task, base::internal::TaskSource*, base::TaskTraits const&, bool) base/test/scoped_task_environment.cc:689:46 (services_unittests+0x5175fc8)\n #28 base::internal::TaskTracker::RunAndPopNextTask(base::internal::RegisteredTaskSource) base/task/thread_pool/task_tracker.cc:455:5 (services_unittests+0x40e886e)\n #29 base::internal::WorkerThread::RunWorker() base/task/thread_pool/worker_thread.cc:320:34 (services_unittests+0x40f8867)\n #30 base::internal::WorkerThread::RunPooledWorker() base/task/thread_pool/worker_thread.cc:222:3 (services_unittests+0x40f8471)\n #31 base::internal::WorkerThread::ThreadMain() base/task/thread_pool/worker_thread.cc:201:7 (services_unittests+0x40f82df)\n #32 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (services_unittests+0x415d934)\n\n Location is heap block of size 104 at 0x7b1c00001730 allocated by main thread:\n #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 (services_unittests+0x195b8db)\n #1 net::NetworkChangeNotifier::Create() net/base/network_change_notifier.cc:218:10 (services_unittests+0x4ae9b8f)\n #2 CreateNetworkChangeNotifierIfNeeded services/network/network_service.cc:109:29 (services_unittests+0x52da62b)\n #3 network::NetworkService::Initialize(mojo::StructPtr<network::mojom::NetworkServiceParams>) services/network/network_service.cc:302 (services_unittests+0x52da62b)\n #4 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.