GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git Copyright (C) 2024 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-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from rousette... [?2004h(gdb) break __cxa_throw break __cxa_throw [?2004l Breakpoint 1 at 0x2fdc0 [?2004h(gdb) run [?2004l Starting program: /usr/local/bin/rousette warning: Error disabling address space randomization: Operation not permitted This GDB supports auto-downloading debuginfo from the following URLs: [?2004hEnable debuginfod for this session? (y or [n]) y [?2004l Debuginfod has been enabled. To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit. Downloading separate debug info for system-supplied DSO at 0x7fffbddd6000... Downloading separate debug info for /usr/local/lib/libyang-cpp.so.3... Downloading separate debug info for /lib/x86_64-linux-gnu/libcurl.so.4... [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Downloading separate debug info for /usr/local/lib/libssh.so.4... Downloading separate debug info for /lib/x86_64-linux-gnu/libldap.so.2... Downloading separate debug info for /lib/x86_64-linux-gnu/liblber.so.2... warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/liblber.so.2 Downloading separate debug info for /lib/x86_64-linux-gnu/liblber.so.2... Downloading source file /build/gcc-14-ig5ci0/gcc-14-14.2.0/build/x86_64-linux-gnu/libstdc++-v3/libsupc++/../../../../src/libstdc++-v3/libsupc++/eh_throw.cc... [New Thread 0x7f57e8aa16c0 (LWP 43137)] [New Thread 0x7f57e3fff6c0 (LWP 43138)] [New Thread 0x7f57e37fe6c0 (LWP 43139)] [2024-11-21 14:41:08.889] [rousette] [debug] NACM config validation: no rule-list entries [2024-11-21 14:41:08.889] [rousette] [info] NACM config validation: Anonymous user access disabled Thread 1 "rousette" hit Breakpoint 1, __cxxabiv1::__cxa_throw (obj=0x55b0171b7b50, tinfo=0x55b01611d940 , dest=0x7f57ea9c0460 ) at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:80 warning: 80 ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc: No such file or directory [?2004h[?2004l [?2004h(gdb) continue [?2004l Continuing. Thread 1 "rousette" hit Breakpoint 1, __cxxabiv1::__cxa_throw (obj=0x55b0171b7b50, tinfo=0x55b01611d940 , dest=0x7f57ea9c0460 ) at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:80 80 in ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc [?2004h[?2004l [?2004h(gdb) continue [?2004l Continuing. Thread 1 "rousette" hit Breakpoint 1, __cxxabiv1::__cxa_throw (obj=0x55b0171b7b50, tinfo=0x55b01611d940 , dest=0x7f57ea9c0460 ) at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:80 80 in ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc [?2004h[?2004l [?2004h(gdb) continue [?2004l Continuing. Thread 1 "rousette" hit Breakpoint 1, __cxxabiv1::__cxa_throw (obj=0x55b0171b7b50, tinfo=0x55b01611d940 , dest=0x7f57ea9c0460 ) at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:80 80 in ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc [?2004h[?2004l [?2004h(gdb) continue [?2004l Continuing. [2024-11-21 14:41:32.833] [rousette] [warning] Telemetry disabled. No CzechLight YANG modules found. [New Thread 0x7f57e2ffd6c0 (LWP 43272)] Thread 1 "rousette" hit Breakpoint 1, __cxxabiv1::__cxa_throw (obj=0x55b0171b7b50, tinfo=0x55b01611d1c0 , dest=0x7f57ea59d150 ) at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:80 80 in ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc [?2004h[?2004l [?2004h(gdb) trbactraktrace [?2004l #0 __cxxabiv1::__cxa_throw (obj=0x55b0171b7b50, tinfo=0x55b01611d1c0 , dest=0x7f57ea59d150 ) at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:80 #1 0x000055b015f7ad9d in rousette::restconf::Server::Server (this=this@entry=0x7fffbdd9e100, conn=..., address="::1", port="10080", timeout=..., timeout@entry=std::chrono::duration = { 0ms }) at /usr/include/c++/13/bits/allocator.h:184 #2 0x000055b015f8977b in main (argc=, argv=) at /build/rousette/src/restconf/main.cpp:108 [?2004h(gdb) backtracke full [?2004l #0 __cxxabiv1::__cxa_throw (obj=0x55b0171b7b50, tinfo=0x55b01611d1c0 , dest=0x7f57ea59d150 ) at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:80 globals = header = #1 0x000055b015f7ad9d in rousette::restconf::Server::Server (this=this@entry=0x7fffbdd9e100, conn=..., address="::1", port="10080", timeout=..., timeout@entry=std::chrono::duration = { 0ms }) at /usr/include/c++/13/bits/allocator.h:184 ec = {{d1_ = {val_ = 1, cat_ = 0x7f57eaabd620 }, d2_ = "\001\000\000\000W\177\000\000 \326\253\352W\177\000"}, lc_flags_ = 140015575993537} ec = module = version = __for_range = __for_begin = __for_end = #2 0x000055b015f8977b in main (argc=, argv=) at /build/rousette/src/restconf/main.cpp:108 args = std::map with 3 elements = {["--help"] = {kind_ = docopt::Kind::Bool, variant_ = {boolValue = false, longValue = 0, strValue = "", strList = std::vector of length 0, capacity 0}}, ["--syslog"] = { kind_ = docopt::Kind::Bool, variant_ = {boolValue = false, longValue = 0, strValue = "", strList = std::vector of length 0, capacity 0}}, ["--timeout"] = {kind_ = docopt::Kind::Empty, variant_ = {boolValue = false, longValue = 0, strValue = "", strList = std::vector of length 0, capacity 253093917036878080}}} timeout = std::chrono::duration = { 0ms } conn = {ctx = std::shared_ptr (use count 9, weak count 0) = {get() = 0x55b017115ba0}} server = {m_monitoringSession = {m_conn = std::shared_ptr (use count 9, weak count 0) = { get() = 0x55b017115ba0}, m_sess = warning: RTTI symbol not found for class 'std::_Sp_counted_deleter)::{lambda(auto:1*)#1}, std::allocator, (__gnu_cxx::_Lock_policy)2>' warning: RTTI symbol not found for class 'std::_Sp_counted_deleter)::{lambda(auto:1*)#1}, std::allocator, (__gnu_cxx::_Lock_policy)2>' std::shared_ptr (use count 2, weak count 0) = { get() = 0x55b0171ebe80}}, m_monitoringOperSub = std::optional = {[contained value] = { m_customEventLoopCbs = std::optional [no contained value], m_moduleChangeCbs = empty std::__cxx11::list, m_operGetCbs = std::__cxx11::list = {[0] = { callback = {, std::allocator > const&, std::optional, std::allocator > > const&, std::optional, std::allocator > > const&, unsigned int, std::optional&>> = {}, = {static _M_max_size = 16, static _M_max_align = 8, _M_functor = {_M_unused = { _M_object = 0x0, _M_const_object = 0x0, _M_function_pointer = 0x0, _M_member_pointer = NULL}, _M_pod_data = '\000' }, _M_manager = 0x55b015f8ffd0 , std::allocator >&, const std::optional, std::allocator > >&, const std::optional, std::allocator > >&, unsigned int, std::optional&), rousette::restconf::Server::Server(sysrepo::Connection, const std::string&, const std::string&, std::chrono::milliseconds):: >::_M_manager(std::_Any_data &, const std::_Any_data &, std::_Manager_operation)>}, _M_invoker = 0x55b015f96bc0 , std::allocator >&, const std::optional, std::allocator > >&, const std::optional, std::allocator > >&, unsigned int, std::optional&), rousette::restconf::Server::Server(sysrepo::Connection, const std::string&, const std::string&, std::chrono::milliseconds):: >::_M_invoke(const std::_Any_data &, sysrepo::Session &&, unsigned int &&, const std::__cxx11::basic_string, std::allocator > &, const std::optional, std::allocator > > &, const std::optional, std::allocator > > &, unsigned int &&, std::optional &)>}, exceptionHandler = 0x55b0171f3f50}}, m_RPCActionCbs = empty std::__cxx11::list, m_notificationCbs = empty std::__cxx11::list, m_exceptionHandler = std::shared_ptr> (use count 1, weak count 0) = {get() = 0x55b0171f3f50}, m_sess = warning: RTTI symbol not found for class 'std::_Sp_counted_deleter)::{lambda(auto:1*)#1}, std::allocator, (__gnu_cxx::_Lock_policy)2>' warning: RTTI symbol not found for class 'std::_Sp_counted_deleter)::{lambda(auto:1*)#1}, std::allocator, (__gnu_cxx::_Lock_policy)2>' std::shared_ptr (use count 2, weak count 0) = { get() = 0x55b0171ebe80}, m_sub = std::shared_ptr (use count 1, weak count 0) = { get() = 0x55b0171ebd30}, m_didNacmInit = false}}, nacm = {m_srSession = { m_conn = std::shared_ptr (use count 9, weak count 0) = {get() = 0x55b017115ba0}, m_sess = warning: RTTI symbol not found for class 'std::_Sp_counted_deleter)::{lambda(auto:1*)#1}, std::allocator, (__gnu_cxx::_Lock_policy)2>' warning: RTTI symbol not found for class 'std::_Sp_counted_deleter)::{lambda(auto:1*)#1}, std::allocator, (__gnu_cxx::_Lock_policy)2>' std::shared_ptr (use count 2, weak count 0) = {get() = 0x55b0171efa60}}, m_srSub = {m_customEventLoopCbs = std::optional [no contained value], m_moduleChangeCbs = std::__cxx11::list = {[0] = { callback = {, std::allocator > const&, std::optional, std::allocator > > const&, sysrepo::Event, unsigned int>> = {}, = {static _M_max_size = 16, static _M_max_align = 8, _M_functor = {_M_unused = { _M_object = 0x7fffbdd9e208, _M_const_object = 0x7fffbdd9e208, _M_function_pointer = 0x7fffbdd9e208, _M_member_pointer = (void (std::_Undefined_class::*)(std::_Undefined_class * const)) 0x7fffbdd9e208}, _M_pod_data = "\b\342\331\275\377\177\000\000\000\000\000\000\000\000\000"}, _M_manager = 0x55b01602b670 , std::allocator >&, const std::optional, std::allocator > >&, sysrepo::Event, unsigned int), rousette::auth::Nacm::Nacm(sysrepo::Connection):: >::_M_manager(std::_Any_data &, const std::_Any_data &, std::_Manager_operation)>}, _M_invoker = 0x55b01602ed10 , std::allocator >&, const std::optional, std::allocator > >&, sysrepo::Event, unsigned int), rousette::auth::Nacm::Nacm(sysrepo::Connection):: >::_M_invoke(const std::_Any_data &, sysrepo::Session &&, unsigned int &&, const std::__cxx11::basic_string, std::allocator > &, const std::optional, std::allocator > > &, sysrepo::Event &&, unsigned int &&)>}, exceptionHandler = 0x55b0171e94d0}}, m_operGetCbs = empty std::__cxx11::list, m_RPCActionCbs = empty std::__cxx11::list, m_notificationCbs = empty std::__cxx11::list, m_exceptionHandler = std::shared_ptr> (use count 1, weak count 0) = {get() = 0x55b0171e94d0}, m_sess = warning: RTTI symbol not found for class 'std::_Sp_counted_deleter)::{lambda(auto:1*)#1}, std::allocator, (__gnu_cxx::_Lock_policy)2>' warning: RTTI symbol not found for class 'std::_Sp_counted_deleter)::{lambda(auto:1*)#1}, std::allocator, (__gnu_cxx::_Lock_policy)2>' std::shared_ptr (use count 2, weak count 0) = { get() = 0x55b0171efa60}, m_sub = std::shared_ptr (use count 1, weak count 0) = { get() = 0x55b0171f6690}, m_didNacmInit = true}, m_anonymousEnabled = std::atomic = { false }}, server = std::unique_ptr = {get() = 0x55b0171ef460}, dwdmEvents = std::unique_ptr = {get() = 0x55b0171f6510}, opticsChange = { = { = { = {}, }, _vptr.signal_base = 0x55b01611b5e0 , std::allocator > const&), boost::signals2::optional_last_value, int, std::less, boost::function, std::allocator > const&)>, boost::function, std::allocator > const&)>, boost::signals2::mutex>+16>}, , std::allocator > const&>> = {}, _pimpl = { px = 0x55b0171eab10, pn = {pi_ = 0x55b0171eaf40}}}} [?2004h(gdb) thread apply all backtracke [?2004l Thread 5 (Thread 0x7f57e2ffd6c0 (LWP 43272) "rousette"): #0 0x00007f57ea2bb4cd in __GI___poll (fds=0x7f57e2ffc898, nfds=1, timeout=10000) at ../sysdeps/unix/sysv/linux/poll.c:29 #1 0x00007f57e9ef6cde in sr_shmsub_listen_thread (arg=0x55b0171ebd30) at /build/sysrepo/src/shm_sub.c:4830 #2 0x00007f57ea23ca94 in start_thread (arg=) at ./nptl/pthread_create.c:447 #3 0x00007f57ea2c9a34 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100 Thread 4 (Thread 0x7f57e37fe6c0 (LWP 43139) "rousette"): #0 0x00007f57ea2bb4cd in __GI___poll (fds=0x7f57e37fd898, nfds=1, timeout=10000) at ../sysdeps/unix/sysv/linux/poll.c:29 #1 0x00007f57e9ef6cde in sr_shmsub_listen_thread (arg=0x55b0171f6690) at /build/sysrepo/src/shm_sub.c:4830 #2 0x00007f57ea23ca94 in start_thread (arg=) at ./nptl/pthread_create.c:447 #3 0x00007f57ea2c9a34 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100 Thread 3 (Thread 0x7f57e3fff6c0 (LWP 43138) "rousette"): #0 0x00007f57ea238d61 in __futex_abstimed_wait_common64 (private=32599, cancel=true, abstime=0x7f57e3ffe190, op=393, expected=0, futex_word=0x7f57e4005880) at ./nptl/futex-internal.c:57 #1 __futex_abstimed_wait_common (cancel=true, private=32599, abstime=0x7f57e3ffe190, clockid=0, expected=0, futex_word=0x7f57e4005880) at ./nptl/futex-internal.c:87 #2 __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x7f57e4005880, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x7f57e3ffe190, private=private@entry=0) at ./nptl/futex-internal.c:139 #3 0x00007f57ea23bc7e in __pthread_cond_wait_common (abstime=0x7f57e3ffe190, clockid=0, mutex=0x7f57e4005830, cond=0x7f57e4005858) at ./nptl/pthread_cond_wait.c:503 #4 ___pthread_cond_timedwait64 (cond=cond@entry=0x7f57e4005858, mutex=mutex@entry=0x7f57e4005830, abstime=abstime@entry=0x7f57e3ffe190) at ./nptl/pthread_cond_wait.c:652 #5 0x00007f57e9904cfc in mongoc_cond_timedwait (timeout_msec=10000, mutex=0x7f57e4005830, cond=0x7f57e4005858) at /usr/src/mongo-c-driver-1.26.0-1.1ubuntu2/src/libmongoc/src/mongoc/mongoc-thread-private.h:60 #6 mongoc_server_monitor_wait (server_monitor=server_monitor@entry=0x7f57e4005820) at /usr/src/mongo-c-driver-1.26.0-1.1ubuntu2/src/libmongoc/src/mongoc/mongoc-server-monitor.c:1234 #7 0x00007f57e990d48b in _server_monitor_rtt_thread (server_monitor_void=0x7f57e4005820) at /usr/src/mongo-c-driver-1.26.0-1.1ubuntu2/src/libmongoc/src/mongoc/mongoc-server-monitor.c:1395 #8 0x00007f57ea23ca94 in start_thread (arg=) at ./nptl/pthread_create.c:447 #9 0x00007f57ea2c9a34 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100 Thread 2 (Thread 0x7f57e8aa16c0 (LWP 43137) "rousette"): #0 0x00007f57ea2bb4cd in __GI___poll (fds=fds@entry=0x7f57e40036e0, nfds=nfds@entry=1, timeout=timeout@entry=500) at ../sysdeps/unix/sysv/linux/poll.c:29 #1 0x00007f57e9905cf4 in poll (__timeout=500, __nfds=1, __fds=0x7f57e40036e0) at /usr/include/x86_64-linux-gnu/bits/poll2.h:39 #2 mongoc_socket_poll (sds=0x7f57e40065a0, nsds=1, timeout=500) at /usr/src/mongo-c-driver-1.26.0-1.1ubuntu2/src/libmongoc/src/mongoc/mongoc-socket.c:347 #3 0x00007f57e991246e in _mongoc_stream_socket_poll (streams=0x7f57e4004e90, nstreams=1, timeout_msec=500) at /usr/src/mongo-c-driver-1.26.0-1.1ubuntu2/src/libmongoc/src/mongoc/mongoc-stream-socket.c:242 #4 0x00007f57e990f37c in mongoc_stream_poll (streams=0x7f57e8aa0180, nstreams=1, timeout=500) at /usr/src/mongo-c-driver-1.26.0-1.1ubuntu2/src/libmongoc/src/mongoc/mongoc-stream.c:373 #5 0x00007f57e990c819 in _server_monitor_poll_with_interrupt (error=0x7f57e8aa0570, cancelled=0x7f57e8aa0887, expire_at_ms=1891770997, server_monitor=0x55b0171f0410) at /usr/src/mongo-c-driver-1.26.0-1.1ubuntu2/src/libmongoc/src/mongoc/mongoc-server-monitor.c:618 #6 _server_monitor_awaitable_hello_recv (server_monitor=0x55b0171f0410, hello_response=0x7f57e8aa0400, cancelled=0x7f57e8aa0887, error=0x7f57e8aa0570) at /usr/src/mongo-c-driver-1.26.0-1.1ubuntu2/src/libmongoc/src/mongoc/mongoc-server-monitor.c:710 #7 0x00007f57e9935f2f in _server_monitor_check_server.constprop.0 (server_monitor=server_monitor@entry=0x55b0171f0410, previous_description=previous_description@entry=0x7f57e4007e80, cancelled=cancelled@entry=0x7f57e8aa0887) at /usr/src/mongo-c-driver-1.26.0-1.1ubuntu2/src/libmongoc/src/mongoc/mongoc-server-monitor.c:1072 #8 0x00007f57e990d000 in _server_monitor_thread (server_monitor_void=0x55b0171f0410) at /usr/src/mongo-c-driver-1.26.0-1.1ubuntu2/src/libmongoc/src/mongoc/mongoc-server-monitor.c:1272 #9 0x00007f57ea23ca94 in start_thread (arg=) at ./nptl/pthread_create.c:447 #10 0x00007f57ea2c9a34 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100 Thread 1 (Thread 0x7f57e8d0e5c0 (LWP 43067) "rousette"): #0 __cxxabiv1::__cxa_throw (obj=0x55b0171b7b50, tinfo=0x55b01611d1c0 , dest=0x7f57ea59d150 ) at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:80 #1 0x000055b015f7ad9d in rousette::restconf::Server::Server (this=this@entry=0x7fffbdd9e100, conn=..., address="::1", port="10080", timeout=..., timeout@entry=std::chrono::duration = { 0ms }) at /usr/include/c++/13/bits/allocator.h:184 #2 0x000055b015f8977b in main (argc=, argv=) at /build/rousette/src/restconf/main.cpp:108 [?2004h(gdb) exit [?2004l [?2004hA debugging session is active. Inferior 1 [process 43067] will be killed. Quit anyway? (y or n) y [?2004l