eBay / NuRaft

C++ implementation of Raft core logic as a replication library
Apache License 2.0
1k stars 237 forks source link

coredump when run calc_server #71

Open michaelqxd opened 4 years ago

michaelqxd commented 4 years ago

0 0x0000000000418961 in SimpleLoggerMgr::logStackBacktrace(unsigned long) at /home/xmly/NuRaft/examples/logger.cc:390

1 0x0000000000418f74 in SimpleLoggerMgr::handleSegAbort(int) at /home/xmly/NuRaft/examples/logger.cc:451

2 0x00000000000366d0 in __restore_rt() at sigaction.c:?

3 0x00007f381686164b in gsignal() at ??:0

4 0x00007f3816863450 in abort() at ??:0

5 0x00007f38173da055 in _ZN9__gnu_cxx27__verbose_terminate_handlerEv() at ??:0

6 0x000000000008fc46 in cxxabiv1::terminate(void (*)()) at /usr/src/debug/gcc-7.1.1-20170622/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/libsupc++/../../../../libstdc++-v3/libsupc++/eh_terminate.cc:51

7 0x000000000008fc91 in std::terminate() at ??:?

8 0x000000000008fed4 in __cxa_throw() at ??:?

9 0x000000000043b1ae in void asio::detail::throw_exception(std::system_error const&) at ??:?

10 0x000000000043b482 in asio::detail::do_throw_error(std::error_code const&, char const*) at /home/xmly/NuRaft/asio/asio/include/asio/detail/impl/throw_error.ipp:49

11 0x00000000004341c3 in asio::detail::throw_error(std::error_code const&, char const*) at /home/xmly/NuRaft/asio/asio/include/asio/detail/throw_error.hpp:41

12 0x0000000000423aba in std::shared_count<(__gnu_cxx::_Lock_policy)2>::_M_swap(std::shared_count<(__gnu_cxx::_Lock_policy)2>&) at /usr/include/c++/7/bits/shared_ptr_base.h:710

13 0x000000000040adc7 in calc_server::init_raft(std::shared_ptr) at /home/xmly/NuRaft/examples/example_common.hxx:183

14 0x0000000000409148 in std::shared_count<(__gnu_cxx::_Lock_policy)2>::~shared_count() at /usr/include/c++/7/bits/shared_ptr_base.h:681

15 0x00007f381684b4da in __libc_start_main() at ??:0

16 0x000000000040977a in _start() at ??:?

greensky00 commented 4 years ago

Hi @michaelqxd , Thanks for bringing this issue, but unfortunately this stack dump itself doesn't help much.

Can you please elaborate more? At which step in here you got crash? Which OS did you run?

Apart from that, if we put wrong IP address and port, we'll see this stack trace.