IMPORTANT DEBUGGING NOTE: batches of tests are run inside their own process. For debugging a test inside a debugger, use the --gtest_filter= flag along with --single-process-tests. Using sharding settings from environment. This is shard 0/1 Using 1 parallel jobs. Note: Google Test filter = NegotiatingAuthenticatorTest.CreateAuthenticatorForCurrentMethod_SynchronousRejectionTeardown [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from NegotiatingAuthenticatorTest [ RUN ] NegotiatingAuthenticatorTest.CreateAuthenticatorForCurrentMethod_SynchronousRejectionTeardown ================================================================= ==761==ERROR: AddressSanitizer: heap-use-after-free on address 0x74f4337f5980 at pc 0x64a2c22e518c bp 0x7ffeec2c8270 sp 0x7ffeec2c8268 READ of size 8 at 0x74f4337f5980 thread T0 #0 0x64a2c22e518b in remoting::protocol::NegotiatingClientAuthenticator::CreateAuthenticatorForCurrentMethod(remoting::protocol::Authenticator::State, base::OnceCallback) gen/third_party/libc++/src/include/__memory/unique_ptr.h:263:13 #1 0x64a2c22e457b in remoting::protocol::NegotiatingClientAuthenticator::ProcessMessage(remoting::JingleAuthentication const&, base::OnceCallback) remoting/protocol/negotiating_client_authenticator.cc:75:5 #2 0x64a2b12f122f in remoting::protocol::NegotiatingAuthenticatorTest_CreateAuthenticatorForCurrentMethod_SynchronousRejectionTeardown_Test::TestBody() remoting/protocol/negotiating_authenticator_unittest.cc:449:11 #3 0x64a2b34ce64b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #4 0x64a2b34d11b7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #5 0x64a2b34d3233 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #6 0x64a2b3501c84 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #7 0x64a2b35007fa in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #8 0x64a2bc72b9f0 in base::TestSuite::Run() base/test/test_suite.cc:440:16 #9 0x64a2b6cedc21 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #10 0x64a2bc739cab in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #11 0x64a2bc7395cb in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #12 0x64a2b6ced8e4 in main remoting/base/run_all_unittests.cc:60:10 #13 0x77d434f86249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) 0x74f4337f5980 is located 64 bytes inside of 304-byte region [0x74f4337f5940,0x74f4337f5a70) freed by thread T0 here: #0 0x64a2b106c1a2 in operator delete(void*, unsigned long) (/chromium/chromium/src/out/asan/remoting_unittests+0x62011a2) (BuildId: 763dbd67ac1844fe) #1 0x64a2b12f9303 in base::internal::Invoker>*&&, bool*&&>, base::internal::BindState>, base::unretained_traits::MayNotDangle, (partition_alloc::internal::RawPtrTraits)0>, base::internal::UnretainedWrapper>, void ()>::RunOnce(base::internal::BindStateBase*) gen/third_party/libc++/src/include/__memory/unique_ptr.h:74:5 #2 0x64a2c22e2a84 in remoting::protocol::NegotiatingAuthenticatorBase::UpdateState(base::OnceCallback) base/functional/callback.h:155:12 #3 0x64a2c22e3894 in base::internal::Invoker), base::WeakPtr&&, base::OnceCallback&&>, base::internal::BindState), base::WeakPtr, base::OnceCallback>, void ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #4 0x64a2c2369496 in remoting::protocol::Spake2Authenticator::ProcessMessage(remoting::JingleAuthentication const&, base::OnceCallback) base/functional/callback.h:155:12 #5 0x64a2c22e263e in remoting::protocol::NegotiatingAuthenticatorBase::ProcessMessageInternal(remoting::JingleAuthentication const&, base::OnceCallback) remoting/protocol/negotiating_authenticator_base.cc:73:29 #6 0x64a2c22e5fa2 in base::internal::Invoker), base::WeakPtr&&, remoting::JingleAuthentication&&, base::OnceCallback&&>, base::internal::BindState), base::WeakPtr, remoting::JingleAuthentication, base::OnceCallback>, void ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #7 0x64a2c22e5c15 in remoting::protocol::NegotiatingClientAuthenticator::CreateSharedSecretAuthenticator(remoting::protocol::Authenticator::State, base::OnceCallback, std::__Cr::basic_string, std::__Cr::allocator> const&) base/functional/callback.h:155:12 #8 0x64a2c22e6a12 in void base::internal::InvokeHelper, std::__Cr::basic_string, std::__Cr::allocator> const&), base::WeakPtr const&, remoting::protocol::Authenticator::State const&, base::OnceCallback>, void, 0ul, 1ul, 2ul>::MakeItSo, std::__Cr::basic_string, std::__Cr::allocator> const&), std::__Cr::tuple, remoting::protocol::Authenticator::State, base::internal::PassedWrapper>> const&, std::__Cr::basic_string, std::__Cr::allocator> const&>(void (remoting::protocol::NegotiatingClientAuthenticator::* const&)(remoting::protocol::Authenticator::State, base::OnceCallback, std::__Cr::basic_string, std::__Cr::allocator> const&), std::__Cr::tuple, remoting::protocol::Authenticator::State, base::internal::PassedWrapper>> const&, std::__Cr::basic_string, std::__Cr::allocator> const&) base/functional/bind_internal.h:740:12 #9 0x64a2c22e6686 in base::internal::Invoker, std::__Cr::basic_string, std::__Cr::allocator> const&), base::WeakPtr const&, remoting::protocol::Authenticator::State const&, base::OnceCallback>, base::internal::BindState, std::__Cr::basic_string, std::__Cr::allocator> const&), base::WeakPtr, remoting::protocol::Authenticator::State, base::internal::PassedWrapper>>, void (std::__Cr::basic_string, std::__Cr::allocator> const&)>::Run(base::internal::BindStateBase*, std::__Cr::basic_string, std::__Cr::allocator> const&) base/functional/bind_internal.h:1069:14 #10 0x64a2b12f8ccf in base::RepeatingCallback, std::__Cr::allocator> const&)>::Run(std::__Cr::basic_string, std::__Cr::allocator> const&) const & base/functional/callback.h:346:12 #11 0x64a2b12f8abd in base::internal::Invoker, std::__Cr::allocator> const&>, base::internal::BindState, std::__Cr::allocator>>, void (bool, base::RepeatingCallback, std::__Cr::allocator> const&)> const&)>::Run(base::internal::BindStateBase*, bool, base::RepeatingCallback, std::__Cr::allocator> const&)> const&) remoting/protocol/negotiating_authenticator_unittest.cc:411:33 #12 0x64a2c22e58a1 in base::RepeatingCallback, std::__Cr::allocator> const&)> const&)>::Run(bool, base::RepeatingCallback, std::__Cr::allocator> const&)> const&) const & base/functional/callback.h:346:12 #13 0x64a2c22e4e08 in remoting::protocol::NegotiatingClientAuthenticator::CreateAuthenticatorForCurrentMethod(remoting::protocol::Authenticator::State, base::OnceCallback) remoting/protocol/negotiating_client_authenticator.cc:135:37 #14 0x64a2c22e457b in remoting::protocol::NegotiatingClientAuthenticator::ProcessMessage(remoting::JingleAuthentication const&, base::OnceCallback) remoting/protocol/negotiating_client_authenticator.cc:75:5 #15 0x64a2b12f122f in remoting::protocol::NegotiatingAuthenticatorTest_CreateAuthenticatorForCurrentMethod_SynchronousRejectionTeardown_Test::TestBody() remoting/protocol/negotiating_authenticator_unittest.cc:449:11 #16 0x64a2b34ce64b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #17 0x64a2b34d11b7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #18 0x64a2b34d3233 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #19 0x64a2b3501c84 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #20 0x64a2b35007fa in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #21 0x64a2bc72b9f0 in base::TestSuite::Run() base/test/test_suite.cc:440:16 #22 0x64a2b6cedc21 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #23 0x64a2bc739cab in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #24 0x64a2bc7395cb in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #25 0x64a2b6ced8e4 in main remoting/base/run_all_unittests.cc:60:10 #26 0x77d434f86249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) previously allocated by thread T0 here: #0 0x64a2b106b59d in operator new(unsigned long) (/chromium/chromium/src/out/asan/remoting_unittests+0x620059d) (BuildId: 763dbd67ac1844fe) #1 0x64a2b12f1b3b in std::__Cr::unique_ptr> std::__Cr::make_unique(char const (&) [20], char const (&) [20], remoting::protocol::ClientAuthenticationConfig&) gen/third_party/libc++/src/include/__memory/unique_ptr.h:756:26 #2 0x64a2b12f0b21 in remoting::protocol::NegotiatingAuthenticatorTest_CreateAuthenticatorForCurrentMethod_SynchronousRejectionTeardown_Test::TestBody() remoting/protocol/negotiating_authenticator_unittest.cc:414:17 #3 0x64a2b34ce64b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #4 0x64a2b34d11b7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #5 0x64a2b34d3233 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #6 0x64a2b3501c84 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #7 0x64a2b35007fa in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #8 0x64a2bc72b9f0 in base::TestSuite::Run() base/test/test_suite.cc:440:16 #9 0x64a2b6cedc21 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #10 0x64a2bc739cab in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #11 0x64a2bc7395cb in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #12 0x64a2b6ced8e4 in main remoting/base/run_all_unittests.cc:60:10 #13 0x77d434f86249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) SUMMARY: AddressSanitizer: heap-use-after-free gen/third_party/libc++/src/include/__memory/unique_ptr.h:263:13 in remoting::protocol::NegotiatingClientAuthenticator::CreateAuthenticatorForCurrentMethod(remoting::protocol::Authenticator::State, base::OnceCallback) Shadow bytes around the buggy address: 0x74f4337f5700: fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa fa 0x74f4337f5780: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd 0x74f4337f5800: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x74f4337f5880: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x74f4337f5900: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd =>0x74f4337f5980:[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x74f4337f5a00: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa fa 0x74f4337f5a80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x74f4337f5b00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x74f4337f5b80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x74f4337f5c00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb ==761==ADDITIONAL INFO ==761==Note: Please include this section with the ASan report. Task trace: ==761==END OF ADDITIONAL INFO ==761==ABORTING [1/1] NegotiatingAuthenticatorTest.CreateAuthenticatorForCurrentMethod_SynchronousRejectionTeardown (CRASHED) 1 test crashed: NegotiatingAuthenticatorTest.CreateAuthenticatorForCurrentMethod_SynchronousRejectionTeardown (../../remoting/protocol/negotiating_authenticator_unittest.cc:403) Tests took 0 seconds.