Repeating all tests (iteration 1) . . . [==========] Running 3 tests from 1 test case. [----------] Global test environment set-up. [----------] 3 tests from ConsensusPeersTest [ RUN ] ConsensusPeersTest.TestLocalPeer WARNING: Logging before InitGoogleLogging() is written to STDERR I0321 02:40:21.628064 11675 log.cc:252] Log is configured to *not* fsync() on all Append() calls I0321 02:40:21.631547 11675 log.cc:133] Shutting down Log append thread! ================================================================= ==11675==ERROR: AddressSanitizer: heap-use-after-free on address 0x6070000054d0 at pc 0x6fe60d bp 0x7f95242e10b0 sp 0x7f95242e10a8 READ of size 1 at 0x6070000054d0 thread T2 #0 0x6fe60c in kudu::consensus::Peer::ProcessResponse(kudu::consensus::ConsensusStatusPB const&) /home/mpercy/src/kudu/src/consensus/consensus_peers.cc:258 #1 0x703bb8 in kudu::consensus::LocalPeer::RequestFinishedCallback() /home/mpercy/src/kudu/src/consensus/consensus_peers.cc:111 #2 0x70a3ea in boost::_bi::bind_t, boost::_bi::list1 > >::operator()() /usr/include/boost/bind/bind_template.hpp:20 #3 0x70be7c in boost::function0::operator()() const /usr/include/boost/function/function_template.hpp:766 #4 0x6aa4c0 in kudu::log::Log::AppendThread::RunThread() /home/mpercy/src/kudu/src/consensus/log.cc:119 #5 0x6cc8ea in boost::_bi::bind_t, boost::_bi::list1 > >::operator()() /usr/include/boost/bind/bind_template.hpp:20 #6 0x788069 in thread_proxy (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x788069) #7 0x7f95291bcf6d in start_thread /build/buildd/eglibc-2.17/nptl/pthread_create.c:311 #8 0x7f95286c99cc (/lib/x86_64-linux-gnu/libc.so.6+0xfa9cc) 0x6070000054d0 is located 64 bytes inside of 72-byte region [0x607000005490,0x6070000054d8) freed by thread T0 here: #0 0x676849 in operator delete(void*) /home/ben/development/llvm/3.4/final/llvm.src/projects/compiler-rt/lib/asan/asan_new_delete.cc:83 #1 0x68c379 in kudu::consensus::ConsensusPeersTest_TestLocalPeer_Test::TestBody() /home/mpercy/src/kudu/src/consensus/consensus_peers-test.cc:109 #2 0x99c3bd in void testing::internal::HandleSehExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x99c3bd) #3 0x99772f in void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x99772f) #4 0x984778 in testing::Test::Run() (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x984778) #5 0x984ed7 in testing::TestInfo::Run() (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x984ed7) #6 0x98548a in testing::TestCase::Run() (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x98548a) #7 0x98a1d3 in testing::internal::UnitTestImpl::RunAllTests() (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x98a1d3) #8 0x99d52d in bool testing::internal::HandleSehExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x99d52d) #9 0x9984f9 in bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x9984f9) #10 0x988f63 in testing::UnitTest::Run() (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x988f63) #11 0x7ac37b in main /home/mpercy/src/kudu/src/util/test_main.cc:15 #12 0x7f95285f0de4 in __libc_start_main /build/buildd/eglibc-2.17/csu/libc-start.c:260 previously allocated by thread T0 here: #0 0x676549 in operator new(unsigned long) /home/ben/development/llvm/3.4/final/llvm.src/projects/compiler-rt/lib/asan/asan_new_delete.cc:52 #1 0x6fd03c in kudu::consensus::Peer::NewLocalPeer(kudu::metadata::QuorumPeerPB const&, std::string const&, kudu::consensus::PeerMessageQueue*, kudu::log::Log*, gscoped_ptr >*) /home/mpercy/src/kudu/src/consensus/consensus_peers.cc:186 #2 0x68e9b9 in kudu::consensus::ConsensusPeersTest::NewLocalPeer(kudu::log::Log*, std::string const&, gscoped_ptr >*) /home/mpercy/src/kudu/src/consensus/consensus_peers-test.cc:35 #3 0x68c281 in kudu::consensus::ConsensusPeersTest_TestLocalPeer_Test::TestBody() /home/mpercy/src/kudu/src/consensus/consensus_peers-test.cc:97 #4 0x99c3bd in void testing::internal::HandleSehExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x99c3bd) #5 0x99772f in void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x99772f) #6 0x984778 in testing::Test::Run() (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x984778) #7 0x984ed7 in testing::TestInfo::Run() (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x984ed7) #8 0x98548a in testing::TestCase::Run() (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x98548a) #9 0x98a1d3 in testing::internal::UnitTestImpl::RunAllTests() (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x98a1d3) #10 0x99d52d in bool testing::internal::HandleSehExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x99d52d) #11 0x9984f9 in bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x9984f9) #12 0x988f63 in testing::UnitTest::Run() (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x988f63) #13 0x7ac37b in main /home/mpercy/src/kudu/src/util/test_main.cc:15 #14 0x7f95285f0de4 in __libc_start_main /build/buildd/eglibc-2.17/csu/libc-start.c:260 Thread T2 created by T0 here: #0 0x665382 in pthread_create /home/ben/development/llvm/3.4/final/llvm.src/projects/compiler-rt/lib/asan/asan_interceptors.cc:185 #1 0x7879f6 in boost::thread::start_thread_noexcept() (/home/mpercy/src/kudu/build/fastdebug/consensus_peers-test+0x7879f6) SUMMARY: AddressSanitizer: heap-use-after-free /home/mpercy/src/kudu/src/consensus/consensus_peers.cc:258 kudu::consensus::Peer::ProcessResponse(kudu::consensus::ConsensusStatusPB const&) Shadow bytes around the buggy address: 0x0c0e7fff8a40: 00 00 00 00 00 00 00 00 fa fa fa fa 00 00 00 00 0x0c0e7fff8a50: 00 00 00 00 00 00 fa fa fa fa 00 00 00 00 00 00 0x0c0e7fff8a60: 00 00 00 00 fa fa fa fa 00 00 00 00 00 00 00 00 0x0c0e7fff8a70: 00 00 fa fa fa fa 00 00 00 00 00 00 00 00 00 00 0x0c0e7fff8a80: fa fa fa fa 00 00 00 00 00 00 00 00 00 fa fa fa =>0x0c0e7fff8a90: fa fa fd fd fd fd fd fd fd fd[fd]fa fa fa fa fa 0x0c0e7fff8aa0: 00 00 00 00 00 00 00 00 00 fa fa fa fa fa fd fd 0x0c0e7fff8ab0: fd fd fd fd fd fd fd fa fa fa fa fa fd fd fd fd 0x0c0e7fff8ac0: fd fd fd fd fd fa fa fa fa fa fd fd fd fd fd fd 0x0c0e7fff8ad0: fd fd fd fa fa fa fa fa 00 00 00 00 00 00 00 00 0x0c0e7fff8ae0: 00 00 fa fa fa fa fd fd fd fd fd fd fd fd fd fd Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Heap right redzone: fb Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 ASan internal: fe ==11675==ABORTING