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 [3021:3021:0323/140211.559208:1995053196:INFO:quic_http_proxy_backend.cc(73)] Successfully configured to run as a QUIC Proxy with Backend URL: http://www.google.com/ [3021:3021:0323/140211.568874:1995062853:INFO:quic_http_proxy_backend.cc(90)] Forwarding QUIC request to the Backend Thread Asynchronously. [3021:3021:0323/140211.569089:1995063066:INFO:quic_http_proxy_backend_stream.cc(107)] QUIC Proxy Making a request to the Backed URL: http://www.google.com/ [3021:3210:0323/140211.586813:1995080796:INFO:quic_http_proxy_backend_stream.cc(266)] OnReadCompleted Backend with ReqId: 1 RespCode 200 RcvdBytesCount 11510 RcvdTotalBytes 0 [3021:3210:0323/140211.587896:1995081888:INFO:quic_http_proxy_backend_stream.cc(266)] OnReadCompleted Backend with ReqId: 1 RespCode 200 RcvdBytesCount 0 RcvdTotalBytes 11510 [3021:3210:0323/140211.588085:1995082064: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/ [3021:3210:0323/140211.588365:1995082344:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: date:Sat, 23 Mar 2019 21:02:11 GMT [3021:3210:0323/140211.588526:1995082503:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: server:Apache/2.4.7 (Ubuntu) [3021:3210:0323/140211.588688:1995082665:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: last-modified:Mon, 17 Sep 2018 18:16:24 GMT [3021:3210:0323/140211.588832:1995082808:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: etag:"2cf6-576152bceae13-gzip" [3021:3210:0323/140211.588988:1995082963:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: accept-ranges:bytes [3021:3210:0323/140211.589127:1995083104:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: vary:Accept-Encoding [3021:3210:0323/140211.589287:1995083263:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: content-length:3256 [3021:3210:0323/140211.589431:1995083405:INFO:quic_http_proxy_backend_stream.cc(374)] Quic Proxy Ignoring Hop-by-hop Response Header: keep-alive:timeout=5, max=100 [3021:3210:0323/140211.589561:1995083538:INFO:quic_http_proxy_backend_stream.cc(374)] Quic Proxy Ignoring Hop-by-hop Response Header: connection:Keep-Alive [3021:3210:0323/140211.589697:1995083672:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: content-type:text/html [3021:3210:0323/140211.589828:1995083802: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 0x55b9093144f0 (/b/s/w/ir/out/Release/net_unittests+0x4d164ef) #1 0x55b90804afc9 (/b/s/w/ir/out/Release/net_unittests+0x3a4cfc8) #2 0x55b90805963f (/b/s/w/ir/out/Release/net_unittests+0x3a5b63e) #3 0x55b908058cb8 (/b/s/w/ir/out/Release/net_unittests+0x3a5acb7) [3021:3021:0323/140211.593279:1995087257:INFO:quic_http_proxy_backend.cc(42)] QUIC Proxy thread: quic proxy thread has stopped ! ================== WARNING: ThreadSanitizer: heap-use-after-free (pid=3021) Read of size 8 at 0x7b4800002ba8 by thread T4 (mutexes: write M1035400530689525440): #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+0xf0d2f7) #1 quic_connection_id net/tools/quic/quic_http_proxy_backend_stream.h:87:12 (net_unittests+0x37b02d0) #2 net::QuicHttpProxyBackend::CloseBackendResponseStream(quic::QuicSimpleServerBackend::RequestHandler*) net/tools/quic/quic_http_proxy_backend.cc:147 (net_unittests+0x37b02d0) #3 Invoke<void (net::QuicHttpProxyBackend::*)(quic::QuicSimpleServerBackend::RequestHandler *), net::QuicHttpProxyBackend *, quic::QuicSimpleServerBackend::RequestHandler *> base/bind_internal.h:499:12 (net_unittests+0x37b0fa8) #4 MakeItSo<void (net::QuicHttpProxyBackend::*)(quic::QuicSimpleServerBackend::RequestHandler *), net::QuicHttpProxyBackend *, quic::QuicSimpleServerBackend::RequestHandler *> base/bind_internal.h:599 (net_unittests+0x37b0fa8) #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+0x37b0fa8) #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+0x37b0fa8) #7 Run base/callback.h:97:12 (net_unittests+0x4d6bdb1) #8 base::TaskAnnotator::RunTask(char const*, base::PendingTask*) base/task/common/task_annotator.cc:119 (net_unittests+0x4d6bdb1) #9 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:335:21 (net_unittests+0x4d827a5) #10 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:220:7 (net_unittests+0x4d8249b) #11 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoSomeWork() base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (net_unittests+0x4d82b6e) #12 base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) base/message_loop/message_pump_libevent.cc:208:55 (net_unittests+0x4df2c64) #13 Run base/task/sequence_manager/thread_controller_with_message_pump_impl.cc:402:12 (net_unittests+0x4d83160) #14 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool) base/task/sequence_manager/thread_controller_with_message_pump_impl.cc (net_unittests+0x4d83160) #15 base::RunLoop::Run() base/run_loop.cc:157:14 (net_unittests+0x4d5799e) #16 base::Thread::Run(base::RunLoop*) base/threading/thread.cc:242:13 (net_unittests+0x4daf269) #17 base::Thread::ThreadMain() base/threading/thread.cc:312:3 (net_unittests+0x4daf521) #18 base::(anonymous namespace)::ThreadFunc(void*) base/threading/platform_thread_posix.cc:81:13 (net_unittests+0x4df0b64) Previous write of size 8 at 0x7b4800002ba8 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+0xf731de) #1 net::QuicHttpProxyBackendStream::~QuicHttpProxyBackendStream() net/tools/quic/quic_http_proxy_backend_stream.cc:58:59 (net_unittests+0x37b1801) #2 operator() buildtools/third_party/libc++/trunk/include/memory:2338:5 (net_unittests+0x37af216) #3 reset buildtools/third_party/libc++/trunk/include/memory:2651 (net_unittests+0x37af216) #4 ~unique_ptr buildtools/third_party/libc++/trunk/include/memory:2605 (net_unittests+0x37af216) #5 ~pair buildtools/third_party/libc++/trunk/include/utility:315 (net_unittests+0x37af216) #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+0x37af216) #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+0x37af216) #8 __deallocate_node buildtools/third_party/libc++/trunk/include/__hash_table:1600 (net_unittests+0x37af216) #9 clear buildtools/third_party/libc++/trunk/include/__hash_table:1850 (net_unittests+0x37af216) #10 clear buildtools/third_party/libc++/trunk/include/unordered_map:1195 (net_unittests+0x37af216) #11 net::QuicHttpProxyBackend::~QuicHttpProxyBackend() net/tools/quic/quic_http_proxy_backend.cc:38 (net_unittests+0x37af216) #12 net::test::QuicHttpProxyBackendTest::~QuicHttpProxyBackendTest() net/tools/quic/quic_http_proxy_backend_test.cc:59:3 (net_unittests+0x3483099) #13 net::test::QuicHttpProxyBackendTest_CheckProxyStreamManager_Test::~QuicHttpProxyBackendTest_CheckProxyStreamManager_Test() net/tools/quic/quic_http_proxy_backend_test.cc:114:1 (net_unittests+0x3482ee9) #14 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (net_unittests+0x3a65f7e) #15 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2681 (net_unittests+0x3a65f7e) #16 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (net_unittests+0x3a66ac6) #17 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (net_unittests+0x3a78346) #18 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (net_unittests+0x3a77b29) #19 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (net_unittests+0x3a77b29) #20 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (net_unittests+0x51cb982) #21 base::TestSuite::Run() base/test/test_suite.cc:316 (net_unittests+0x51cb982) #22 Invoke<int (base::TestSuite::*)(), NetTestSuite *> base/bind_internal.h:499:12 (net_unittests+0x2520888) #23 MakeItSo<int (base::TestSuite::*const &)(), NetTestSuite *> base/bind_internal.h:599 (net_unittests+0x2520888) #24 RunImpl<int (base::TestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<NetTestSuite> > &, 0> base/bind_internal.h:672 (net_unittests+0x2520888) #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+0x2520888) #26 Run base/callback.h:97:12 (net_unittests+0x51d04ed) #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+0x51d04ed) #28 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (net_unittests+0x51d0350) #29 main net/test/run_all_unittests.cc:57:10 (net_unittests+0x25207c6) Mutex M1035400530689525440 is already destroyed. Thread T4 'quic proxy thread' (tid=3210, 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+0xf0304b) #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+0x4df0657) #2 base::PlatformThread::CreateWithPriority(unsigned long, base::PlatformThread::Delegate*, base::PlatformThreadHandle*, base::ThreadPriority) base/threading/platform_thread_posix.cc:246:10 (net_unittests+0x4df0555) #3 base::Thread::StartWithOptions(base::Thread::Options const&) base/threading/thread.cc:119:15 (net_unittests+0x4daedf0) #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+0x37af7a7) #5 net::test::QuicHttpProxyBackendTest::SendRequestOverBackend(net::test::TestQuicServerStream*) net/tools/quic/quic_http_proxy_backend_test.cc:63:17 (net_unittests+0x3482846) #6 net::test::QuicHttpProxyBackendTest_CheckProxyStreamManager_Test::TestBody() net/tools/quic/quic_http_proxy_backend_test.cc:116:3 (net_unittests+0x3482512) #7 HandleExceptionsInMethodIfSupported<testing::Test, void> third_party/googletest/src/googletest/src/gtest.cc (net_unittests+0x3a64d6f) #8 testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc:2499 (net_unittests+0x3a64d6f) #9 testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2675:11 (net_unittests+0x3a65ee8) #10 testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:2805:28 (net_unittests+0x3a66ac6) #11 testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:5243:44 (net_unittests+0x3a78346) #12 HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> third_party/googletest/src/googletest/src/gtest.cc (net_unittests+0x3a77b29) #13 testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc:4845 (net_unittests+0x3a77b29) #14 RUN_ALL_TESTS third_party/googletest/src/googletest/include/gtest/gtest.h:2469:46 (net_unittests+0x51cb982) #15 base::TestSuite::Run() base/test/test_suite.cc:316 (net_unittests+0x51cb982) #16 Invoke<int (base::TestSuite::*)(), NetTestSuite *> base/bind_internal.h:499:12 (net_unittests+0x2520888) #17 MakeItSo<int (base::TestSuite::*const &)(), NetTestSuite *> base/bind_internal.h:599 (net_unittests+0x2520888) #18 RunImpl<int (base::TestSuite::*const &)(), const std::__1::tuple<base::internal::UnretainedWrapper<NetTestSuite> > &, 0> base/bind_internal.h:672 (net_unittests+0x2520888) #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+0x2520888) #20 Run base/callback.h:97:12 (net_unittests+0x51d04ed) #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+0x51d04ed) #22 base::LaunchUnitTests(int, char**, base::OnceCallback<int ()>) base/test/launcher/unit_test_launcher.cc:575:10 (net_unittests+0x51d0350) #23 main net/test/run_all_unittests.cc:57:10 (net_unittests+0x25207c6) SUMMARY: ThreadSanitizer: heap-use-after-free net/tools/quic/quic_http_proxy_backend_stream.h:87:12 in quic_connection_id ================== [3021:3210:0323/140211.591479:1995087369: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 (499 ms) [ RUN ] QuicHttpProxyBackendTest.CheckProxyStreamManager [8722:8722:0323/140604.796242:2228290207:INFO:quic_http_proxy_backend.cc(73)] Successfully configured to run as a QUIC Proxy with Backend URL: http://www.google.com/ [8722:8722:0323/140604.797723:2228291685:INFO:quic_http_proxy_backend.cc(90)] Forwarding QUIC request to the Backend Thread Asynchronously. [8722:8722:0323/140604.797846:2228291810:INFO:quic_http_proxy_backend_stream.cc(107)] QUIC Proxy Making a request to the Backed URL: http://www.google.com/ [8722:8726:0323/140604.805329:2228299299:INFO:quic_http_proxy_backend_stream.cc(266)] OnReadCompleted Backend with ReqId: 1 RespCode 200 RcvdBytesCount 11510 RcvdTotalBytes 0 [8722:8726:0323/140604.806008:2228299968:INFO:quic_http_proxy_backend_stream.cc(266)] OnReadCompleted Backend with ReqId: 1 RespCode 200 RcvdBytesCount 0 RcvdTotalBytes 11510 [8722:8726:0323/140604.806142:2228300100: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/ [8722:8726:0323/140604.806265:2228300222:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: date:Sat, 23 Mar 2019 21:06:04 GMT [8722:8726:0323/140604.806357:2228300313:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: server:Apache/2.4.7 (Ubuntu) [8722:8726:0323/140604.806438:2228300393:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: last-modified:Mon, 17 Sep 2018 18:16:24 GMT [8722:8726:0323/140604.806513:2228300468:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: etag:"2cf6-576152bceae13-gzip" [8722:8726:0323/140604.806597:2228300551:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: accept-ranges:bytes [8722:8726:0323/140604.806670:2228300625:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: vary:Accept-Encoding [8722:8726:0323/140604.806746:2228300701:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: content-length:3256 [8722:8726:0323/140604.806819:2228300774:INFO:quic_http_proxy_backend_stream.cc(374)] Quic Proxy Ignoring Hop-by-hop Response Header: keep-alive:timeout=5, max=100 [8722:8726:0323/140604.806892:2228300847:INFO:quic_http_proxy_backend_stream.cc(374)] Quic Proxy Ignoring Hop-by-hop Response Header: connection:Keep-Alive [8722:8726:0323/140604.806962:2228300917:INFO:quic_http_proxy_backend_stream.cc(377)] Quic Proxy Copying Response Header: content-type:text/html [8722:8726:0323/140604.807028:2228300984:INFO:quic_http_proxy_backend_stream.cc(392)] Quic Proxy Rewriting the Content-Length Header since the response was encoded : 11510 [8722:8726:0323/140604.807606:2228301567: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 [8722:8722:0323/140604.808992:2228302953:INFO:quic_http_proxy_backend.cc(42)] QUIC Proxy thread: quic proxy thread has stopped ! [ OK ] QuicHttpProxyBackendTest.CheckProxyStreamManager (17 ms) ================================================================================