Note: Google Test filter = WebrtcEventLogDataTest.ConcurrentWriteAndTake_DataRace_DefaultLimits [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from WebrtcEventLogDataTest [ RUN ] WebrtcEventLogDataTest.ConcurrentWriteAndTake_DataRace_DefaultLimits ================================================================= ==1302==ERROR: AddressSanitizer: attempting double-free on 0x7087cf882200 in thread T0: #0 0x5d2ef0b72366 in free (/chromium/chromium/src/out/asan/remoting_unittests+0x61c7366) (BuildId: 8f22cc7d9f5996a8) #1 0x5d2ef0f82e73 in remoting::protocol::WebrtcEventLogDataTest_ConcurrentWriteAndTake_DataRace_DefaultLimits_Test::TestBody() base/containers/vector_buffer.h:64:21 #2 0x5d2ef300d64b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #3 0x5d2ef30101b7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #4 0x5d2ef3012233 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #5 0x5d2ef3040c84 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #6 0x5d2ef303f7fa in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #7 0x5d2efc26a9f0 in base::TestSuite::Run() base/test/test_suite.cc:440:16 #8 0x5d2ef682cc21 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #9 0x5d2efc278cab in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #10 0x5d2efc2785cb in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #11 0x5d2ef682c8e4 in main remoting/base/run_all_unittests.cc:60:10 #12 0x71e7d0f74249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) 0x7087cf882200 is located 0 bytes inside of 24024-byte region [0x7087cf882200,0x7087cf887fd8) freed by thread T2 here: #0 0x5d2ef0b72366 in free (/chromium/chromium/src/out/asan/remoting_unittests+0x61c7366) (BuildId: 8f22cc7d9f5996a8) #1 0x5d2ef20073c7 in base::circular_deque>>::ExpandCapacityIfNecessary(unsigned long) base/containers/vector_buffer.h:67:5 #2 0x5d2f01ed1103 in std::__Cr::vector>& base::circular_deque>>::emplace_back<>() base/containers/circular_deque.h:989:5 #3 0x5d2f01ed0c3c in remoting::protocol::WebrtcEventLogData::CreateNewSection() remoting/protocol/webrtc_event_log_data.cc:77:13 #4 0x5d2f01ed0983 in remoting::protocol::WebrtcEventLogData::Write(std::__Cr::basic_string_view>) remoting/protocol/webrtc_event_log_data.cc:48:5 #5 0x5d2ef0f8612b in void* std::__Cr::__thread_proxy>, remoting::protocol::WebrtcEventLogDataTest_ConcurrentWriteAndTake_DataRace_DefaultLimits_Test::TestBody()::$_0>>(void*) remoting/protocol/webrtc_event_log_data_unittest.cc:135:17 #6 0x5d2ef0b6ff16 in asan_thread_start(void*) asan_interceptors.cpp previously allocated by thread T0 here: #0 0x5d2ef0b72934 in malloc (/chromium/chromium/src/out/asan/remoting_unittests+0x61c7934) (BuildId: 8f22cc7d9f5996a8) #1 0x5d2f01ecfdbd in base::circular_deque>>::reserve(unsigned long) base/containers/vector_buffer.h:52:13 #2 0x5d2f01ed0335 in remoting::protocol::WebrtcEventLogData::TakeLogData() remoting/protocol/webrtc_event_log_data.cc:58:13 #3 0x5d2ef0f82c73 in remoting::protocol::WebrtcEventLogDataTest_ConcurrentWriteAndTake_DataRace_DefaultLimits_Test::TestBody() remoting/protocol/webrtc_event_log_data_unittest.cc:140:27 #4 0x5d2ef300d64b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #5 0x5d2ef30101b7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #6 0x5d2ef3012233 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #7 0x5d2ef3040c84 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #8 0x5d2ef303f7fa in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #9 0x5d2efc26a9f0 in base::TestSuite::Run() base/test/test_suite.cc:440:16 #10 0x5d2ef682cc21 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #11 0x5d2efc278cab in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #12 0x5d2efc2785cb in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #13 0x5d2ef682c8e4 in main remoting/base/run_all_unittests.cc:60:10 #14 0x71e7d0f74249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) Thread T2 created by T0 here: #0 0x5d2ef0b55d91 in pthread_create (/chromium/chromium/src/out/asan/remoting_unittests+0x61aad91) (BuildId: 8f22cc7d9f5996a8) #1 0x5d2ef0f82bf6 in remoting::protocol::WebrtcEventLogDataTest_ConcurrentWriteAndTake_DataRace_DefaultLimits_Test::TestBody() gen/third_party/libc++/src/include/__thread/support/pthread.h:182:10 #2 0x5d2ef300d64b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #3 0x5d2ef30101b7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #4 0x5d2ef3012233 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #5 0x5d2ef3040c84 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #6 0x5d2ef303f7fa in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #7 0x5d2efc26a9f0 in base::TestSuite::Run() base/test/test_suite.cc:440:16 #8 0x5d2ef682cc21 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #9 0x5d2efc278cab in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #10 0x5d2efc2785cb in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #11 0x5d2ef682c8e4 in main remoting/base/run_all_unittests.cc:60:10 #12 0x71e7d0f74249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) SUMMARY: AddressSanitizer: double-free (/chromium/chromium/src/out/asan/remoting_unittests+0x61c7366) (BuildId: 8f22cc7d9f5996a8) in free ==1302==ADDITIONAL INFO ==1302==Note: Please include this section with the ASan report. Task trace: ==1302==END OF ADDITIONAL INFO ==1302==ABORTING