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

Test 'ExpectCTReporterTest.BadCorsPreflightResponseOrigin' completed with the following status(es): 'FAILURE_ON_EXIT','SUCCESS' Test 'ExpectCTReporterTest.BadCorsPreflightResponseOrigin' had the following logs when run: ================================================================================ [ RUN ] ExpectCTReporterTest.BadCorsPreflightResponseOrigin ================== WARNING: ThreadSanitizer: heap-use-after-free (pid=4827) Read of size 8 at 0x7b0c0002d1c0 by main thread: #0 operator-> base/memory/scoped_refptr.h:221:12 (services_unittests+0x4424c87) #1 base::RunLoop::Quit() base/run_loop.cc:183 (services_unittests+0x4424c87) #2 Invoke<void (base::RunLoop::*)(), base::RunLoop *> base/bind_internal.h:499:12 (services_unittests+0x4425e88) #3 MakeItSo<void (base::RunLoop::*)(), base::RunLoop *> base/bind_internal.h:599 (services_unittests+0x4425e88) #4 RunImpl<void (base::RunLoop::*)(), std::__1::tuple<base::internal::UnretainedWrapper<base::RunLoop> >, 0> base/bind_internal.h:672 (services_unittests+0x4425e88) #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+0x4425e88) #6 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #7 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #8 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:363:23 (services_unittests+0x4455468) #9 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:214:7 (services_unittests+0x445502d) #10 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (services_unittests+0x445598e) #11 base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_libevent.cc:208:55 (services_unittests+0x44db35f) #12 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:448:12 (services_unittests+0x4456179) #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+0x4456179) #14 base::RunLoop::RunWithTimeout(base::TimeDelta) base/run_loop.cc:161:14 (services_unittests+0x4424050) #15 base::RunLoop::Run() base/run_loop.cc:129:3 (services_unittests+0x4423e43) #16 net::test_server::EmbeddedTestServer::PostTaskToIOThreadAndWait(base::RepeatingCallback<void ()> const&) net/test/embedded_test_server/embedded_test_server.cc:520:12 (services_unittests+0x5e9ae70) #17 ShutdownAndWaitUntilComplete net/test/embedded_test_server/embedded_test_server.cc:191:10 (services_unittests+0x5e992da) #18 net::test_server::EmbeddedTestServer::~EmbeddedTestServer() net/test/embedded_test_server/embedded_test_server.cc:65 (services_unittests+0x5e992da) #19 ~ExpectCTReporterTest services/network/expect_ct_reporter_unittest.cc:337:37 (services_unittests+0x1f0f338) #20 network::ExpectCTReporterTest_BadCorsPreflightResponseOrigin_Test::~ExpectCTReporterTest_BadCorsPreflightResponseOrigin_Test() services/network/expect_ct_reporter_unittest.cc:726 (services_unittests+0x1f0f338) #21 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #22 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #23 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #24 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #25 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #26 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #27 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #28 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #29 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #30 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #31 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #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+0x1fdba18) #33 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #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+0x5df0fed) #35 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #36 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 8 at 0x7b0c0002d1c0 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+0x1b433ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1f0f32c) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1f0f32c) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1f0f32c) #4 ~ExpectCTReporterTest services/network/expect_ct_reporter_unittest.cc:337 (services_unittests+0x1f0f32c) #5 network::ExpectCTReporterTest_BadCorsPreflightResponseOrigin_Test::~ExpectCTReporterTest_BadCorsPreflightResponseOrigin_Test() services/network/expect_ct_reporter_unittest.cc:726 (services_unittests+0x1f0f32c) #6 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #7 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #8 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #9 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #10 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #11 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #12 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #13 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #14 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #15 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #16 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #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+0x1fdba18) #18 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #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+0x5df0fed) #20 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #21 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) SUMMARY: ThreadSanitizer: heap-use-after-free base/memory/scoped_refptr.h:221:12 in operator-> ================== ================== WARNING: ThreadSanitizer: heap-use-after-free (pid=4827) Write of size 1 at 0x7b0c0002d1bc by main thread: #0 base::RunLoop::Quit() base/run_loop.cc:189:16 (services_unittests+0x4424cab) #1 Invoke<void (base::RunLoop::*)(), base::RunLoop *> base/bind_internal.h:499:12 (services_unittests+0x4425e88) #2 MakeItSo<void (base::RunLoop::*)(), base::RunLoop *> base/bind_internal.h:599 (services_unittests+0x4425e88) #3 RunImpl<void (base::RunLoop::*)(), std::__1::tuple<base::internal::UnretainedWrapper<base::RunLoop> >, 0> base/bind_internal.h:672 (services_unittests+0x4425e88) #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+0x4425e88) #5 Run base/callback.h:97:12 (services_unittests+0x443ec2a) #6 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (services_unittests+0x443ec2a) #7 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:363:23 (services_unittests+0x4455468) #8 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:214:7 (services_unittests+0x445502d) #9 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (services_unittests+0x445598e) #10 base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_libevent.cc:208:55 (services_unittests+0x44db35f) #11 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:448:12 (services_unittests+0x4456179) #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+0x4456179) #13 base::RunLoop::RunWithTimeout(base::TimeDelta) base/run_loop.cc:161:14 (services_unittests+0x4424050) #14 base::RunLoop::Run() base/run_loop.cc:129:3 (services_unittests+0x4423e43) #15 net::test_server::EmbeddedTestServer::PostTaskToIOThreadAndWait(base::RepeatingCallback<void ()> const&) net/test/embedded_test_server/embedded_test_server.cc:520:12 (services_unittests+0x5e9ae70) #16 ShutdownAndWaitUntilComplete net/test/embedded_test_server/embedded_test_server.cc:191:10 (services_unittests+0x5e992da) #17 net::test_server::EmbeddedTestServer::~EmbeddedTestServer() net/test/embedded_test_server/embedded_test_server.cc:65 (services_unittests+0x5e992da) #18 ~ExpectCTReporterTest services/network/expect_ct_reporter_unittest.cc:337:37 (services_unittests+0x1f0f338) #19 network::ExpectCTReporterTest_BadCorsPreflightResponseOrigin_Test::~ExpectCTReporterTest_BadCorsPreflightResponseOrigin_Test() services/network/expect_ct_reporter_unittest.cc:726 (services_unittests+0x1f0f338) #20 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #21 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #22 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #23 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #24 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #25 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #26 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #27 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #28 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #29 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #30 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #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+0x1fdba18) #32 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #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+0x5df0fed) #34 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #35 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) Previous write of size 8 at 0x7b0c0002d1b8 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+0x1b433ae) #1 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (services_unittests+0x1f0f32c) #2 reset buildtools/third_party/libc++/trunk/include/memory:2651 (services_unittests+0x1f0f32c) #3 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (services_unittests+0x1f0f32c) #4 ~ExpectCTReporterTest services/network/expect_ct_reporter_unittest.cc:337 (services_unittests+0x1f0f32c) #5 network::ExpectCTReporterTest_BadCorsPreflightResponseOrigin_Test::~ExpectCTReporterTest_BadCorsPreflightResponseOrigin_Test() services/network/expect_ct_reporter_unittest.cc:726 (services_unittests+0x1f0f32c) #6 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2dd260e) #7 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (services_unittests+0x2dd260e) #8 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (services_unittests+0x2dd3156) #9 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (services_unittests+0x2de55d6) #10 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (services_unittests+0x2de4a39) #11 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (services_unittests+0x2de4a39) #12 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (services_unittests+0x5de7a52) #13 base::TestSuite::Run() base/test/test_suite.cc:316 (services_unittests+0x5de7a52) #14 Invoke<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:499:12 (services_unittests+0x1fdba18) #15 MakeItSo<int (base::TestSuite::*)(), (anonymous namespace)::ServiceTestSuite *> base/bind_internal.h:599 (services_unittests+0x1fdba18) #16 RunImpl<int (base::TestSuite::*)(), std::__1::tuple<base::internal::UnretainedWrapper<(anonymous namespace)::ServiceTestSuite> >, 0> base/bind_internal.h:672 (services_unittests+0x1fdba18) #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+0x1fdba18) #18 Run base/callback.h:97:12 (services_unittests+0x5df0fed) #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+0x5df0fed) #20 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (services_unittests+0x5df0e50) #21 main services/test/run_all_unittests.cc:97:10 (services_unittests+0x1fdb64f) SUMMARY: ThreadSanitizer: heap-use-after-free base/run_loop.cc:189:16 in base::RunLoop::Quit() ================== [ OK ] ExpectCTReporterTest.BadCorsPreflightResponseOrigin (881 ms) [ RUN ] ExpectCTReporterTest.BadCorsPreflightResponseMethods [ OK ] ExpectCTReporterTest.BadCorsPreflightResponseMethods (21 ms) [ RUN ] ExpectCTReporterTest.BadCorsPreflightResponseHeaders [ OK ] ExpectCTReporterTest.BadCorsPreflightResponseHeaders (18 ms) [----------] 3 tests from ExpectCTReporterTest (920 ms total) [----------] 2 tests from ExpectCTReporterWaitTest [ RUN ] ExpectCTReporterWaitTest.SendReportFailure [ OK ] ExpectCTReporterWaitTest.SendReportFailure (11 ms) [ RUN ] ExpectCTReporterWaitTest.SendReportFailureCallback [ OK ] ExpectCTReporterWaitTest.SendReportFailureCallback (6 ms) [----------] 2 tests from ExpectCTReporterWaitTest (17 ms total) [----------] 1 test from NetworkContextCertTransparencyAuditingDisabledTest [ RUN ] NetworkContextCertTransparencyAuditingDisabledTest.SCTsAreNotCheckedForInclusion [4827:5111:0422/035108.103449:25737003338:WARNING:embedded_test_server.cc(238)] Request not handled. Returning 404: / [ OK ] NetworkContextCertTransparencyAuditingDisabledTest.SCTsAreNotCheckedForInclusion (183 ms) [----------] 1 test from NetworkContextCertTransparencyAuditingDisabledTest (184 ms total) [----------] 1 test from NetworkContextCertTransparencyAuditingEnabledTest [ RUN ] NetworkContextCertTransparencyAuditingEnabledTest.SCTsAreCheckedForInclusion [4827:5133:0422/035108.185227:25737085113:WARNING:embedded_test_server.cc(238)] Request not handled. Returning 404: / [ OK ] NetworkContextCertTransparencyAuditingEnabledTest.SCTsAreCheckedForInclusion (82 ms) [----------] 1 test from NetworkContextCertTransparencyAuditingEnabledTest (82 ms total) [----------] 3 tests from CookieManagerTraitsTest [ RUN ] CookieManagerTraitsTest.Roundtrips_CookieInclusionStatus [ OK ] CookieManagerTraitsTest.Roundtrips_CookieInclusionStatus (0 ms) [ RUN ] CookieManagerTraitsTest.Roundtrips_CanonicalCookie [ OK ] CookieManagerTraitsTest.Roundtrips_CanonicalCookie (0 ms) [ RUN ] CookieManagerTraitsTest.Roundtrips_CookieWithStatus [ OK ] CookieManagerTraitsTest.Roundtrips_CookieWithStatus (1 ms) [----------] 3 tests from CookieManagerTraitsTest (1 ms total) [----------] Global test environment tear-down [==========] 10 tests from 5 test suites ran. (1206 ms total) [ PASSED ] 10 tests. ThreadSanitizer: reported 2 warnings [ RUN ] ExpectCTReporterTest.BadCorsPreflightResponseOrigin [ OK ] ExpectCTReporterTest.BadCorsPreflightResponseOrigin (20 ms) ================================================================================