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 09:33:53 UTC

[GitHub] MemeTao opened a new issue #71: consumer.start() segment fault

MemeTao opened a new issue #71: consumer.start()  segment fault
URL: https://github.com/apache/rocketmq-client-cpp/issues/71
 
 
   I run "./PushConsumer“ fail after build example,but PullConsumer is ok.  client log : 
   [2019-01-18 17:31:35.315213](info):DefaultMQPushConsumer::boost asio async service runing
   [2019-01-18 17:31:35.317030](info):m_tcpConnectTimeout:400, m_tcpTransportTryLockTimeout:1, m_pullThreadNum:4
   [2019-01-18 17:31:35.317261](info):MQClient start,groupname:msg-persist-group_producer_sandbox,clientID:11113-fe80::f65d:28fe:7bfe:7546@DEFAULT,instanceName:DEFAULT,nameserveraddr:localhost:9876
   [2019-01-18 17:31:35.317323](info):DefaultMQProducer:msg-persist-group_producer_sandbox start
   [2019-01-18 17:31:35.317359](info):TcpRemotingClient::boost asio async service runing
   [2019-01-18 17:31:35.317389](info):update Namesrv:localhost:9876
   [2019-01-18 17:31:35.317633](info):user specfied name server address: localhost:9876
   [2019-01-18 17:31:35.317692](info):MQClientFactory:11113-fe80::f65d:28fe:7bfe:7546@DEFAULT start
   [2019-01-18 17:31:35.317841](warning):sendheartbeat brokeradd is empty
   [2019-01-18 17:31:35.318023](info):start scheduled task:11113-fe80::f65d:28fe:7bfe:7546@DEFAULT
   [2019-01-18 17:31:35.318503](info):m_tcpConnectTimeout:400, m_tcpTransportTryLockTimeout:1, m_pullThreadNum:4
   [2019-01-18 17:31:35.318717](info):MQClient start,groupname:sdk,clientID:11113-fe80::f65d:28fe:7bfe:7546@sdk,instanceName:sdk,nameserveraddr:localhost:9876
   [2019-01-18 17:31:35.318777](info):TcpRemotingClient::boost asio async service runing
   [2019-01-18 17:31:35.318777](info):DefaultMQPushConsumer:sdk start
   [2019-01-18 17:31:35.319011](info):start concurrently consume service:sdk
   [2019-01-18 17:31:35.320613](info):buildSubscriptionData,:sdktesting,*
   [2019-01-18 17:31:35.320714](info):update Namesrv:localhost:9876
   [2019-01-18 17:31:35.320748](info):user specfied name server address: localhost:9876
   [2019-01-18 17:31:35.320776](info):MQClientFactory:11113-fe80::f65d:28fe:7bfe:7546@sdk start
   [2019-01-18 17:31:35.320866](info):updateTopicRouteInfoFromNameServer start:%RETRY%sdk
   [2019-01-18 17:31:35.321093](info):start scheduled task:11113-fe80::f65d:28fe:7bfe:7546@sdk
   [2019-01-18 17:31:35.321229](info):namesrvIndex is:1, index:0, namesrvaddrlist size:1
   [2019-01-18 17:31:35.321753](info):try to connect to fd:20, addr:127.0.0.1
   [2019-01-18 17:31:35.321929](info):Wait till event base is looping
   [2019-01-18 17:31:35.322036](info):Notify on event_base_dispatch
   [2019-01-18 17:31:35.322194](info):eventcb: received event:80 on fd:20
   [2019-01-18 17:31:35.322264](info):eventcb:connect to fd:20 successfully
   [2019-01-18 17:31:35.322310](info):received libevent callback event
   [2019-01-18 17:31:35.328046](warning):sendheartbeat brokeradd is empty
   [2019-01-18 17:31:35.331145](warning):sendheartbeat brokeradd is empty
   [2019-01-18 17:31:36.722216](info):connect timeout
   [2019-01-18 17:31:36.722389](info):connect server with addr:localhost:9876 success
   [2019-01-18 17:31:36.724738](info):updateTopicRouteInfoFromNameServer has data
   [2019-01-18 17:31:36.724905](info):updateTopicRouteInfoFromNameServer changed:%RETRY%sdk
   [2019-01-18 17:31:36.724944](info):updateTopicRouteInfoFromNameServer changed with broker name:TaoChen
   [2019-01-18 17:31:36.725128](info):updateTopicRouteInfoFromNameServer start:sdktesting
   [2019-01-18 17:31:36.727285](info):updateTopicRouteInfoFromNameServer has data
   [2019-01-18 17:31:36.727459](info):updateTopicRouteInfoFromNameServer changed:sdktesting
   [2019-01-18 17:31:36.727516](info):updateTopicRouteInfoFromNameServer changed with broker name:TaoChen
   [2019-01-18 17:31:36.728305](info):try to connect to fd:28, addr:10.8.64.103
   [2019-01-18 17:31:36.728513](info):Wait till event base is looping
   [2019-01-18 17:31:36.729229](info):Notify on event_base_dispatch
   [2019-01-18 17:31:36.729407](info):eventcb: received event:80 on fd:28
   [2019-01-18 17:31:36.729468](info):eventcb:connect to fd:28 successfully
   [2019-01-18 17:31:36.729513](info):received libevent callback event
   [2019-01-18 17:31:37.131392](info):connect timeout
   [2019-01-18 17:31:37.131564](info):connect server with addr:10.8.64.103:10911 success
   [2019-01-18 17:31:37.135192](info):notifyConsumerIdsChanged:sdk
   [2019-01-18 17:31:37.135263](info):sendheartbeat to broker:10.8.64.103:10911 success
   [2019-01-18 17:31:37.135375](info):Client factory:11113-fe80::f65d:28fe:7bfe:7546@sdk start dorebalance for consumer:sdk
   [2019-01-18 17:31:37.135453](info):Client factory:11113-fe80::f65d:28fe:7bfe:7546@sdk start dorebalance
   [2019-01-18 17:31:37.135497](info):current topic is:%RETRY%sdk
   [2019-01-18 17:31:37.135543](info):getConsumerIdList from broker:10.8.64.103:10911
   [2019-01-18 17:31:37.137827](info):client id:11113-fe80::f65d:28fe:7bfe:7546@sdk of topic:%RETRY%sdk
   [2019-01-18 17:31:37.137960](info):range is:1, index is:0, mqAllSize is:1, averageSize is:1, startIndex is:0
   [2019-01-18 17:31:37.138004](info):allocate mq:MessageQueue [topic=%RETRY%sdk, brokerName=TaoChen, queueId=0]
   [2019-01-18 17:31:37.138033](info):updateRequestTableInRebalance Doesn't find old mq
   [2019-01-18 17:31:37.140010](info):CONSUME_FROM_LAST_OFFSET, lastOffset of mq:MessageQueue [topic=%RETRY%sdk, brokerName=TaoChen, queueId=0] is:0
   [2019-01-18 17:31:37.140153](info):add mq:MessageQueue [topic=%RETRY%sdk, brokerName=TaoChen, queueId=0], request initiall offset:0
   [2019-01-18 17:31:37.140208](info):pullRequest with mq :MessageQueue [topic=%RETRY%sdk, brokerName=TaoChen, queueId=0] set pullMsgEvent
   [2019-01-18 17:31:37.140277](info):current topic is:sdktesting
   [2019-01-18 17:31:37.140336](info):getConsumerIdList from broker:10.8.64.103:10911
   [2019-01-18 17:31:37.140548](info):new pull callback for mq:MessageQueue [topic=%RETRY%sdk, brokerName=TaoChen, queueId=0]
   [2019-01-18 17:31:37.142611](info):client id:11113-fe80::f65d:28fe:7bfe:7546@sdk of topic:sdktesting
   [2019-01-18 17:31:37.142768](info):range is:4, index is:0, mqAllSize is:4, averageSize is:4, startIndex is:0
   [2019-01-18 17:31:37.142836](info):allocate mq:MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=0]
   [2019-01-18 17:31:37.142885](info):allocate mq:MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=1]
   [2019-01-18 17:31:37.142930](info):allocate mq:MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=2]
   [2019-01-18 17:31:37.142975](info):allocate mq:MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=3]
   [2019-01-18 17:31:37.143020](info):updateRequestTableInRebalance Doesn't find old mq
   [2019-01-18 17:31:37.145007](info):CONSUME_FROM_LAST_OFFSET, lastOffset of mq:MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=0] is:0
   [2019-01-18 17:31:37.145110](info):add mq:MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=0], request initiall offset:0
   [2019-01-18 17:31:37.145139](info):updateRequestTableInRebalance Doesn't find old mq
   [2019-01-18 17:31:37.146870](info):CONSUME_FROM_LAST_OFFSET, lastOffset of mq:MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=1] is:0
   [2019-01-18 17:31:37.146958](info):add mq:MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=1], request initiall offset:0
   [2019-01-18 17:31:37.146988](info):updateRequestTableInRebalance Doesn't find old mq
   [2019-01-18 17:31:37.148753](info):CONSUME_FROM_LAST_OFFSET, lastOffset of mq:MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=2] is:0
   [2019-01-18 17:31:37.148885](info):add mq:MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=2], request initiall offset:0
   [2019-01-18 17:31:37.148918](info):updateRequestTableInRebalance Doesn't find old mq
   [2019-01-18 17:31:37.150613](info):CONSUME_FROM_LAST_OFFSET, lastOffset of mq:MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=3] is:0
   [2019-01-18 17:31:37.150735](info):add mq:MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=3], request initiall offset:0
   [2019-01-18 17:31:37.150780](info):pullRequest with mq :MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=0] set pullMsgEvent
   [2019-01-18 17:31:37.150835](info):pullRequest with mq :MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=1] set pullMsgEvent
   [2019-01-18 17:31:37.150869](info):pullRequest with mq :MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=2] set pullMsgEvent
   [2019-01-18 17:31:37.150921](info):pullRequest with mq :MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=3] set pullMsgEvent
   [2019-01-18 17:31:37.151077](info):current topic is:%RETRY%sdk
   [2019-01-18 17:31:37.151224](info):getConsumerIdList from broker:10.8.64.103:10911
   [2019-01-18 17:31:37.151070](info):new pull callback for mq:MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=0]
   [2019-01-18 17:31:37.151416](info):new pull callback for mq:MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=1]
   [2019-01-18 17:31:37.151613](info):new pull callback for mq:MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=2]
   [2019-01-18 17:31:37.152059](info):new pull callback for mq:MessageQueue [topic=sdktesting, brokerName=TaoChen, queueId=3]
   [2019-01-18 17:31:37.154975](info):client id:11113-fe80::f65d:28fe:7bfe:7546@sdk of topic:%RETRY%sdk
   [2019-01-18 17:31:37.155199](info):range is:1, index is:0, mqAllSize is:1, averageSize is:1, startIndex is:0
   [2019-01-18 17:31:37.155294](info):allocate mq:MessageQueue [topic=%RETRY%sdk, brokerName=TaoChen, queueId=0]
   [2019-01-18 17:31:37.155368](info):current topic is:sdktesting
   [2019-01-18 17:31:37.155430](info):getConsumerIdList from broker:10.8.64.103:10911

----------------------------------------------------------------
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