Open LiilyZhang opened 9 months ago
This panic happens in agbot when receiving several rejection reply from node:
panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x60 pc=0x18eed0c] goroutine 47 [running]: github.com/open-horizon/anax/agreementbot.(*NodeSearch).SetRescanNeeded(0x52db6a?) /tmp/anax-gopath/src/github.com/open-horizon/anax/agreementbot/node_search.go:95 +0x2c github.com/open-horizon/anax/agreementbot.(*NodeSearch).AddRetry(0x0, {0xc000030ff0, 0x17}, 0x21513c1?) /tmp/anax-gopath/src/github.com/open-horizon/anax/agreementbot/node_search.go:550 +0x34 github.com/open-horizon/anax/agreementbot.(*BaseAgreementWorker).AddRetry(0xc000256540, {0x256be80, 0xc000380978}, {0xc0000de2c0, 0x40}, {0xc00042bc50, 0x24}) /tmp/anax-gopath/src/github.com/open-horizon/anax/agreementbot/agreementworker.go:1267 +0x185 github.com/open-horizon/anax/agreementbot.(*BaseAgreementWorker).HandleAgreementReply(0xc000256540, {0x256be80, 0xc000380978}, 0xc00075be60, {0xc00042bc50, 0x24}) /tmp/anax-gopath/src/github.com/open-horizon/anax/agreementbot/agreementworker.go:1134 +0x1fc github.com/open-horizon/anax/agreementbot.(*BasicAgreementWorker).start(0xc0006864d0, 0xc00044c960, 0xc0003989c0?) /tmp/anax-gopath/src/github.com/open-horizon/anax/agreementbot/basic_agreement_worker.go:244 +0x2fe created by github.com/open-horizon/anax/agreementbot.(*BasicProtocolHandler).Initialize in goroutine 35 /tmp/anax-gopath/src/github.com/open-horizon/anax/agreementbot/basic_protocol_handler.go:72 +0x20e
This panic happens in agbot when receiving several rejection reply from node: