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

Test 'QuicHttpProxyBackendTest.CheckProxyStreamManager' completed with the following status(es): 'FAILURE','SUCCESS' Test 'QuicHttpProxyBackendTest.CheckProxyStreamManager' had the following logs when run: ================================================================================ [ RUN ] QuicHttpProxyBackendTest.CheckProxyStreamManager [4897:4897:0420/013824.192891:137336427:INFO:quic_http_proxy_backend.cc(73)] Successfully configured to run as a QUIC Proxy with Backend URL: http://www.google.com/ [4897:4897:0420/013824.194446:137337981:INFO:quic_http_proxy_backend.cc(90)] Forwarding QUIC request to the Backend Thread Asynchronously. [4897:4897:0420/013824.194639:137338176:INFO:quic_http_proxy_backend_stream.cc(107)] QUIC Proxy Making a request to the Backed URL: http://www.google.com/ [4897:5045:0420/013824.216226:137359760:INFO:quic_http_proxy_backend_stream.cc(266)] OnReadCompleted Backend with ReqId: 1 RespCode 200 RcvdBytesCount 11510 RcvdTotalBytes 0 [4897:5045:0420/013824.217349:137360884:INFO:quic_http_proxy_backend_stream.cc(266)] OnReadCompleted Backend with ReqId: 1 RespCode 200 RcvdBytesCount 0 RcvdTotalBytes 11510 [4897:5045:0420/013824.217520:137361053:INFO:quic_http_proxy_backend_stream.cc(288)] Quic Proxy Received Response from Backend for quic_conn_id: 000000000000007b quic_stream_id: 5 backend_req_id: 1 url: http://www.google.com/ [4897:5045:0420/013824.217724:137361251:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: date:Sat, 20 Apr 2019 08:38:24 GMT [4897:5045:0420/013824.217875:137361406:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: server:Apache/2.4.7 (Ubuntu) [4897:5045:0420/013824.218062:137361594:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: last-modified:Tue, 16 Apr 2019 18:55:49 GMT [4897:5045:0420/013824.218206:137361736:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: etag:"2cf6-586aa51412538-gzip" [4897:5045:0420/013824.218346:137361873:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: accept-ranges:bytes [4897:5045:0420/013824.218476:137362004:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: vary:Accept-Encoding [4897:5045:0420/013824.218615:137362142:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: content-length:3256 [4897:5045:0420/013824.218755:137362287:INFO:quic_http_proxy_backend_stream.cc(374)] Quic Proxy Ignoring Hop-by-hop Response Header: keep-alive:timeout=5, max=100 [4897:5045:0420/013824.218901:137362429:INFO:quic_http_proxy_backend_stream.cc(374)] Quic Proxy Ignoring Hop-by-hop Response Header: connection:Keep-Alive [4897:5045:0420/013824.219066:137362597:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: content-type:text/html [4897:5045:0420/013824.219207:137362740:INFO:quic_http_proxy_backend_stream.cc(392)] Quic Proxy Rewriting the Content-Length Header since the response was encoded : 11510 ../../net/tools/quic/quic_http_proxy_backend_test.cc:58: Failure Expected equality of these values: true proxy_stream_map_->empty() Which is: false Stack trace: #0 0x555e72aaa550 (/b/s/w/ir/out/Release/net_unittests+0x4e4c54f) #1 0x555e71791969 (/b/s/w/ir/out/Release/net_unittests+0x3b33968) #2 0x555e7179ffaf (/b/s/w/ir/out/Release/net_unittests+0x3b41fae) #3 0x555e7179f628 (/b/s/w/ir/out/Release/net_unittests+0x3b41627) [4897:4897:0420/013824.222370:137365905:INFO:quic_http_proxy_backend.cc(42)] QUIC Proxy thread: quic proxy thread has stopped ! ================== WARNING: ThreadSanitizer: heap-use-after-free (pid=4897) Read of size 8 at 0x7b4800002a28 by thread T4 (mutexes: write M715644957146219776): #0 memcpy /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/../sanitizer_common/sanitizer_common_interceptors.inc:801:5 (net_unittests+0xf29307) #1 quic_connection_id net/tools/quic/quic_http_proxy_backend_stream.h:87:12 (net_unittests+0x3878269) #2 net::QuicHttpProxyBackend::CloseBackendResponseStream(quic::QuicSimpleServerBackend::RequestHandler*) net/tools/quic/quic_http_proxy_backend.cc:147 (net_unittests+0x3878269) #3 Invoke<void (net::QuicHttpProxyBackend::*)(quic::QuicSimpleServerBackend::RequestHandler *), net::QuicHttpProxyBackend *, quic::QuicSimpleServerBackend::RequestHandler *> base/bind_internal.h:499:12 (net_unittests+0x3878f48) #4 MakeItSo<void (net::QuicHttpProxyBackend::*)(quic::QuicSimpleServerBackend::RequestHandler *), net::QuicHttpProxyBackend *, quic::QuicSimpleServerBackend::RequestHandler *> base/bind_internal.h:599 (net_unittests+0x3878f48) #5 RunImpl<void (net::QuicHttpProxyBackend::*)(quic::QuicSimpleServerBackend::RequestHandler *), std::__1::tuple<base::internal::UnretainedWrapper<net::QuicHttpProxyBackend>, quic::QuicSimpleServerBackend::RequestHandler *>, 0, 1> base/bind_internal.h:672 (net_unittests+0x3878f48) #6 base::internal::Invoker<base::internal::BindState<void (net::QuicHttpProxyBackend::*)(quic::QuicSimpleServerBackend::RequestHandler*), base::internal::UnretainedWrapper<net::QuicHttpProxyBackend>, quic::QuicSimpleServerBackend::RequestHandler*>, void ()>::RunOnce(base::internal::BindStateBase*) base/bind_internal.h:641 (net_unittests+0x3878f48) #7 Run base/callback.h:97:12 (net_unittests+0x4ea1a6a) #8 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:114 (net_unittests+0x4ea1a6a) #9 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:363:23 (net_unittests+0x4eb6c88) #10 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:214:7 (net_unittests+0x4eb684d) #11 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (net_unittests+0x4eb71ae) #12 base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_libevent.cc:208:55 (net_unittests+0x4f26864) #13 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:448:12 (net_unittests+0x4eb7999) #14 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (net_unittests+0x4eb7999) #15 base::RunLoop::RunWithTimeout(base::TimeDelta) base/run_loop.cc:161:14 (net_unittests+0x4e8dbf0) #16 base::RunLoop::Run() base/run_loop.cc:129:3 (net_unittests+0x4e8d9e3) #17 base::Thread::Run(base::RunLoop*) base/threading/thread.cc:242:13 (net_unittests+0x4ee2099) #18 base::Thread::ThreadMain() base/threading/thread.cc:312:3 (net_unittests+0x4ee2351) #19 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (net_unittests+0x4f24784) Previous write of size 8 at 0x7b4800002a28 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 (net_unittests+0xf8f3ae) #1 net::QuicHttpProxyBackendStream::~QuicHttpProxyBackendStream() net/tools/quic/quic_http_proxy_backend_stream.cc:58:59 (net_unittests+0x38797a1) #2 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (net_unittests+0x38771c6) #3 reset buildtools/third_party/libc++/trunk/include/memory:2651 (net_unittests+0x38771c6) #4 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (net_unittests+0x38771c6) #5 ~pair buildtools/third_party/libc++/trunk/include/utility:315 (net_unittests+0x38771c6) #6 __destroy<std::__1::pair<quic::QuicSimpleServerBackend::RequestHandler *const, std::__1::unique_ptr<net::QuicHttpProxyBackendStream, std::__1::default_delete<net::QuicHttpProxyBackendStream> > > > buildtools/third_party/libc++/trunk/include/memory:1747 (net_unittests+0x38771c6) #7 destroy<std::__1::pair<quic::QuicSimpleServerBackend::RequestHandler *const, std::__1::unique_ptr<net::QuicHttpProxyBackendStream, std::__1::default_delete<net::QuicHttpProxyBackendStream> > > > buildtools/third_party/libc++/trunk/include/memory:1595 (net_unittests+0x38771c6) #8 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1600 (net_unittests+0x38771c6) #9 clear buildtools/third_party/libc++/trunk/include/__hash_table:1850 (net_unittests+0x38771c6) #10 clear buildtools/third_party/libc++/trunk/include/unordered_map:1198 (net_unittests+0x38771c6) #11 net::QuicHttpProxyBackend::~QuicHttpProxyBackend() net/tools/quic/quic_http_proxy_backend.cc:38 (net_unittests+0x38771c6) #12 net::test::QuicHttpProxyBackendTest::~QuicHttpProxyBackendTest() net/tools/quic/quic_http_proxy_backend_test.cc:59:3 (net_unittests+0x354e089) #13 net::test::QuicHttpProxyBackendTest_CheckProxyStreamManager_Test::~QuicHttpProxyBackendTest_CheckProxyStreamManager_Test() net/tools/quic/quic_http_proxy_backend_test.cc:114:1 (net_unittests+0x354ded9) #14 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (net_unittests+0x3b4c2ce) #15 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2694 (net_unittests+0x3b4c2ce) #16 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (net_unittests+0x3b4ce16) #17 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (net_unittests+0x3b5f296) #18 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (net_unittests+0x3b5e6f9) #19 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (net_unittests+0x3b5e6f9) #20 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (net_unittests+0x5319652) #21 base::TestSuite::Run() base/test/test_suite.cc:316 (net_unittests+0x5319652) #22 Invoke<int (base::TestSuite::*)(), NetTestSuite *> base/bind_internal.h:499:12 (net_unittests+0x2593b08) #23 MakeItSo<int (base::TestSuite::*const &)(), NetTestSuite *> base/bind_internal.h:599 (net_unittests+0x2593b08) #24 RunImpl<int (base::TestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<NetTestSuite> > &, 0> base/bind_internal.h:672 (net_unittests+0x2593b08) #25 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<NetTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (net_unittests+0x2593b08) #26 Run base/callback.h:97:12 (net_unittests+0x531e1fd) #27 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (net_unittests+0x531e1fd) #28 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (net_unittests+0x531e060) #29 main net/test/run_all_unittests.cc:55:10 (net_unittests+0x2593a46) Mutex M715644957146219776 is already destroyed. Thread T4 'quic proxy thread' (tid=5045, running) created by main thread at: #0 pthread_create /b/swarming/w/ir/k/src/third_party/llvm/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:976:3 (net_unittests+0xf1f05b) #1 base::(anonymous namespace)::CreateThread(unsigned long, bool, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:120:13 (net_unittests+0x4f24277) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (net_unittests+0x4f24175) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (net_unittests+0x4ee1c20) #4 net::QuicHttpProxyBackend::InitializeBackend(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) net/tools/quic/quic_http_proxy_backend.cc:56:34 (net_unittests+0x3877757) #5 net::test::QuicHttpProxyBackendTest::SendRequestOverBackend(net::test::TestQuicServerStream*) net/tools/quic/quic_http_proxy_backend_test.cc:63:17 (net_unittests+0x354d836) #6 net::test::QuicHttpProxyBackendTest_CheckProxyStreamManager_Test::TestBody() net/tools/quic/quic_http_proxy_backend_test.cc:116:3 (net_unittests+0x354d505) #7 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (net_unittests+0x3b4b0bf) #8 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2512 (net_unittests+0x3b4b0bf) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2688:11 (net_unittests+0x3b4c238) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2818:28 (net_unittests+0x3b4ce16) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5276:44 (net_unittests+0x3b5f296) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (net_unittests+0x3b5e6f9) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4864 (net_unittests+0x3b5e6f9) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2448:46 (net_unittests+0x5319652) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (net_unittests+0x5319652) #16 Invoke<int (base::TestSuite::*)(), NetTestSuite *> base/bind_internal.h:499:12 (net_unittests+0x2593b08) #17 MakeItSo<int (base::TestSuite::*const &)(), NetTestSuite *> base/bind_internal.h:599 (net_unittests+0x2593b08) #18 RunImpl<int (base::TestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<NetTestSuite> > &, 0> base/bind_internal.h:672 (net_unittests+0x2593b08) #19 base::internal::Invoker<base::internal::BindState<int (base::TestSuite::*)(), base::internal::UnretainedWrapper<NetTestSuite> >, int ()>::Run(base::internal::BindStateBase*) base/bind_internal.h:654 (net_unittests+0x2593b08) #20 Run base/callback.h:97:12 (net_unittests+0x531e1fd) #21 base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback<int ()>, unsigned long, int, bool, base::OnceCallback<void ()>) base/test/launcher/unit_test_launcher.cc:225 (net_unittests+0x531e1fd) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (net_unittests+0x531e060) #23 main net/test/run_all_unittests.cc:55:10 (net_unittests+0x2593a46) SUMMARY: ThreadSanitizer: heap-use-after-free net/tools/quic/quic_http_proxy_backend_stream.h:87:12 in quic_connection_id ================== [4897:5045:0420/013824.220893:137364446:INFO:quic_http_proxy_backend.cc(145)] Quic Proxy cleaned-up backend handler on context/main thread for quic_conn_id: 000000000000007b quic_stream_id: 5 [ FAILED ] QuicHttpProxyBackendTest.CheckProxyStreamManager (776 ms) [ RUN ] QuicHttpProxyBackendTest.CheckProxyStreamManager [10646:10646:0420/014222.591811:375735333:INFO:quic_http_proxy_backend.cc(73)] Successfully configured to run as a QUIC Proxy with Backend URL: http://www.google.com/ [10646:10646:0420/014222.593210:375736727:INFO:quic_http_proxy_backend.cc(90)] Forwarding QUIC request to the Backend Thread Asynchronously. [10646:10646:0420/014222.593370:375736885:INFO:quic_http_proxy_backend_stream.cc(107)] QUIC Proxy Making a request to the Backed URL: http://www.google.com/ [10646:10650:0420/014222.600408:375743926:INFO:quic_http_proxy_backend_stream.cc(266)] OnReadCompleted Backend with ReqId: 1 RespCode 200 RcvdBytesCount 11510 RcvdTotalBytes 0 [10646:10650:0420/014222.601157:375744676:INFO:quic_http_proxy_backend_stream.cc(266)] OnReadCompleted Backend with ReqId: 1 RespCode 200 RcvdBytesCount 0 RcvdTotalBytes 11510 [10646:10650:0420/014222.601271:375744789:INFO:quic_http_proxy_backend_stream.cc(288)] Quic Proxy Received Response from Backend for quic_conn_id: 000000000000007b quic_stream_id: 5 backend_req_id: 1 url: http://www.google.com/ [10646:10650:0420/014222.601435:375744953:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: date:Sat, 20 Apr 2019 08:42:22 GMT [10646:10650:0420/014222.601557:375745073:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: server:Apache/2.4.7 (Ubuntu) [10646:10650:0420/014222.601647:375745163:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: last-modified:Tue, 16 Apr 2019 18:55:49 GMT [10646:10650:0420/014222.601735:375745249:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: etag:"2cf6-586aa51412538-gzip" [10646:10650:0420/014222.601820:375745339:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: accept-ranges:bytes [10646:10650:0420/014222.601909:375745422:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: vary:Accept-Encoding [10646:10650:0420/014222.602008:375745522:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: content-length:3256 [10646:10650:0420/014222.602089:375745604:INFO:quic_http_proxy_backend_stream.cc(374)] Quic Proxy Ignoring Hop-by-hop Response Header: keep-alive:timeout=5, max=100 [10646:10650:0420/014222.602167:375745680:INFO:quic_http_proxy_backend_stream.cc(374)] Quic Proxy Ignoring Hop-by-hop Response Header: connection:Keep-Alive [10646:10650:0420/014222.602243:375745756:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: content-type:text/html [10646:10650:0420/014222.602322:375745836:INFO:quic_http_proxy_backend_stream.cc(392)] Quic Proxy Rewriting the Content-Length Header since the response was encoded : 11510 [10646:10650:0420/014222.602976:375746495:INFO:quic_http_proxy_backend.cc(145)] Quic Proxy cleaned-up backend handler on context/main thread for quic_conn_id: 000000000000007b quic_stream_id: 5 [10646:10646:0420/014222.604190:375747708:INFO:quic_http_proxy_backend.cc(42)] QUIC Proxy thread: quic proxy thread has stopped ! [ OK ] QuicHttpProxyBackendTest.CheckProxyStreamManager (18 ms) ================================================================================