Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] panic on lotus client query-ask #6569

Closed
ghost opened this issue Jun 23, 2021 · 1 comment · Fixed by #6590
Closed

[BUG] panic on lotus client query-ask #6569

ghost opened this issue Jun 23, 2021 · 1 comment · Fixed by #6590
Labels
kind/bug Kind: Bug

Comments

@ghost
Copy link

ghost commented Jun 23, 2021

Describe the bug
For a subset of miner id's, when I try to run lotus client query-ask <miner id>, I get a panic due to nil pointer dereference. Example:

$ lotus client query-ask f0680676
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1649fcc]

goroutine 1 [running]:
github.com/filecoin-project/lotus/cli.glob..func22(0xc0003513c0, 0x0, 0x0)
	/home/ubuntu/lotus-jdcloud/cli/client.go:1559 +0xaec
github.com/urfave/cli/v2.(*Command).Run(0x50ff940, 0xc000351240, 0x0, 0x0)
	/home/ubuntu/go/pkg/mod/github.com/urfave/cli/v2@v2.2.0/command.go:164 +0x4dd
github.com/urfave/cli/v2.(*App).RunAsSubcommand(0xc000882a80, 0xc000350f40, 0x0, 0x0)
	/home/ubuntu/go/pkg/mod/github.com/urfave/cli/v2@v2.2.0/app.go:427 +0xa49
github.com/urfave/cli/v2.(*Command).startApp(0x51005a0, 0xc000350f40, 0x7fff7e8296f1, 0x6)
	/home/ubuntu/go/pkg/mod/github.com/urfave/cli/v2@v2.2.0/command.go:279 +0x6bb
github.com/urfave/cli/v2.(*Command).Run(0x51005a0, 0xc000350f40, 0x0, 0x0)
	/home/ubuntu/go/pkg/mod/github.com/urfave/cli/v2@v2.2.0/command.go:94 +0x9cd
github.com/urfave/cli/v2.(*App).RunContext(0xc000882900, 0x3db7a70, 0xc000052090, 0xc00004e080, 0x4, 0x4, 0x0, 0x0)
	/home/ubuntu/go/pkg/mod/github.com/urfave/cli/v2@v2.2.0/app.go:306 +0x810
github.com/urfave/cli/v2.(*App).Run(...)
	/home/ubuntu/go/pkg/mod/github.com/urfave/cli/v2@v2.2.0/app.go:215
github.com/filecoin-project/lotus/cli.RunApp(0xc000882900)
	/home/ubuntu/lotus-jdcloud/cli/helper.go:35 +0x7c
main.main()
	/home/ubuntu/lotus-jdcloud/cmd/lotus/main.go:89 +0x6ff

Version (run lotus version):

$ lotus version
Daemon:  1.11.0-dev+mainnet+git.bf468762b.dirty+api1.3.0
Local: lotus version 1.11.0-dev+mainnet+git.bf468762b.dirty

To Reproduce
See above.

Here are two other miner id's that also produce the same error: f0224728, f0232830

Expected behavior
Don't expect panic. Expect output like this:

Ask: f08403
Price per GiB: 0.00000001 FIL
Verified Price per GiB: 0 FIL
Max Piece size: 32 GiB
Min Piece size: 128 MiB

Logs
Does the problem happen for you also? I can't find the pattern f0680676 anywhere in my logs.

@ghost ghost added hint/needs-triaging kind/bug Kind: Bug labels Jun 23, 2021
@jimpick
Copy link
Contributor

jimpick commented Jun 23, 2021

Yeah, there's about 50 miners out there that don't have their PeerID set, eg.:

$ lotus state miner-info f0680676
Available Balance: 13376.721496061126382231 FIL
Owner:	f0719064
Worker:	f0680120
Control 0: 	f0680124
Control 1: 	f0680129
Control 2: 	f0680142
PeerID:	<nil>
Multiaddrs:	
Consensus Fault End:	-1
SectorSize:	64 GiB (68719476736)
Byte Power:   5.018 PiB / 6.699 EiB (0.0732%)
Actual Power: 5.02 Pi / 6.7 Ei (0.0731%)

Proving Period Start:	870034 (20 hours 27 minutes ago)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Kind: Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants