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 2020/12/02 05:53:41 UTC

[GitHub] [rocketmq-client-go] lintingyong opened a new issue #562: result.String() panic: runtime error: invalid memory address or nil

lintingyong opened a new issue #562:
URL: https://github.com/apache/rocketmq-client-go/issues/562


   https://github.com/apache/rocketmq-client-go/blob/9d9e41363e75766535297a42d581ec7a77f5875f/examples/producer/async/main.go#L51
   
   panic: runtime error: invalid memory address or nil pointer dereference
   [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xbe9860]
   
   goroutine 97821 [running]:
   github.com/apache/rocketmq-client-go/v2/primitive.(*MessageQueue).String(...)
           /data/server/Jenkins/pkg/mod/github.com/apache/rocketmq-client-go/v2@v2.1.0-rc5/primitive/message.go:393
   github.com/apache/rocketmq-client-go/v2/primitive.(*SendResult).String(0xc0007ad440, 0x1076c9a, 0x4)
           /data/server/Jenkins/pkg/mod/github.com/apache/rocketmq-client-go/v2@v2.1.0-rc5/primitive/result.go:60 +0x40
   xgit.linty.com/app/appserver/modules/mq.(*RocketMqProducer).SendAsync.func1(0x12177c0, 0xc0010b9da0, 0xc0007ad440, 0x0, 0x0)
           /var/lib/jenkins/workspace/buildAndPack-golang/app-server:5fc62f8d2172f50001a39ec2/modules/mq/rocketmq.go:32 +0x46
   github.com/apache/rocketmq-client-go/v2/producer.(*defaultProducer).sendAsync.func1(0xc000646400, 0x0, 0x0)
           /data/server/Jenkins/pkg/mod/github.com/apache/rocketmq-client-go/v2@v2.1.0-rc5/producer/producer.go:253 +0x19a
   github.com/apache/rocketmq-client-go/v2/internal.(*rmqClient).InvokeAsync.func1(0xc00063c550)
           /data/server/Jenkins/pkg/mod/github.com/apache/rocketmq-client-go/v2@v2.1.0-rc5/internal/client.go:422 +0x44
   github.com/apache/rocketmq-client-go/v2/internal/remote.(*ResponseFuture).executeInvokeCallback.func1()
           /data/server/Jenkins/pkg/mod/github.com/apache/rocketmq-client-go/v2@v2.1.0-rc5/internal/remote/future.go:51 +0x3d
   sync.(*Once).doSlow(0xc00063c580, 0xc00058a740)
           /usr/local/go/src/sync/once.go:66 +0xe3
   sync.(*Once).Do(...)
           /usr/local/go/src/sync/once.go:57
   github.com/apache/rocketmq-client-go/v2/internal/remote.(*ResponseFuture).executeInvokeCallback(0xc00063c550)
           /data/server/Jenkins/pkg/mod/github.com/apache/rocketmq-client-go/v2@v2.1.0-rc5/internal/remote/future.go:49 +0x65
   github.com/apache/rocketmq-client-go/v2/internal/remote.(*remotingClient).processCMD.func1()
           /data/server/Jenkins/pkg/mod/github.com/apache/rocketmq-client-go/v2@v2.1.0-rc5/internal/remote/remote_client.go:195 +0x41
   github.com/apache/rocketmq-client-go/v2/primitive.WithRecover(0xc0009a48a0)
           /data/server/Jenkins/pkg/mod/github.com/apache/rocketmq-client-go/v2@v2.1.0-rc5/primitive/base.go:96 +0x4d
   created by github.com/apache/rocketmq-client-go/v2/internal/remote.(*remotingClient).processCMD
           /data/server/Jenkins/pkg/mod/github.com/apache/rocketmq-client-go/v2@v2.1.0-rc5/internal/remote/remote_client.go:193 +0x123


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org