(gdb) bt #0 0x00007ffff232b964 in strcmp () from /lib64/libc.so.6 #1 0x0000000000917719 in lcb_host_equals (a=0x3e0, b=0x424fa60) at /gctmp/gmolleda/_src/mdw/LibCouchbase/13-8-4-3/libcouchbase-2.8.4/src/hostlist.cc:161 #2 0x00000000008fcd13 in lcb_st::find_server (this=0x423f270, host=...) at /gctmp/gmolleda/_src/mdw/LibCouchbase/13-8-4-3/libcouchbase-2.8.4/src/instance.cc:648 #3 0x0000000000903b42 in CccpProvider::schedule_next_request(, bool) (this=0x423fae0, err=LCB_ERROR, can_rollover=) at /gctmp/gmolleda/_src/mdw/LibCouchbase/13-8-4-3/libcouchbase-2.8.4/src/bucketconfig/bc_cccp.cc:141 #4 0x0000000000903f45 in CccpProvider::mcio_error() (this=0x423fae0, err=LCB_ERROR) at /gctmp/gmolleda/_src/mdw/LibCouchbase/13-8-4-3/libcouchbase-2.8.4/src/bucketconfig/bc_cccp.cc:169 #5 0x000000000090404a in lcb::clconfig::cccp_update(const void *, , const void *, size_t, const lcb_host_t *) (cookie_=0x4240e80, err=LCB_ERROR, bytes=0x0, nbytes=0, origin=0x1000) at /gctmp/gmolleda/_src/mdw/LibCouchbase/13-8-4-3/libcouchbase-2.8.4/src/bucketconfig/bc_cccp.cc:237 #6 0x0000000000913a26 in ext_callback_proxy(mc_PIPELINE *, mc_PACKET *, , const void *) (pl=0x7fffffffa530, req=, rc=LCB_ERROR, resdata=0x7fffffffa770) at /gctmp/gmolleda/_src/mdw/LibCouchbase/13-8-4-3/libcouchbase-2.8.4/src/getconfig.cc:33 #7 0x000000000091615c in H_config (pipeline=0x7fffffffa530, req=0x4241b90, res=0x7fffffffa770, immerr=LCB_ERROR) at /gctmp/gmolleda/_src/mdw/LibCouchbase/13-8-4-3/libcouchbase-2.8.4/src/handler.cc:878 #8 mcreq_dispatch_response(mc_PIPELINE *, mc_PACKET *, lcb::MemcachedResponse *, ) (pipeline=0x7fffffffa530, req=0x4241b90, res=0x7fffffffa770, immerr=LCB_ERROR) at /gctmp/gmolleda/_src/mdw/LibCouchbase/13-8-4-3/libcouchbase-2.8.4/src/handler.cc:986 #9 0x000000000094132a in lcb::RetryQueue::fail(lcb::RetryOp *, ) (this=0x4240210, op=0x4241a00, err=LCB_ERROR) at /gctmp/gmolleda/_src/mdw/LibCouchbase/13-8-4-3/libcouchbase-2.8.4/src/retryq.cc:164 #10 0x000000000094141e in lcb::RetryQueue::~RetryQueue (this=0x4240210, __in_chrg=) at /gctmp/gmolleda/_src/mdw/LibCouchbase/13-8-4-3/libcouchbase-2.8.4/src/retryq.cc:429 #11 0x00000000008fd7e1 in lcb_destroy (instance=0x423f270) at /gctmp/gmolleda/_src/mdw/LibCouchbase/13-8-4-3/libcouchbase-2.8.4/src/instance.cc:587 #12 0x00007ffff784c619 in kvclient::CouchbaseCluster::disconnect (this=0x423de90) at src/kvclient/CouchbaseCluster.cpp:608 #13 0x00007ffff78bbbaa in kvclient::KVClientCouchbaseImpl::disconnect (this=0x423b600) at src/kvclient/KVClientCouchbaseImpl.cpp:728 #14 0x00007ffff78c32cc in kvclient::KVClientCouchbaseImpl::~KVClientCouchbaseImpl (this=0x423b600, __in_chrg=) at src/kvclient/KVClientCouchbaseImpl.cpp:96 #15 0x00007ffff78ad68d in boost::detail::sp_ms_deleter::destroy() () from /remote/users/gmolleda/NOS/kvclient/core/test/links/Linux2-6_64/MultiThread/Debug/g++_4_3_2/libkvclient.so.13.13.3 #16 0x00007ffff78ad6af in boost::detail::sp_ms_deleter::operator()(kvclient::KVClientCouchbaseImpl*) () from /remote/users/gmolleda/NOS/kvclient/core/test/links/Linux2-6_64/MultiThread/Debug/g++_4_3_2/libkvclient.so.13.13.3 #17 0x00007ffff78ad75d in boost::detail::sp_counted_impl_pd >::dispose() () from /remote/users/gmolleda/NOS/kvclient/core/test/links/Linux2-6_64/MultiThread/Debug/g++_4_3_2/libkvclient.so.13.13.3 #18 0x00007ffff77df47a in boost::detail::sp_counted_base::release (this=0x423b5e0) at /remote/intdeliv/components/osp/Boost/13-0-0-18/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:145 #19 0x00007ffff77df4aa in boost::detail::shared_count::~shared_count (this=0x424ee60, __in_chrg=) at /remote/intdeliv/components/osp/Boost/13-0-0-18/include/boost/smart_ptr/detail/shared_count.hpp:305 #20 0x00007ffff78acf19 in boost::shared_ptr::~shared_ptr (this=0x424ee58, __in_chrg=) at /remote/intdeliv/components/osp/Boost/13-0-0-18/include/boost/smart_ptr/shared_ptr.hpp:165 #21 0x00007ffff78adada in std::pair >::~pair (this=0x424ee40, __in_chrg=) at /opt/gcc-4.3.2p-weak-sles11/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/bits/stl_pair.h:73 #22 0x00007ffff78c8609 in __gnu_cxx::new_allocator > >::destroy (this=0x7fffffffab7f, __p=0x424ee40) at /opt/gcc-4.3.2p-weak-sles11/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/ext/new_allocator.h:118 #23 0x00007ffff78c8640 in std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::_M_destroy_node ( this=0x423b310, __p=0x424ee20) at /opt/gcc-4.3.2p-weak-sles11/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/bits/stl_tree.h:390 #24 0x00007ffff78c86c5 in std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::_M_erase ( this=0x423b310, __x=0x424ee20) at /opt/gcc-4.3.2p-weak-sles11/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/bits/stl_tree.h:943 #25 0x00007ffff78c86f8 in std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::clear ( this=0x423b310) at /opt/gcc-4.3.2p-weak-sles11/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/bits/stl_tree.h:697 #26 0x00007ffff78c8761 in std::map, std::less, std::allocator > > >::clear (this=0x423b310) at /opt/gcc-4.3.2p-weak-sles11/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.2/../../../../include/c++/4.3.2/bits/stl_map.h:582 #27 0x00007ffff78c8779 in kvclient::ConnectionManager::clean (this=0x423b310) at /remote/users/gmolleda/NOS/kvclient/core/internals/ConnectionManager.hpp:74 #28 0x00007ffff78c7228 in kvclient::CleanThreadConnectionManager () at src/kvclient/ConnectionManager.cpp:62 #29 0x00007ffff78b9b17 in kvclient::KVClient::CleanConnectionManager () at src/kvclient/KVClient.cpp:222 #30 0x00000000004c474a in TemplatedKVClientTestBase::TearDown (this=0x423a5b0) at /remote/users/gmolleda/NOS/kvclient/core/test/include/KVClientTestBase.hpp:96 #31 0x000000000069b1d5 in ConnectionTestWithMock::TearDown (this=0x423a5b0) at src/couchbase/ConnectionTest.cpp:159 #32 0x00007ffff5a278e0 in HandleSehExceptionsInMethodIfSupported (object=0x423a5b0, method=&virtual testing::Test::TearDown(), location=0x7ffff5a2943a "TearDown()") at ./src/gtest.cc:2090 #33 testing::internal::HandleExceptionsInMethodIfSupported (object=0x423a5b0, method=&virtual testing::Test::TearDown(), location=0x7ffff5a2943a "TearDown()") at ./src/gtest.cc:2126 #34 0x00007ffff5a1a470 in testing::TestInfo::Run (this=0xeec5c0) at ./src/gtest.cc:2338 #35 0x00007ffff5a1a555 in testing::TestCase::Run (this=0xeec710) at ./src/gtest.cc:2445 #36 0x00007ffff5a1da12 in testing::internal::UnitTestImpl::RunAllTests (this=0xd81060) at ./src/gtest.cc:4237 #37 0x00007ffff5a274aa in HandleSehExceptionsInMethodIfSupported (object=0xd81060, method= (bool (testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl *)) 0x7ffff5a1d720 , location=0x7ffff5a2a120 "auxiliary test code (environments or event listeners)") at ./src/gtest.cc:2090 #38 testing::internal::HandleExceptionsInMethodIfSupported (object=0xd81060, method= (bool (testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl *)) 0x7ffff5a1d720 , location=0x7ffff5a2a120 "auxiliary test code (environments or event listeners)") at ./src/gtest.cc:2126 #39 0x00007ffff5a17ada in testing::UnitTest::Run (this=) at ./src/gtest.cc:3874 #40 0x00000000004b5e68 in main (argc=1, argv=0x7fffffffb088) at src/Unittest.cpp:55 (gdb) f 1 #1 0x0000000000917719 in lcb_host_equals (a=0x3e0, b=0x424fa60) at /gctmp/gmolleda/_src/mdw/LibCouchbase/13-8-4-3/libcouchbase-2.8.4/src/hostlist.cc:161 161 return strcmp(a->host, b->host) == 0 && strcmp(a->port, b->port) == 0; (gdb) p *a Cannot access memory at address 0x3e0 (gdb) p *b $1 = { host = "127.0.0.1", '\000' , port = "54732", '\000' , ipv6 = 0 } (gdb) f 2 #2 0x00000000008fcd13 in lcb_st::find_server (this=0x423f270, host=...) at /gctmp/gmolleda/_src/mdw/LibCouchbase/13-8-4-3/libcouchbase-2.8.4/src/instance.cc:648 648 if (lcb_host_equals(&server->get_host(), &host)) { (gdb) p server $2 = (lcb::Server *) 0x4241e20 (gdb) p *server $3 = { = { requests = { first_prev = { next = 0x0 }, last = 0x0 }, parent = 0x423f270, flush_start = 0x938c00 , index = 0, ctxqueued = { first_prev = { next = 0x0 }, last = 0x0 }, buf_done_callback = 0x938450 , nbmgr = { sendq = { pending = { first_prev = { next = 0x0 }, last = 0x0 }, pdus = { first_prev = { next = 0x4251428 }, last = 0x423ddd8 }, last_requested = 0x0, last_offset = 0, pdu_offset = 0, elempool = { active = { first_prev = { next = 0x0 }, last = 0x0 }, avail = { first_prev = { next = 0x0 }, last = 0x0 }, basealloc = 3072, maxblocks = 8, curblocks = 1, cacheblocks = 0x42420e0, ncacheblocks = 4, mgr = 0x4241e60 } }, datapool = { active = { first_prev = { next = 0x0 }, last = 0x0 }, avail = { first_prev = { next = 0x0 }, last = 0x0 }, basealloc = 32768, maxblocks = 32, curblocks = 0, cacheblocks = 0x42570d0, ncacheblocks = 16, mgr = 0x4241e60 }, settings = { sndq_cacheblocks = 4, sndq_basealloc = 128, dea_cacheblocks = 0, dea_basealloc = 24, data_cacheblocks = 16, data_basealloc = 32768 } }, reqpool = { sendq = { pending = { first_prev = { next = 0x0 }, last = 0x0 }, pdus = { first_prev = { next = 0x0 }, last = 0x0 }, last_requested = 0x0, last_offset = 0, pdu_offset = 0, elempool = { active = { first_prev = { next = 0x0 }, last = 0x0 }, avail = { first_prev = { next = 0x0 }, last = 0x0 }, basealloc = 3072, maxblocks = 8, curblocks = 0, cacheblocks = 0x42573e0, ncacheblocks = 4, mgr = 0x4241f38 } }, datapool = { active = { first_prev = { next = 0x0 }, last = 0x0 }, avail = { first_prev = { next = 0x0 }, last = 0x0 }, basealloc = 2560, maxblocks = 32, curblocks = 0, cacheblocks = 0x424e720, ncacheblocks = 16, mgr = 0x4241f38 }, settings = { sndq_cacheblocks = 4, sndq_basealloc = 128, dea_cacheblocks = 0, dea_basealloc = 24, data_cacheblocks = 16, data_basealloc = 2560 } }, metrics = 0x0 }, members of lcb::Server: state = lcb::Server::S_CLOSED, io_timer = 0x0, instance = 0x423f270, settings = 0x423f4d0, compsupport = 0, mutation_tokens = 1, connctx = 0x0, connreq = 0x0, curhost = 0x3e0 }