baidu / sofa-pbrpc

A light-weight RPC implement of google protobuf RPC framework.
Other
2.13k stars 655 forks source link

fix coredump when destruct global rpc_client varible #48

Closed cyshi closed 8 years ago

qinzuoyan commented 8 years ago

resolved in resolved in baidu/sofa-pbrpc#40

gandalf000 commented 8 years ago

0 0x00007f40a684f625 in raise () from /lib64/libc.so.6

1 0x00007f40a6850e05 in abort () from /lib64/libc.so.6

2 0x00007f40a70aaa55 in __gnu_cxx::__verbose_terminate_handler () at ../../.././libstdc++-v3/libsupc++/vterminate.cc:95

3 0x00007f40a70a8bf6 in cxxabiv1::terminate (handler=) at ../../.././libstdc++-v3/libsupc++/eh_terminate.cc:38

4 0x00007f40a70a8c23 in std::terminate () at ../../.././libstdc++-v3/libsupc++/eh_terminate.cc:48

5 0x00007f40a70a96df in cxxabiv1::cxa_pure_virtual () at ../../.././libstdc++-v3/libsupc++/pure.cc:50

6 0x00000000005c44e5 in sofa::pbrpc::RpcMessageStreamsofa::pbrpc::shared_ptr::on_read_some(boost::system::error_code const&, unsigned long) ()

7 0x00000000005b24e0 in boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, boost::_bi::bind_t<void, boost::_mfi::mf2<void, sofa::pbrpc::RpcByteStream, boost::system::error_code const&, unsigned long>, boost::_bi::list3boost::_bi::value<sofa::pbrpc::shared_ptr, boost::arg<1>, boost::arg<2> > > >::do_complete(boost::asio::detail::task_ioservice, boost::asio::detail::task_io_serviceoperation, boost::system::error_code const&, unsigned long) ()

8 0x00000000005b4fb9 in boost::asio::detail::epoll_reactor::descriptor_state::do_complete(boost::asio::detail::task_ioservice, boost::asio::detail::task_io_serviceoperation, boost::system::error_code const&, unsigned long) ()

9 0x00000000005b793e in boost::asio::detail::task_io_service::run(boost::system::error_code&) ()

10 0x00000000005b82ae in sofa::pbrpc::ThreadGroupImpl::thread_run(void*) ()

11 0x00007f40a77cf9d1 in start_thread () from /lib64/libpthread.so.0

12 0x00007f40a69058fd in clone () from /lib64/libc.so.6

qinzuoyan commented 8 years ago

@gandalf000 ,你修改 https://github.com/baidu/sofa-pbrpc/blob/master/Makefile#L15 ,改为debug模式,重新编译生成libsofa-pbrpc.a,这样在core的时候有更准确的信息,然后把新的backtrace贴出来吧 :-)