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

Update sealing.go #5487

Closed
wants to merge 1 commit into from
Closed

Update sealing.go #5487

wants to merge 1 commit into from

Conversation

shihuajin111
Copy link

Consider the case where the int(barCols)-cpuBars is negative,solve negative Repeat count bug

panic: strings: negative Repeat count
goroutine 1 [running]:
strings.Repeat(0x2e33731, 0x1, 0xffffffffffffffd8, 0x0, 0x0)
/usr/local/go/src/strings/strings.go:529 +0x5e5
main.glob..func46(0xc0006628c0, 0x0, 0x0)
/mnt/filecoin-lvm/labs/labs/lotus/cmd/lotus-storage-miner/sealing.go:97 +0x9ea
github.com/urfave/cli/v2.(*Command).Run(0x58c65e0, 0xc0006627c0, 0x0, 0x0)
/mnt/filecoin-lvm/labs/labs/go/pkg/mod/github.com/urfave/cli/v2@v2.2.0/command.go:164 +0x4ed
github.com/urfave/cli/v2.(*App).RunAsSubcommand(0xc000524480, 0xc0006625c0, 0x0, 0x0)
/mnt/filecoin-lvm/labs/labs/go/pkg/mod/github.com/urfave/cli/v2@v2.2.0/app.go:427 +0xa9f

Consider the case where the int(barCols)-cpuBars is negative,solve  negative Repeat count bug 


panic: strings: negative Repeat count
goroutine 1 [running]:
strings.Repeat(0x2e33731, 0x1, 0xffffffffffffffd8, 0x0, 0x0)
	/usr/local/go/src/strings/strings.go:529 +0x5e5
main.glob..func46(0xc0006628c0, 0x0, 0x0)
	/mnt/filecoin-lvm/labs/labs/lotus/cmd/lotus-storage-miner/sealing.go:97 +0x9ea
github.com/urfave/cli/v2.(*Command).Run(0x58c65e0, 0xc0006627c0, 0x0, 0x0)
	/mnt/filecoin-lvm/labs/labs/go/pkg/mod/github.com/urfave/cli/v2@v2.2.0/command.go:164 +0x4ed
github.com/urfave/cli/v2.(*App).RunAsSubcommand(0xc000524480, 0xc0006625c0, 0x0, 0x0)
	/mnt/filecoin-lvm/labs/labs/go/pkg/mod/github.com/urfave/cli/v2@v2.2.0/app.go:427 +0xa9f
@arajasek
Copy link
Contributor

Thanks! Absorbed into #6942.

@arajasek arajasek closed this Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants