金庆的专栏

  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  423 随笔 :: 0 文章 :: 454 评论 :: 0 Trackbacks
boost::coroutine 无法显示调用栈

(金庆的专栏)

一例因 boost::format() 格式化参数个数错误造成的 coredump,
因为使用了 boost::coroutine, 无法显示异常时的调用栈,
仅显示了异常的类型:

#0  raise()
#1  abort()
#2  __gnu_cxx::__verbose_terminate_handler()
#3  ??
#4  std::terminate()
#5  __cxa_throw()
#6  boost::exception_detail::clone_impl<
      boost::exception_detail::error_info_injector<
        boost::io::too_many_args> >::rethrow()
    at /usr/include/boost/exception/exception.hpp:466
#7  boost::rethow_exception()
    at /usr/include/boost/exception/detail/exception_ptr.hpp:458
#8  boost::coroutine::detail::coroutine_base_resume<
      void(), boost::coroutines::detail::coroutine_base<void()>, void, 0>
        ::resume(void)
    at /usr/include/boost/coroutine/v1/detail/coroutine_base_resume.hpp:57
#9  boost::coroutines::detail::coroutine_op<void(),
      boost::coroutines::coroutine<void(), 0>, void, 0>::operator()(void)
    at /usr/include/boost/coroutine/v1/detail/coroutine_op.hpp:46
#10 PlayerCoro::operator()
    at /home/jinqing/mnt/code/server/loginserver/PlayerCoro.h
   
posted on 2014-11-07 09:45 金庆 阅读(1159) 评论(0)  编辑 收藏 引用 所属分类: 1. C/C++4. Linux/Unix

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理