Note: Google Test filter = WebrtcEventLogDataTest.ConcurrentWriteAndTake_DataRace [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from WebrtcEventLogDataTest [ RUN ] WebrtcEventLogDataTest.ConcurrentWriteAndTake_DataRace ================================================================= ==861==ERROR: AddressSanitizer: attempting double-free on 0x7a89be9ff900 in thread T0: #0 0x6524a36f9366 in free (/chromium/chromium/src/out/asan/remoting_unittests+0x61c7366) (BuildId: 2fd703ff7acc4ec2) #1 0x6524a3b098b3 in remoting::protocol::WebrtcEventLogDataTest_ConcurrentWriteAndTake_DataRace_Test::TestBody() base/containers/vector_buffer.h:64:21 #2 0x6524a5b9388b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #3 0x6524a5b963f7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #4 0x6524a5b98473 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #5 0x6524a5bc6ec4 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #6 0x6524a5bc5a3a in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #7 0x6524aedf09f0 in base::TestSuite::Run() base/test/test_suite.cc:440:16 #8 0x6524a93b2e61 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #9 0x6524aedfecab in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #10 0x6524aedfe5cb in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #11 0x6524a93b2b24 in main remoting/base/run_all_unittests.cc:60:10 #12 0x7dc9c02ba249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) 0x7a89be9ff900 is located 0 bytes inside of 120-byte region [0x7a89be9ff900,0x7a89be9ff978) freed by thread T2 here: #0 0x6524a36f9366 in free (/chromium/chromium/src/out/asan/remoting_unittests+0x61c7366) (BuildId: 2fd703ff7acc4ec2) #1 0x6524a4b8d607 in base::circular_deque>>::ExpandCapacityIfNecessary(unsigned long) base/containers/vector_buffer.h:67:5 #2 0x6524b4a57103 in std::__Cr::vector>& base::circular_deque>>::emplace_back<>() base/containers/circular_deque.h:989:5 #3 0x6524b4a56c3c in remoting::protocol::WebrtcEventLogData::CreateNewSection() remoting/protocol/webrtc_event_log_data.cc:77:13 #4 0x6524b4a56983 in remoting::protocol::WebrtcEventLogData::Write(std::__Cr::basic_string_view>) remoting/protocol/webrtc_event_log_data.cc:48:5 #5 0x6524a3b0bc9b in void* std::__Cr::__thread_proxy>, remoting::protocol::WebrtcEventLogDataTest_ConcurrentWriteAndTake_DataRace_Test::TestBody()::$_0>>(void*) remoting/protocol/webrtc_event_log_data_unittest.cc:98:17 #6 0x6524a36f6f16 in asan_thread_start(void*) asan_interceptors.cpp previously allocated by thread T0 here: #0 0x6524a36f9934 in malloc (/chromium/chromium/src/out/asan/remoting_unittests+0x61c7934) (BuildId: 2fd703ff7acc4ec2) #1 0x6524b4a55dbd in base::circular_deque>>::reserve(unsigned long) base/containers/vector_buffer.h:52:13 #2 0x6524b4a56335 in remoting::protocol::WebrtcEventLogData::TakeLogData() remoting/protocol/webrtc_event_log_data.cc:58:13 #3 0x6524a3b096b3 in remoting::protocol::WebrtcEventLogDataTest_ConcurrentWriteAndTake_DataRace_Test::TestBody() remoting/protocol/webrtc_event_log_data_unittest.cc:106:27 #4 0x6524a5b9388b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #5 0x6524a5b963f7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #6 0x6524a5b98473 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #7 0x6524a5bc6ec4 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #8 0x6524a5bc5a3a in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #9 0x6524aedf09f0 in base::TestSuite::Run() base/test/test_suite.cc:440:16 #10 0x6524a93b2e61 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #11 0x6524aedfecab in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #12 0x6524aedfe5cb in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #13 0x6524a93b2b24 in main remoting/base/run_all_unittests.cc:60:10 #14 0x7dc9c02ba249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) Thread T2 created by T0 here: #0 0x6524a36dcd91 in pthread_create (/chromium/chromium/src/out/asan/remoting_unittests+0x61aad91) (BuildId: 2fd703ff7acc4ec2) #1 0x6524a3b09633 in remoting::protocol::WebrtcEventLogDataTest_ConcurrentWriteAndTake_DataRace_Test::TestBody() gen/third_party/libc++/src/include/__thread/support/pthread.h:182:10 #2 0x6524a5b9388b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #3 0x6524a5b963f7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #4 0x6524a5b98473 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #5 0x6524a5bc6ec4 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #6 0x6524a5bc5a3a in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #7 0x6524aedf09f0 in base::TestSuite::Run() base/test/test_suite.cc:440:16 #8 0x6524a93b2e61 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #9 0x6524aedfecab in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #10 0x6524aedfe5cb in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #11 0x6524a93b2b24 in main remoting/base/run_all_unittests.cc:60:10 #12 0x7dc9c02ba249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) SUMMARY: AddressSanitizer: double-free (/chromium/chromium/src/out/asan/remoting_unittests+0x61c7366) (BuildId: 2fd703ff7acc4ec2) in free ==861==ADDITIONAL INFO ==861==Note: Please include this section with the ASan report. Task trace: ==861==END OF ADDITIONAL INFO ==861==ABORTING