HUHANK opened a new issue, #465: URL: https://github.com/apache/rocketmq-client-cpp/issues/465
**程序运行系统**:CentOS7 **崩溃截图如下**:  **下面是GDB的调用堆栈信息**: ``` [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `./mq_consumer'. Program terminated with signal 6, Aborted. #0 0x00007f252e8fc387 in raise () from /lib64/libc.so.6 Missing separate debuginfos, use: debuginfo-install glibc-2.17-326.el7_9.x86_64 libaio-0.3.109-13.el7.x86_64 libgcc-4.8.5-44.el7.x86_64 libstdc++-4.8.5-44.el7.x86_64 libuuid-2.23.2-65.el7_9.1.x86_64 zlib-1.2.7-21.el7_9.x86_64 (gdb) bt #0 0x00007f252e8fc387 in raise () from /lib64/libc.so.6 #1 0x00007f252e8fda78 in abort () from /lib64/libc.so.6 #2 0x00007f252f20ca95 in __gnu_cxx::__verbose_terminate_handler() () from /lib64/libstdc++.so.6 #3 0x00007f252f20aa06 in ?? () from /lib64/libstdc++.so.6 #4 0x00007f252f20aa33 in std::terminate() () from /lib64/libstdc++.so.6 #5 0x00007f252f20b59f in __cxa_pure_virtual () from /lib64/libstdc++.so.6 #6 0x000000000041e8bb in ConsumerMsgListener::consumeMessage (this=0x21abc20, msgs=warning: Type size unknown, assuming 1. Try casting to a known type, or void *. warning: Type size unknown, assuming 1. Try casting to a known type, or void *. Python Exception <class 'gdb.error'> Cannot perform pointer math on incomplete type "rocketmq::MQMessageExt", try casting to a known type, or void *.: std::vector of length 200, capacity 200) at /home/code/share/mq/mf_rocketmq.cpp:32 #7 0x00007f253441eca4 in rocketmq::ConsumeMessageOrderlyService::ConsumeRequest(boost::weak_ptr<rocketmq::PullRequest>) () from /home/code/lib/librocketmq.so #8 0x00007f25344207da in boost::asio::detail::completion_handler<boost::_bi::bind_t<void, boost::_mfi::mf1<void, rocketmq::ConsumeMessageOrderlyService, boost::weak_ptr<rocketmq::PullRequest> >, boost::_bi::list2<boost::_bi::value<rocketmq::ConsumeMessageOrderlyService*>, boost::_bi::value<boost::shared_ptr<rocketmq::PullRequest> > > >, boost::asio::io_context::basic_executor_type<std::allocator<void>, 0ul> >::do_complete(void*, boost::asio::detail::scheduler_operation*, boost::system::error_code const&, unsigned long) () from /home/code/lib/librocketmq.so #9 0x00007f25343ecb07 in boost::asio::detail::scheduler::run(boost::system::error_code&) () from /home/code/lib/librocketmq.so #10 0x00007f25344190b3 in boost::asio::io_context::run() () from /home/code/lib/librocketmq.so #11 0x00007f25344de1df in thread_proxy () from /home/code/lib/librocketmq.so #12 0x00007f2533fe2ea5 in start_thread () from /lib64/libpthread.so.0 #13 0x00007f252e9c4b0d in clone () from /lib64/libc.so.6 ``` **下面是我的关键代码片段**: ``` class ConsumerMsgListener : public MessageListenerOrderly { public: ConsumerMsgListener(CRocketMQMessageHandler *phandler) : m_msg_handler(phandler) { } virtual ~ConsumerMsgListener() {} ConsumeStatus consumeMessage(const vector<MQMessageExt> &msgs) override { for (size_t i = 0; i < msgs.size(); i++) { shared_ptr<BusMessage> pBusMsg = make_shared<BusMessage>(); pBusMsg->fromJson(msgs[i].getBody()); if (m_msg_handler) { if (!m_msg_handler->messageHandle( pBusMsg, msgs[i].getQueueId(), msgs[i].getQueueOffset())) { return RECONSUME_LATER; } } else { return RECONSUME_LATER; } } return CONSUME_SUCCESS; } private: CRocketMQMessageHandler *m_msg_handler = nullptr; }; ``` 个人觉得是官方API的BUG,如果有大神遇到过类似问题,并解决的希望不宁赐教,请官方确认一下这个问题,谢谢! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@rocketmq.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org