首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >对等点崩溃:运行时错误:无效的内存地址或零指针取消引用

对等点崩溃:运行时错误:无效的内存地址或零指针取消引用
EN

Stack Overflow用户
提问于 2019-11-29 07:27:51
回答 2查看 893关注 0票数 1

很长一段时间以后,每当我面临以下错误时,我的同伴每次都会崩溃: 1.4.2 go版本go1.12.6 linux/ am 64 ubuntu TLS 16.04

代码语言:javascript
复制
free -m
              total        used        free      shared  buff/cache   available
Mem:         257611       11125      151795        2657       94689      241076
Swap:           976           0         976

对等日志

代码语言:javascript
复制
2019-11-28 17:29:53.646 UTC [deliveryClient] try -> WARN de55 Got error: rpc error: code = Unavailable desc = transport is closing , at 1 attempt. Retrying in 1s
2019-11-28 17:29:53.829 UTC [deliveryClient] try -> WARN de56 Got error: rpc error: code = Unavailable desc = transport is closing , at 1 attempt. Retrying in 1s
2019-11-28 17:29:55.826 UTC [deliveryClient] try -> WARN de57 Got error: rpc error: code = Unavailable desc = transport is closing , at 1 attempt. Retrying in 1s
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xaed020]

goroutine 136 [running]:
github.com/hyperledger/fabric/protos/gossip.(*SecretEnvelope).InternalEndpoint(0x0, 0x40c4c3, 0x7f849226ddc8)
    /opt/gopath/src/github.com/hyperledger/fabric/protos/gossip/extensions.go:480 +0x40
github.com/hyperledger/fabric/gossip/discovery.newAliveMsgStore.func4(0x1243280, 0xc00254ab10)
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/discovery/discovery_impl.go:1032 +0xfd
github.com/hyperledger/fabric/gossip/gossip/msgstore.(*messageStoreImpl).expireMessages(0xc002656180)
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/msgstore/msgs.go:212 +0x34c
github.com/hyperledger/fabric/gossip/gossip/msgstore.(*messageStoreImpl).expirationRoutine(0xc002656180)
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/msgstore/msgs.go:253 +0x141
created by github.com/hyperledger/fabric/gossip/gossip/msgstore.NewMessageStoreExpirable
    /opt/gopath/src/github.com/hyperledger/fabric/gossip/gossip/msgstore/msgs.go:53 +0xb2

链码日志

代码语言:javascript
复制
2019/11/27 10:04:13 This complaintno already exists: 1709157484903969657
2019-11-28 17:44:50.198 UTC [shim] chatWithPeer -> ERRO 001 Received error from server, ending chaincode stream: rpc error: code = Unavailable desc = transport is closing
receive failed
github.com/hyperledger/fabric/core/chaincode/shim.chatWithPeer
    /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:362
github.com/hyperledger/fabric/core/chaincode/shim.Start
    /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:156
main.main
    /chaincode/input/src/github.com/chaincode/complaints/complaintchaincode.go:134
runtime.main
    /opt/go/src/runtime/proc.go:201
runtime.goexit
    /opt/go/src/runtime/asm_amd64.s:1333
2019/11/28 17:44:50 Error starting Complaint chaincode: receive failed: rpc error: code = Unavailable desc = transport is closing

我面对这个错误已经很长时间了,但是我无法调试它。

EN

回答 2

Stack Overflow用户

发布于 2019-11-29 07:49:53

您正在经历一个在1.4.2中引入并在1.4.3中是固定的bug。

票数 1
EN

Stack Overflow用户

发布于 2019-11-29 07:45:11

可能有很多原因,但我也经历过一些类似的诡计,它们通过升级对接版本(当然,重新启动码头服务)得到了解决。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59100447

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档