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

Test 'ExpectCTReporterTest.PreflightContainsWhitespace' completed with the following status(es): 'FAILURE_ON_EXIT','SUCCESS' Test 'ExpectCTReporterTest.PreflightContainsWhitespace' had the following logs when run: ================================================================================ [ RUN ] ExpectCTReporterTest.PreflightContainsWhitespace [ OK ] ExpectCTReporterTest.PreflightContainsWhitespace (42 ms) [ RUN ] ExpectCTReporterTest.BadCorsPreflightResponseOrigin ================== WARNING: ThreadSanitizer: heap-use-after-free (pid=4572) Read of size 8 at 0x7b1c00001b70 by main thread: #0 operator-> base/memory/scoped_refptr.h:220:5 (services_unittests+0x5438866) #1 base::RunLoop::Quit() base/run_loop.cc:183 (services_unittests+0x5438866) #2 Invoke<void (base::RunLoop::*)(), base::RunLoop *> base/bind_internal.h:499:12 (services_unittests+0x543adb8) #3 MakeItSo<void (base::RunLoop::*)(), base::RunLoop *> base/bind_internal.h:599 (services_unittests+0x543adb8) #4 RunImpl<void (base::RunLoop::*)(), std::__1::tuple<base::internal::UnretainedWrapper<base::RunLoop> >, 0> base/bind_internal.h:672 (services_unittests+0x543adb8) #5 base::internal::Invoker<base::internal::BindState<void (base::RunLoop::*)(), base::internal::UnretainedWrapper<base::RunLoop> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x543adb8) #6 Run base/callback.h:97:12 (services_unittests+0x54593d2) #7 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (services_unittests+0x54593d2) #8 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:356:23 (services_unittests+0x5480a84) #9 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:214:7 (services_unittests+0x548058d) #10 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (services_unittests+0x5480ffe) #11 base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_libevent.cc:208:55 (services_unittests+0x552bd25) #12 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:441:12 (services_unittests+0x54816fb) #13 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (services_unittests+0x548184d) #14 base::RunLoop::RunWithTimeout(base::TimeDelta) base/run_loop.cc:161:14 (services_unittests+0x5437da1) #15 base::RunLoop::Run() base/run_loop.cc:129:3 (services_unittests+0x54379a3) #16 net::test_server::EmbeddedTestServer::PostTaskToIOThreadAndWait(base::RepeatingCallback<void ()> const&) net/test/embedded_test_server/embedded_test_server.cc:520:12 (services_unittests+0x73ca7dc) #17 net::test_server::EmbeddedTestServer::ShutdownAndWaitUntilComplete() net/test/embedded_test_server/embedded_test_server.cc:191:10 (services_unittests+0x73c8c2f) #18 net::test_server::EmbeddedTestServer::~EmbeddedTestServer() net/test/embedded_test_server/embedded_test_server.cc:65:21 (services_unittests+0x73c880e) #19 ~ExpectCTReporterTest services/network/expect_ct_reporter_unittest.cc:337:37 (services_unittests+0x2320e58) #20 network::ExpectCTReporterTest_BadCorsPreflightResponseOrigin_Test::~ExpectCTReporterTest_BadCorsPreflightResponseOrigin_Test() services/network/expect_ct_reporter_unittest.cc:726 (services_unittests+0x2320e58) #21 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33c4b7e) #22 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x33c4b7e) #23 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x33c56c6) #24 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5262:44 (services_unittests+0x33d77c6) #25 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33d6fa9) #26 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x33d6fa9) #27 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x72efce2) #28 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x72efce2) #29 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x23fdbf8) #30 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x23fdbf8) #31 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x23fdbf8) #32 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+0x23fdbf8) #33 Run base/callback.h:97:12 (services_unittests+0x72fb0e8) #34 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x72fb0e8) #35 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x72faef7) #36 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x23fd82e) Previous write of size 8 at 0x7b1c00001b70 by main thread: #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+0x1f483ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x2320e4c) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x2320e4c) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x2320e4c) #4 ~ExpectCTReporterTest services/network/expect_ct_reporter_unittest.cc:337 (services_unittests+0x2320e4c) #5 network::ExpectCTReporterTest_BadCorsPreflightResponseOrigin_Test::~ExpectCTReporterTest_BadCorsPreflightResponseOrigin_Test() services/network/expect_ct_reporter_unittest.cc:726 (services_unittests+0x2320e4c) #6 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33c4b7e) #7 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x33c4b7e) #8 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x33c56c6) #9 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5262:44 (services_unittests+0x33d77c6) #10 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33d6fa9) #11 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x33d6fa9) #12 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x72efce2) #13 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x72efce2) #14 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x23fdbf8) #15 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x23fdbf8) #16 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x23fdbf8) #17 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+0x23fdbf8) #18 Run base/callback.h:97:12 (services_unittests+0x72fb0e8) #19 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x72fb0e8) #20 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x72faef7) #21 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x23fd82e) SUMMARY: ThreadSanitizer: heap-use-after-free base/memory/scoped_refptr.h:220:5 in operator-> ================== ================== WARNING: ThreadSanitizer: heap-use-after-free (pid=4572) Write of size 1 at 0x7b1c00001b2d by main thread: #0 base::RunLoop::Quit() base/run_loop.cc:189:16 (services_unittests+0x54388d9) #1 Invoke<void (base::RunLoop::*)(), base::RunLoop *> base/bind_internal.h:499:12 (services_unittests+0x543adb8) #2 MakeItSo<void (base::RunLoop::*)(), base::RunLoop *> base/bind_internal.h:599 (services_unittests+0x543adb8) #3 RunImpl<void (base::RunLoop::*)(), std::__1::tuple<base::internal::UnretainedWrapper<base::RunLoop> >, 0> base/bind_internal.h:672 (services_unittests+0x543adb8) #4 base::internal::Invoker<base::internal::BindState<void (base::RunLoop::*)(), base::internal::UnretainedWrapper<base::RunLoop> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x543adb8) #5 Run base/callback.h:97:12 (services_unittests+0x54593d2) #6 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (services_unittests+0x54593d2) #7 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:356:23 (services_unittests+0x5480a84) #8 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:214:7 (services_unittests+0x548058d) #9 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (services_unittests+0x5480ffe) #10 base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_libevent.cc:208:55 (services_unittests+0x552bd25) #11 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:441:12 (services_unittests+0x54816fb) #12 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (services_unittests+0x548184d) #13 base::RunLoop::RunWithTimeout(base::TimeDelta) base/run_loop.cc:161:14 (services_unittests+0x5437da1) #14 base::RunLoop::Run() base/run_loop.cc:129:3 (services_unittests+0x54379a3) #15 net::test_server::EmbeddedTestServer::PostTaskToIOThreadAndWait(base::RepeatingCallback<void ()> const&) net/test/embedded_test_server/embedded_test_server.cc:520:12 (services_unittests+0x73ca7dc) #16 net::test_server::EmbeddedTestServer::ShutdownAndWaitUntilComplete() net/test/embedded_test_server/embedded_test_server.cc:191:10 (services_unittests+0x73c8c2f) #17 net::test_server::EmbeddedTestServer::~EmbeddedTestServer() net/test/embedded_test_server/embedded_test_server.cc:65:21 (services_unittests+0x73c880e) #18 ~ExpectCTReporterTest services/network/expect_ct_reporter_unittest.cc:337:37 (services_unittests+0x2320e58) #19 network::ExpectCTReporterTest_BadCorsPreflightResponseOrigin_Test::~ExpectCTReporterTest_BadCorsPreflightResponseOrigin_Test() services/network/expect_ct_reporter_unittest.cc:726 (services_unittests+0x2320e58) #20 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33c4b7e) #21 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x33c4b7e) #22 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x33c56c6) #23 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5262:44 (services_unittests+0x33d77c6) #24 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33d6fa9) #25 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x33d6fa9) #26 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x72efce2) #27 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x72efce2) #28 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x23fdbf8) #29 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x23fdbf8) #30 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x23fdbf8) #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+0x23fdbf8) #32 Run base/callback.h:97:12 (services_unittests+0x72fb0e8) #33 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x72fb0e8) #34 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x72faef7) #35 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x23fd82e) Previous write of size 8 at 0x7b1c00001b28 by main thread: #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+0x1f483ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x2320e4c) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x2320e4c) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x2320e4c) #4 ~ExpectCTReporterTest services/network/expect_ct_reporter_unittest.cc:337 (services_unittests+0x2320e4c) #5 network::ExpectCTReporterTest_BadCorsPreflightResponseOrigin_Test::~ExpectCTReporterTest_BadCorsPreflightResponseOrigin_Test() services/network/expect_ct_reporter_unittest.cc:726 (services_unittests+0x2320e4c) #6 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33c4b7e) #7 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x33c4b7e) #8 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x33c56c6) #9 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5262:44 (services_unittests+0x33d77c6) #10 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33d6fa9) #11 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x33d6fa9) #12 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x72efce2) #13 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x72efce2) #14 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x23fdbf8) #15 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x23fdbf8) #16 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x23fdbf8) #17 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+0x23fdbf8) #18 Run base/callback.h:97:12 (services_unittests+0x72fb0e8) #19 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x72fb0e8) #20 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x72faef7) #21 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x23fd82e) SUMMARY: ThreadSanitizer: heap-use-after-free base/run_loop.cc:189:16 in base::RunLoop::Quit() ================== [ OK ] ExpectCTReporterTest.BadCorsPreflightResponseOrigin (1537 ms) [ RUN ] ExpectCTReporterTest.BadCorsPreflightResponseMethods ================== WARNING: ThreadSanitizer: heap-use-after-free (pid=4572) Read of size 8 at 0x7b1c00001a20 by main thread: #0 operator-> base/memory/scoped_refptr.h:220:5 (services_unittests+0x5438866) #1 base::RunLoop::Quit() base/run_loop.cc:183 (services_unittests+0x5438866) #2 Invoke<void (base::RunLoop::*)(), base::RunLoop *> base/bind_internal.h:499:12 (services_unittests+0x543adb8) #3 MakeItSo<void (base::RunLoop::*)(), base::RunLoop *> base/bind_internal.h:599 (services_unittests+0x543adb8) #4 RunImpl<void (base::RunLoop::*)(), std::__1::tuple<base::internal::UnretainedWrapper<base::RunLoop> >, 0> base/bind_internal.h:672 (services_unittests+0x543adb8) #5 base::internal::Invoker<base::internal::BindState<void (base::RunLoop::*)(), base::internal::UnretainedWrapper<base::RunLoop> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x543adb8) #6 Run base/callback.h:97:12 (services_unittests+0x54593d2) #7 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (services_unittests+0x54593d2) #8 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:356:23 (services_unittests+0x5480a84) #9 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:214:7 (services_unittests+0x548058d) #10 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (services_unittests+0x5480ffe) #11 base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_libevent.cc:208:55 (services_unittests+0x552bd25) #12 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:441:12 (services_unittests+0x54816fb) #13 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (services_unittests+0x548184d) #14 base::RunLoop::RunWithTimeout(base::TimeDelta) base/run_loop.cc:161:14 (services_unittests+0x5437da1) #15 base::RunLoop::Run() base/run_loop.cc:129:3 (services_unittests+0x54379a3) #16 net::test_server::EmbeddedTestServer::PostTaskToIOThreadAndWait(base::RepeatingCallback<void ()> const&) net/test/embedded_test_server/embedded_test_server.cc:520:12 (services_unittests+0x73ca7dc) #17 net::test_server::EmbeddedTestServer::ShutdownAndWaitUntilComplete() net/test/embedded_test_server/embedded_test_server.cc:191:10 (services_unittests+0x73c8c2f) #18 net::test_server::EmbeddedTestServer::~EmbeddedTestServer() net/test/embedded_test_server/embedded_test_server.cc:65:21 (services_unittests+0x73c880e) #19 ~ExpectCTReporterTest services/network/expect_ct_reporter_unittest.cc:337:37 (services_unittests+0x2320f08) #20 network::ExpectCTReporterTest_BadCorsPreflightResponseMethods_Test::~ExpectCTReporterTest_BadCorsPreflightResponseMethods_Test() services/network/expect_ct_reporter_unittest.cc:750 (services_unittests+0x2320f08) #21 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33c4b7e) #22 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x33c4b7e) #23 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x33c56c6) #24 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5262:44 (services_unittests+0x33d77c6) #25 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33d6fa9) #26 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x33d6fa9) #27 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x72efce2) #28 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x72efce2) #29 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x23fdbf8) #30 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x23fdbf8) #31 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x23fdbf8) #32 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+0x23fdbf8) #33 Run base/callback.h:97:12 (services_unittests+0x72fb0e8) #34 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x72fb0e8) #35 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x72faef7) #36 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x23fd82e) Previous write of size 8 at 0x7b1c00001a20 by main thread: #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+0x1f483ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x2320efc) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x2320efc) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x2320efc) #4 ~ExpectCTReporterTest services/network/expect_ct_reporter_unittest.cc:337 (services_unittests+0x2320efc) #5 network::ExpectCTReporterTest_BadCorsPreflightResponseMethods_Test::~ExpectCTReporterTest_BadCorsPreflightResponseMethods_Test() services/network/expect_ct_reporter_unittest.cc:750 (services_unittests+0x2320efc) #6 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33c4b7e) #7 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x33c4b7e) #8 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x33c56c6) #9 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5262:44 (services_unittests+0x33d77c6) #10 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33d6fa9) #11 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x33d6fa9) #12 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x72efce2) #13 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x72efce2) #14 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x23fdbf8) #15 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x23fdbf8) #16 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x23fdbf8) #17 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+0x23fdbf8) #18 Run base/callback.h:97:12 (services_unittests+0x72fb0e8) #19 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x72fb0e8) #20 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x72faef7) #21 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x23fd82e) SUMMARY: ThreadSanitizer: heap-use-after-free base/memory/scoped_refptr.h:220:5 in operator-> ================== ================== WARNING: ThreadSanitizer: heap-use-after-free (pid=4572) Write of size 1 at 0x7b1c000019dd by main thread: #0 base::RunLoop::Quit() base/run_loop.cc:189:16 (services_unittests+0x54388d9) #1 Invoke<void (base::RunLoop::*)(), base::RunLoop *> base/bind_internal.h:499:12 (services_unittests+0x543adb8) #2 MakeItSo<void (base::RunLoop::*)(), base::RunLoop *> base/bind_internal.h:599 (services_unittests+0x543adb8) #3 RunImpl<void (base::RunLoop::*)(), std::__1::tuple<base::internal::UnretainedWrapper<base::RunLoop> >, 0> base/bind_internal.h:672 (services_unittests+0x543adb8) #4 base::internal::Invoker<base::internal::BindState<void (base::RunLoop::*)(), base::internal::UnretainedWrapper<base::RunLoop> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x543adb8) #5 Run base/callback.h:97:12 (services_unittests+0x54593d2) #6 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (services_unittests+0x54593d2) #7 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:356:23 (services_unittests+0x5480a84) #8 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:214:7 (services_unittests+0x548058d) #9 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (services_unittests+0x5480ffe) #10 base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_libevent.cc:208:55 (services_unittests+0x552bd25) #11 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:441:12 (services_unittests+0x54816fb) #12 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (services_unittests+0x548184d) #13 base::RunLoop::RunWithTimeout(base::TimeDelta) base/run_loop.cc:161:14 (services_unittests+0x5437da1) #14 base::RunLoop::Run() base/run_loop.cc:129:3 (services_unittests+0x54379a3) #15 net::test_server::EmbeddedTestServer::PostTaskToIOThreadAndWait(base::RepeatingCallback<void ()> const&) net/test/embedded_test_server/embedded_test_server.cc:520:12 (services_unittests+0x73ca7dc) #16 net::test_server::EmbeddedTestServer::ShutdownAndWaitUntilComplete() net/test/embedded_test_server/embedded_test_server.cc:191:10 (services_unittests+0x73c8c2f) #17 net::test_server::EmbeddedTestServer::~EmbeddedTestServer() net/test/embedded_test_server/embedded_test_server.cc:65:21 (services_unittests+0x73c880e) #18 ~ExpectCTReporterTest services/network/expect_ct_reporter_unittest.cc:337:37 (services_unittests+0x2320f08) #19 network::ExpectCTReporterTest_BadCorsPreflightResponseMethods_Test::~ExpectCTReporterTest_BadCorsPreflightResponseMethods_Test() services/network/expect_ct_reporter_unittest.cc:750 (services_unittests+0x2320f08) #20 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33c4b7e) #21 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x33c4b7e) #22 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x33c56c6) #23 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5262:44 (services_unittests+0x33d77c6) #24 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33d6fa9) #25 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x33d6fa9) #26 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x72efce2) #27 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x72efce2) #28 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x23fdbf8) #29 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x23fdbf8) #30 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x23fdbf8) #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+0x23fdbf8) #32 Run base/callback.h:97:12 (services_unittests+0x72fb0e8) #33 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x72fb0e8) #34 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x72faef7) #35 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x23fd82e) Previous write of size 8 at 0x7b1c000019d8 by main thread: #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+0x1f483ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x2320efc) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x2320efc) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x2320efc) #4 ~ExpectCTReporterTest services/network/expect_ct_reporter_unittest.cc:337 (services_unittests+0x2320efc) #5 network::ExpectCTReporterTest_BadCorsPreflightResponseMethods_Test::~ExpectCTReporterTest_BadCorsPreflightResponseMethods_Test() services/network/expect_ct_reporter_unittest.cc:750 (services_unittests+0x2320efc) #6 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33c4b7e) #7 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x33c4b7e) #8 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x33c56c6) #9 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5262:44 (services_unittests+0x33d77c6) #10 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33d6fa9) #11 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x33d6fa9) #12 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x72efce2) #13 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x72efce2) #14 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x23fdbf8) #15 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x23fdbf8) #16 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x23fdbf8) #17 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+0x23fdbf8) #18 Run base/callback.h:97:12 (services_unittests+0x72fb0e8) #19 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x72fb0e8) #20 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x72faef7) #21 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x23fd82e) SUMMARY: ThreadSanitizer: heap-use-after-free base/run_loop.cc:189:16 in base::RunLoop::Quit() ================== [ OK ] ExpectCTReporterTest.BadCorsPreflightResponseMethods (66 ms) [ RUN ] ExpectCTReporterTest.BadCorsPreflightResponseHeaders ================== WARNING: ThreadSanitizer: heap-use-after-free (pid=4572) Read of size 8 at 0x7b1c00001a90 by main thread: #0 operator-> base/memory/scoped_refptr.h:220:5 (services_unittests+0x5438866) #1 base::RunLoop::Quit() base/run_loop.cc:183 (services_unittests+0x5438866) #2 Invoke<void (base::RunLoop::*)(), base::RunLoop *> base/bind_internal.h:499:12 (services_unittests+0x543adb8) #3 MakeItSo<void (base::RunLoop::*)(), base::RunLoop *> base/bind_internal.h:599 (services_unittests+0x543adb8) #4 RunImpl<void (base::RunLoop::*)(), std::__1::tuple<base::internal::UnretainedWrapper<base::RunLoop> >, 0> base/bind_internal.h:672 (services_unittests+0x543adb8) #5 base::internal::Invoker<base::internal::BindState<void (base::RunLoop::*)(), base::internal::UnretainedWrapper<base::RunLoop> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x543adb8) #6 Run base/callback.h:97:12 (services_unittests+0x54593d2) #7 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (services_unittests+0x54593d2) #8 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:356:23 (services_unittests+0x5480a84) #9 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:214:7 (services_unittests+0x548058d) #10 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (services_unittests+0x5480ffe) #11 base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_libevent.cc:208:55 (services_unittests+0x552bd25) #12 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:441:12 (services_unittests+0x54816fb) #13 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (services_unittests+0x548184d) #14 base::RunLoop::RunWithTimeout(base::TimeDelta) base/run_loop.cc:161:14 (services_unittests+0x5437da1) #15 base::RunLoop::Run() base/run_loop.cc:129:3 (services_unittests+0x54379a3) #16 net::test_server::EmbeddedTestServer::PostTaskToIOThreadAndWait(base::RepeatingCallback<void ()> const&) net/test/embedded_test_server/embedded_test_server.cc:520:12 (services_unittests+0x73ca7dc) #17 net::test_server::EmbeddedTestServer::ShutdownAndWaitUntilComplete() net/test/embedded_test_server/embedded_test_server.cc:191:10 (services_unittests+0x73c8c2f) #18 net::test_server::EmbeddedTestServer::~EmbeddedTestServer() net/test/embedded_test_server/embedded_test_server.cc:65:21 (services_unittests+0x73c880e) #19 ~ExpectCTReporterTest services/network/expect_ct_reporter_unittest.cc:337:37 (services_unittests+0x2320fb8) #20 network::ExpectCTReporterTest_BadCorsPreflightResponseHeaders_Test::~ExpectCTReporterTest_BadCorsPreflightResponseHeaders_Test() services/network/expect_ct_reporter_unittest.cc:774 (services_unittests+0x2320fb8) #21 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33c4b7e) #22 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x33c4b7e) #23 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x33c56c6) #24 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5262:44 (services_unittests+0x33d77c6) #25 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33d6fa9) #26 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x33d6fa9) #27 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x72efce2) #28 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x72efce2) #29 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x23fdbf8) #30 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x23fdbf8) #31 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x23fdbf8) #32 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+0x23fdbf8) #33 Run base/callback.h:97:12 (services_unittests+0x72fb0e8) #34 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x72fb0e8) #35 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x72faef7) #36 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x23fd82e) Previous write of size 8 at 0x7b1c00001a90 by main thread: #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+0x1f483ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x2320fac) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x2320fac) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x2320fac) #4 ~ExpectCTReporterTest services/network/expect_ct_reporter_unittest.cc:337 (services_unittests+0x2320fac) #5 network::ExpectCTReporterTest_BadCorsPreflightResponseHeaders_Test::~ExpectCTReporterTest_BadCorsPreflightResponseHeaders_Test() services/network/expect_ct_reporter_unittest.cc:774 (services_unittests+0x2320fac) #6 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33c4b7e) #7 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x33c4b7e) #8 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x33c56c6) #9 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5262:44 (services_unittests+0x33d77c6) #10 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33d6fa9) #11 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x33d6fa9) #12 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x72efce2) #13 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x72efce2) #14 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x23fdbf8) #15 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x23fdbf8) #16 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x23fdbf8) #17 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+0x23fdbf8) #18 Run base/callback.h:97:12 (services_unittests+0x72fb0e8) #19 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x72fb0e8) #20 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x72faef7) #21 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x23fd82e) SUMMARY: ThreadSanitizer: heap-use-after-free base/memory/scoped_refptr.h:220:5 in operator-> ================== ================== WARNING: ThreadSanitizer: heap-use-after-free (pid=4572) Write of size 1 at 0x7b1c00001a4d by main thread: #0 base::RunLoop::Quit() base/run_loop.cc:189:16 (services_unittests+0x54388d9) #1 Invoke<void (base::RunLoop::*)(), base::RunLoop *> base/bind_internal.h:499:12 (services_unittests+0x543adb8) #2 MakeItSo<void (base::RunLoop::*)(), base::RunLoop *> base/bind_internal.h:599 (services_unittests+0x543adb8) #3 RunImpl<void (base::RunLoop::*)(), std::__1::tuple<base::internal::UnretainedWrapper<base::RunLoop> >, 0> base/bind_internal.h:672 (services_unittests+0x543adb8) #4 base::internal::Invoker<base::internal::BindState<void (base::RunLoop::*)(), base::internal::UnretainedWrapper<base::RunLoop> >, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (services_unittests+0x543adb8) #5 Run base/callback.h:97:12 (services_unittests+0x54593d2) #6 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (services_unittests+0x54593d2) #7 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:356:23 (services_unittests+0x5480a84) #8 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:214:7 (services_unittests+0x548058d) #9 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (services_unittests+0x5480ffe) #10 base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_libevent.cc:208:55 (services_unittests+0x552bd25) #11 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:441:12 (services_unittests+0x54816fb) #12 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (services_unittests+0x548184d) #13 base::RunLoop::RunWithTimeout(base::TimeDelta) base/run_loop.cc:161:14 (services_unittests+0x5437da1) #14 base::RunLoop::Run() base/run_loop.cc:129:3 (services_unittests+0x54379a3) #15 net::test_server::EmbeddedTestServer::PostTaskToIOThreadAndWait(base::RepeatingCallback<void ()> const&) net/test/embedded_test_server/embedded_test_server.cc:520:12 (services_unittests+0x73ca7dc) #16 net::test_server::EmbeddedTestServer::ShutdownAndWaitUntilComplete() net/test/embedded_test_server/embedded_test_server.cc:191:10 (services_unittests+0x73c8c2f) #17 net::test_server::EmbeddedTestServer::~EmbeddedTestServer() net/test/embedded_test_server/embedded_test_server.cc:65:21 (services_unittests+0x73c880e) #18 ~ExpectCTReporterTest services/network/expect_ct_reporter_unittest.cc:337:37 (services_unittests+0x2320fb8) #19 network::ExpectCTReporterTest_BadCorsPreflightResponseHeaders_Test::~ExpectCTReporterTest_BadCorsPreflightResponseHeaders_Test() services/network/expect_ct_reporter_unittest.cc:774 (services_unittests+0x2320fb8) #20 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33c4b7e) #21 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x33c4b7e) #22 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x33c56c6) #23 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5262:44 (services_unittests+0x33d77c6) #24 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33d6fa9) #25 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x33d6fa9) #26 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x72efce2) #27 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x72efce2) #28 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x23fdbf8) #29 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x23fdbf8) #30 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x23fdbf8) #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+0x23fdbf8) #32 Run base/callback.h:97:12 (services_unittests+0x72fb0e8) #33 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x72fb0e8) #34 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x72faef7) #35 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x23fd82e) Previous write of size 8 at 0x7b1c00001a48 by main thread: #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+0x1f483ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x2320fac) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x2320fac) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x2320fac) #4 ~ExpectCTReporterTest services/network/expect_ct_reporter_unittest.cc:337 (services_unittests+0x2320fac) #5 network::ExpectCTReporterTest_BadCorsPreflightResponseHeaders_Test::~ExpectCTReporterTest_BadCorsPreflightResponseHeaders_Test() services/network/expect_ct_reporter_unittest.cc:774 (services_unittests+0x2320fac) #6 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33c4b7e) #7 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x33c4b7e) #8 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x33c56c6) #9 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5262:44 (services_unittests+0x33d77c6) #10 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x33d6fa9) #11 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x33d6fa9) #12 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x72efce2) #13 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x72efce2) #14 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x23fdbf8) #15 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x23fdbf8) #16 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x23fdbf8) #17 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+0x23fdbf8) #18 Run base/callback.h:97:12 (services_unittests+0x72fb0e8) #19 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (services_unittests+0x72fb0e8) #20 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x72faef7) #21 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x23fd82e) SUMMARY: ThreadSanitizer: heap-use-after-free base/run_loop.cc:189:16 in base::RunLoop::Quit() ================== [ OK ] ExpectCTReporterTest.BadCorsPreflightResponseHeaders (89 ms) [----------] 8 tests from ExpectCTReporterTest (1869 ms total) [----------] 1 test from ExpectCTReporterWaitTest [ RUN ] ExpectCTReporterWaitTest.SendReportFailure [ OK ] ExpectCTReporterWaitTest.SendReportFailure (9 ms) [----------] 1 test from ExpectCTReporterWaitTest (10 ms total) [----------] Global test environment tear-down [==========] 10 tests from 3 test suites ran. (1897 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 6 warnings [ RUN ] ExpectCTReporterTest.PreflightContainsWhitespace [ OK ] ExpectCTReporterTest.PreflightContainsWhitespace (22 ms) ================================================================================