You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/01/18 12:50:18 UTC

[GitHub] MemeTao commented on issue #71: consumer.start() segment fault

MemeTao commented on issue #71: consumer.start()  segment fault
URL: https://github.com/apache/rocketmq-client-cpp/issues/71#issuecomment-455535649
 
 
   I guess there is a big problem with your string-related functions. such as,:
   file: consumeMessageConcurrentlyService.cpp
   void ConsumeMessageConcurrentlyService::resetRetryTopic(...) 
   {
        ...
        string retryTopic = msg.getProperty(MQMessage::PROPERTY_RETRY_TOPIC);
        ...
   }
   string MQMessage::getProperty(const string& name) const 
   {
       ...
       return " ";
       ...
   }
   segment fault will occur;
   There are other similar errors ,such as:
   DefaultMQProducer::sendKernelImpl(...)
   {
        //segment fault
        LOG_DEBUG("produce before:%s to %s", msg.toString().c_str(), mq.toString().c_str());
   }
   chinese:
   好像是字符串相关的函数处了问题,比如辣个返回栈上const引用的地方,还有下面这句日志。我注释掉这行代码后,就能成功运行这个函数(当然了还是会在其它地方segment fault)。
   不知道是不是我的设置比较奇怪,导致这些函数运行了。还有可能是我的编译器太新了。不太确定。
   老哥赶紧修,等在用。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services