GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-115.el7 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /opt/couchbase/bin/memcached...Reading symbols from /usr/lib/debug/opt/couchbase/bin/memcached-7.1.0-1710.x86_64.debug...done. done. [New LWP 114051] [New LWP 114013] [New LWP 114014] [New LWP 114015] [New LWP 114016] [New LWP 114017] [New LWP 114021] [New LWP 114022] [New LWP 114023] [New LWP 114024] [New LWP 114025] [New LWP 114026] [New LWP 114027] [New LWP 114028] [New LWP 114029] [New LWP 114030] [New LWP 114031] [New LWP 114032] [New LWP 114033] [New LWP 114034] [New LWP 114035] [New LWP 114036] [New LWP 114037] [New LWP 114038] [New LWP 114039] [New LWP 114040] [New LWP 114041] [New LWP 114042] [New LWP 114043] [New LWP 114044] [New LWP 114045] [New LWP 114046] [New LWP 114047] [New LWP 114048] [New LWP 114049] [New LWP 114050] [New LWP 114052] [New LWP 114054] [New LWP 114055] [New LWP 114056] [New LWP 114057] [New LWP 114058] [New LWP 114059] [New LWP 114060] [New LWP 114061] [New LWP 114062] [New LWP 114063] [New LWP 114064] [New LWP 114065] [New LWP 114066] [New LWP 114067] [New LWP 114068] [New LWP 114069] [New LWP 114070] [New LWP 114071] [New LWP 114072] [New LWP 114073] [New LWP 114074] [New LWP 114076] [New LWP 114077] [New LWP 114078] [New LWP 114079] [New LWP 114080] [New LWP 114081] [New LWP 114082] [New LWP 114083] [New LWP 114084] [New LWP 114085] [New LWP 114086] [New LWP 114087] [New LWP 114088] [New LWP 114089] [New LWP 114090] [New LWP 114091] [New LWP 114092] [New LWP 114093] [New LWP 114094] [New LWP 114095] To enable execution of this file add add-auto-load-safe-path /usr/lib64/libthread_db-1.0.so line to your configuration file "/root/.gdbinit". To completely disable this security protection add set auto-load safe-path / line to your configuration file "/root/.gdbinit". For more information about this security protection see the "Auto-loading safe path" section in the GDB manual. E.g., run from the shell: info "(gdb)Auto-loading safe path" Core was generated by `/opt/couchbase/bin/memcached -C /opt/couchbase/var/lib/couchbase/config/memcach'. #0 0x00007f4d31e49337 in raise () from /lib64/libc.so.6 #0 0x00007f4d31e49337 in raise () from /lib64/libc.so.6 No symbol table info available. #1 0x00007f4d31e4aa28 in abort () from /lib64/libc.so.6 No symbol table info available. #2 0x00007f4d3279463c in __gnu_cxx::__verbose_terminate_handler() [clone .cold] () from /opt/couchbase/bin/../lib/libstdc++.so.6 No symbol table info available. #3 0x0000000000afdaeb in backtrace_terminate_handler() () at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/utilities/terminate_handler.cc:88 No locals. #4 0x00007f4d3279f8f6 in __cxxabiv1::__terminate(void (*)()) () from /opt/couchbase/bin/../lib/libstdc++.so.6 No symbol table info available. #5 0x00007f4d3279f961 in std::terminate() () from /opt/couchbase/bin/../lib/libstdc++.so.6 No symbol table info available. #6 0x00007f4d3279fbf4 in __cxa_throw () from /opt/couchbase/bin/../lib/libstdc++.so.6 No symbol table info available. #7 0x0000000000534090 in cb::throwWithTrace (exception=...) at /home/couchbase/jenkins/workspace/couchbase-server-unix/server_build/tlm/deps/boost.exploded/include/boost/exception/info.hpp:129 No locals. #8 0x00000000008a93e8 in cb::ThrowExceptionUnderflowPolicy::underflow () at /opt/gcc-10.2.0/include/c++/10.2.0/bits/char_traits.h:322 No locals. #9 0x00000000008a9cd8 in fetch_sub (arg=8316312, this=0x7f4cd464bd68) at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/engines/ep/src/checkpoint.cc:818 current = 8316240 desired = 18446744073709551544 #10 operator-= (rhs=8316312, this=0x7f4cd464bd68) at /home/couchbase/jenkins/workspace/couchbase-server-unix/platform/include/platform/non_negative_counter.h:184 No locals. #11 Checkpoint::MemoryCounter::operator-= (this=0x7f4cd464bd68, size=8316312) at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/engines/ep/src/checkpoint.cc:813 No locals. #12 0x00000000008ac0d0 in Checkpoint::expelItems(CheckpointIterator >, MemoryTrackingAllocator > > > > const&, unsigned long) () at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/engines/ep/src/checkpoint.cc:648 expelledItems = dummy = { container = { >, MemoryTrackingAllocator > > >, false>> = { >, MemoryTrackingAllocator > > > >> = { >, MemoryTrackingAllocator > > > >> = { >, MemoryTrackingAllocator > > >, false>> = { >, MemoryTrackingAllocator > > > >> = { >, MemoryTrackingAllocator > > >, void>> = {}, }, }, }, >, MemoryTrackingAllocator > > >, void>> = {}, >, MemoryTrackingAllocator > > >, void>> = {}, }, }, _M_data = 0x7f4cd464bcb0}, iter = { m_iit = {static stateful_value_traits = false, members_ = {nodeptr_ = }}}} first = { container = { >, MemoryTrackingAllocator > > >, false>> = { >, MemoryTrackingAllocator > > > >> = { >, MemoryTrackingAllocator > > > >> = { >, MemoryTrackingAllocator > > >, false>> = { >, MemoryTrackingAllocator > > > >> = { >, MemoryTrackingAllocator > > >, void>> = {}, }, }, }, >, MemoryTrackingAllocator > > >, void>> = {}, >, MemoryTrackingAllocator > > >, void>> = {}, }, }, _M_data = 0x7f4cd464bcb0}, iter = { m_iit = {static stateful_value_traits = false, members_ = {nodeptr_ = }}}} #13 0x00000000007c3eba in CheckpointManager::extractItemsToExpel(std::lock_guard const&) () at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/engines/ep/src/checkpoint_manager.cc:1969 oldestCheckpoint = 0x7f4cd464bc00 iterator = { container = { >, MemoryTrackingAllocator > > >, false>> = { >, MemoryTrackingAllocator > > > >> = { >, MemoryTrackingAllocator > > > >> = { >, MemoryTrackingAllocator > > >, false>> = { >, MemoryTrackingAllocator > > > >> = { >, MemoryTrackingAllocator > > >, void>> = {}, }, }, }, >, MemoryTrackingAllocator > > >, void>> = {}, >, MemoryTrackingAllocator > > >, void>> = {}, }, }, _M_data = 0x7f4cd464bcb0}, iter = { m_iit = {static stateful_value_traits = false, members_ = {nodeptr_ = 0x7f4c7612a4e0}}}} distance = 346514 expelledItems = { > >, boost::intrusive::list_impl >, void*>, boost::intrusive::list_node_traits, (boost::intrusive::link_mode_type)0, boost::intrusive::dft_tag, 1>, unsigned long, true, void> >> = { >, void*> >> = { bytesAllocated = {, (__gnu_cxx::_Lock_policy)2>> = {, (__gnu_cxx::_Lock_policy)2, false, false>> = {}, _M_ptr = 0x7f4c959d11d0, _M_refcount = {_M_pi = 0x7f4c959d11c0}}, }}, m_icont = {static constant_time_size = true, static stateful_value_traits = , static has_container_from_iterator = , static safemode_or_autounlink = false, data_ = { >, void*>, boost::intrusive::list_node_traits, (boost::intrusive::link_mode_type)0, boost::intrusive::dft_tag, 1>> = { >, void*>, boost::intrusive::list_node*, boost::intrusive::dft_tag, 1>> = {}, static link_mode = boost::intrusive::normal_link}, root_plus_size_ = {> = { static constant_time_size = , size_ = 346513}, m_header = {> = { next_ = 0x7f4c74844300, prev_ = 0x7f4c7612a4e0}, }}}}}, } numExpelledItems = name = pos = cursor = {> = {> = {}, _M_ptr = 0x7f4c9213ff28, _M_refcount = {_M_pi = 0x7f4c923fc840}}, } #14 0x00000000007c440b in CheckpointManager::expelUnreferencedCheckpointItems() () at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/engines/ep/src/checkpoint_manager.cc:598 lh = {_M_device = @0x7f4c922bc6d0} extractRes = { items = { > >, boost::intrusive::list_impl >, void*>, boost::intrusive::list_node_traits, (boost::intrusive::link_mode_type)0, boost::intrusive::dft_tag, 1>, unsigned long, true, void> >> = { >, void*> >> = { bytesAllocated = {, (__gnu_cxx::_Lock_policy)2>> = {, (__gnu_cxx::_Lock_policy)2, false, false>> = {}, _M_ptr = 0x7f4c6a174f30, _M_refcount = {_M_pi = 0x7f4c6a174f20}}, }}, m_icont = { static constant_time_size = true, static stateful_value_traits = , static has_container_from_iterator = , static safemode_or_autounlink = false, data_ = { >, void*>, boost::intrusive::list_node_traits, (boost::intrusive::link_mode_type)0, boost::intrusive::dft_tag, 1>> = { >, void*>, boost::intrusive::list_node*, boost::intrusive::dft_tag, 1>> = {}, static link_mode = boost::intrusive::normal_link}, root_plus_size_ = {> = { static constant_time_size = , size_ = 0}, m_header = {> = { next_ = 0x7f4cd6feb2a8, prev_ = 0x7f4cd6feb2a8}, }}}}}, }, manager = 0x0, expelCursor = {> = {> = {}, _M_ptr = 0x0, _M_refcount = {_M_pi = 0x0}}, }, checkpoint = 0x0} numItemsExpelled = queuedItemsMemReleased = estimatedMemRecovered = #15 0x00000000007c736c in ClosedUnrefCheckpointRemoverTask::attemptItemExpelling() () at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/engines/ep/src/checkpoint_remover.cc:122 vbid = {vbid = 12} vb = {> = {> = {}, _M_ptr = 0x7f4c7eca0300, _M_refcount = {_M_pi = 0x7f4c77eae5c0}}, } expelResult = it = @0x7f4d14426800: __for_range = @0x7f4cd6feb3a0: {, std::allocator > >> = { _M_impl = { >> = {<__gnu_cxx::new_allocator >> = {}, }, , std::allocator > >::_Vector_impl_data> = {_M_start = 0x7f4d14426800, _M_finish = 0x7f4d14426b40, _M_end_of_storage = 0x7f4d14426c00}, }}, } bucket = @0x7f4d242be000: vbuckets = {, std::allocator > >> = { _M_impl = { >> = {<__gnu_cxx::new_allocator >> = {}, }, , std::allocator > >::_Vector_impl_data> = {_M_start = 0x7f4d14426800, _M_finish = 0x7f4d14426b40, _M_end_of_storage = 0x7f4d14426c00}, }}, } #16 0x00000000007c83a8 in ClosedUnrefCheckpointRemoverTask::run() () at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/engines/ep/src/checkpoint_remover.cc:256 phosphor_internal_category_enabled_200 = {_M_b = {_M_p = 0x0}, static is_always_lock_free = } phosphor_internal_category_enabled_temp_200 = phosphor_internal_tpi_200 = {category = 0x0, name = 0x0, type = phosphor::AsyncStart, argument_names = {_M_elems = {0x0, 0x0}}, argument_types = {_M_elems = {phosphor::is_bool, phosphor::is_bool}}} phosphor_internal_guard_200 = {tpi = 0x100a6a0 , enabled = true, arg1 = {}, arg2 = {}, start = {__d = {__r = 9562747839036888}}} bucket = @0x7f4d242be000: wasAboveBackfillThreshold = false bytesToFree = #17 0x0000000000a6e3a2 in GlobalTask::execute() () at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/executor/globaltask.cc:68 guard = {previous = 0x0} #18 0x0000000000a6b5b5 in FollyExecutorPool::TaskProxy::scheduleViaCPUPool()::{lambda()#2}::operator()() const (__closure=0x7f4cd6feb840) at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/executor/folly_executorpool.cc:189 scheduleOverhead = start = {__d = {__r = 9562747839035005}} runAgain = false proxy = @0x7f4d30dc3ac0: #19 0x0000000000bbfe60 in operator() (this=0x7f4cd6feb840) at /home/couchbase/jenkins/workspace/cbdeps-platform-build-old/deps/packages/build/folly/folly-prefix/src/folly/folly/Function.h:416 fn = @0x7f4cd6feb840: {> = {}, data_ = {big = 0x7f4d30dc3ac0, tiny = { __data = "\300:\334\060M\177\000\000\000\000\000\000\000\000\000\000\020\005\242\060M\177\000\000\203\275\001\000\000\000\000\000\270\000\000\000\000\000\000\000\020\271\376\326L\177\000", __align = {}}}, call_ = 0xa6bc70 ::callSmall(folly::detail::function::Data&)>, exec_ = 0xa6a3c0 (folly::detail::function::Op, folly::detail::function::Data*, folly::detail::function::Data)>} #20 folly::ThreadPoolExecutor::runTask(std::shared_ptr const&, folly::ThreadPoolExecutor::Task&&) ( this=this@entry=0x7f4d30957c00, thread=..., task=task@entry=) at /home/couchbase/jenkins/workspace/cbdeps-platform-build-old/deps/packages/build/folly/folly-prefix/src/folly/folly/executors/ThreadPoolExecutor.cpp:97 rctx = { prev_ = {> = {> = {}, _M_ptr = 0x0, _M_refcount = {_M_pi = 0x0}}, }} startTime = {__d = {__r = 9562747839030041}} stats = {expired = false, waitTime = {__r = 736117}, runTime = {__r = 0}, enqueueTime = {__d = {__r = 9562747838293924}}, requestId = 0} #21 0x0000000000ba7c1a in folly::CPUThreadPoolExecutor::threadRun (this=0x7f4d30957c00, thread=...) at /home/couchbase/jenkins/workspace/cbdeps-platform-build-old/deps/packages/build/folly/folly-prefix/src/folly/folly/executors/CPUThreadPoolExecutor.cpp:265 task = {storage_ = {{emptyState = -64 '\300', value = { = { func_ = {> = {}, data_ = {big = 0x7f4d30dc3ac0, tiny = { __data = "\300:\334\060M\177\000\000\000\000\000\000\000\000\000\000\020\005\242\060M\177\000\000\203\275\001\000\000\000\000\000\270\000\000\000\000\000\000\000\020\271\376\326L\177\000", __align = {}}}, call_ = 0xa6bc70 ::callSmall(folly::detail::function::Data&)>, exec_ = 0xa6a3c0 (folly::detail::function::Op, folly::detail::function::Data*, folly::detail::function::Data)>}, enqueueTime_ = {__d = {__r = 9562747838293924}}, expiration_ = {__r = 0}, expireCallback_ = {> = {}, data_ = { big = 0x1bd83, tiny = { __data = "\203\275\001\000\000\000\000\000\253\063\242", '\000' , "_\036\240\064M\177\000\000p\372\276\036M\177\000\000@\266\300\064M\177\000", __align = {}}}, call_ = 0x463c7d ::uninitCall(folly::detail::function::Data&)>, exec_ = 0x0}, context_ = {> = {> = {}, _M_ptr = 0x0, _M_refcount = {_M_pi = 0x0}}, }}, poison = false, priority_ = 0 '\000', queueObserverPayload_ = 139969524417280}}, hasValue = true}} guard = {list_ = {forbid = true, prev = 0x0, curr = {name = {static npos = , b_ = 0xc7b90b "CPUThreadPoolExecutor", e_ = 0xc7b920 ""}}}} #22 0x0000000000bc2e19 in __invoke_impl), folly::ThreadPoolExecutor*&, std::shared_ptr&> (__t=, __f=) at /usr/local/include/c++/7.3.0/bits/invoke.h:73 No locals. #23 __invoke), folly::ThreadPoolExecutor*&, std::shared_ptr&> (__fn=) at /usr/local/include/c++/7.3.0/bits/invoke.h:95 No locals. #24 __call (__args=, this=) at /usr/local/include/c++/7.3.0/functional:467 No locals. #25 operator()<> (this=) at /usr/local/include/c++/7.3.0/functional:551 No locals. #26 folly::detail::function::FunctionTraits::callBig))(std::shared_ptr)> >(folly::detail::function::Data&) (p=...) at /home/couchbase/jenkins/workspace/cbdeps-platform-build-old/deps/packages/build/folly/folly-prefix/src/folly/folly/Function.h:401 fn = #27 0x0000000000a6b244 in operator() (this=0x7f4d30de5040) at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/executor/folly_executorpool.cc:47 fn = @0x7f4d30de5040: #28 operator() (__closure=0x7f4d30de5040) at /home/couchbase/jenkins/workspace/couchbase-server-unix/kv_engine/executor/folly_executorpool.cc:47 threadNameOpt = {storage_ = {{emptyState = -96 '\240', value = {static npos = 18446744073709551615, _M_dataplus = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_p = 0x7f4cd6feb9a0 "NonIoPool1"}, _M_string_length = 10, {_M_local_buf = "NonIoPool1\000\000\000\000\000", _M_allocated_capacity = 8029725099528449870}}}, hasValue = true}} func = #29 folly::detail::function::FunctionTraits::callBig&&)::{lambda()#1}>(folly::detail::function::Data&) (p=...) at /home/couchbase/jenkins/workspace/couchbase-server-unix/server_build/tlm/deps/folly.exploded/include/folly/Function.h:401 fn = @0x7f4d30de5040: #30 0x00007f4d327c8d40 in execute_native_thread_routine () from /opt/couchbase/bin/../lib/libstdc++.so.6 No symbol table info available. #31 0x00007f4d345d0e65 in start_thread () from /lib64/libpthread.so.0 No symbol table info available. #32 0x00007f4d31f1188d in clone () from /lib64/libc.so.6 No symbol table info available.