Skip to content

Task minerprotocols causes panic #1119

@placer14

Description

@placer14

Describe the bug:

During the processing of the minerprotocols survey task, we hit a panic.

daemon panic: runtime error: invalid memory address or nil pointer dereference
daemon [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x211a6df]
daemon
daemon goroutine 95743 [running]:
daemon github.com/filecoin-project/lily/tasks/survey/minerprotocols.getMinerAddrInfo({{{0xc0b3faf6b8, 0x4}}, {{0xc0b3faf6c4, 0x4}}, {{0x0, 0x0}}, {0xc062812620, 0x1, 0x1}, 0xffffffffffffffff, ...})
daemon     /go/src/github.com/filecoin-project/lily/tasks/survey/minerprotocols/minerprotocols.go:205 +0x7f
daemon github.com/filecoin-project/lily/tasks/survey/minerprotocols.fetchMinerProtocolModel({0x560e0a8, 0xc085c0b6e0}, {0x7ed8569c4688, 0xc0004ef680}, {{0xc0ba1805f0?, 0xc08b9a7f01?}}, {{{0xc0b3faf6b8, 0x4}}, {{0xc
0b3faf6c4, 0x4}}, ...}, ...)
daemon     /go/src/github.com/filecoin-project/lily/tasks/survey/minerprotocols/minerprotocols.go:155 +0xf8
daemon github.com/filecoin-project/lily/tasks/survey/minerprotocols.(*Task).Process.func1()
daemon     /go/src/github.com/filecoin-project/lily/tasks/survey/minerprotocols/minerprotocols.go:124 +0x138
daemon github.com/gammazero/workerpool.worker(0xc0b801a5b0?)
daemon     /go/pkg/mod/github.com/gammazero/[email protected]/workerpool.go:243 +0x29
daemon created by github.com/gammazero/workerpool.startWorker
daemon     /go/pkg/mod/github.com/gammazero/[email protected]/workerpool.go:234 +0x65

Looks like a nil is being returned from api.StateMinerInfo(ctx, miner, headTs.Key()) even though no error is being return.

Steps to Reproduce:

Run minerprotocols survey task. Wait until the API finds itself in the condition that causes api.StateMinerInfo(ctx, miner, headTs.Key()) to return nil, nil. 😢

Lily Version: v0.13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions