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

Avoiding race condition in batching #413

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cryptowhizzard
Copy link

@cryptowhizzard cryptowhizzard commented Feb 13, 2025

Should fix :

Feb 12 12:20:07 curioc2b curio[517407]: panic: runtime error: invalid memory address or nil pointer dereference
Feb 12 12:20:07 curioc2b curio[517407]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x18078ff]
Feb 12 12:20:07 curioc2b curio[517407]: goroutine 2771 [running]:
Feb 12 12:20:07 curioc2b curio[517407]: github.com/filecoin-project/curio/tasks/seal.(*SealPoller).pollStartBatchCommitMsg(0xc0003068c0, {0x4906bb0, 0xc00066c050}, {0xc001f44000, 0x844, 0x0?})
Feb 12 12:20:07 curioc2b curio[517407]: #11/root/curio/tasks/seal/poller_commit_msg.go:119 +0x139f
Feb 12 12:20:07 curioc2b curio[517407]: github.com/filecoin-project/curio/tasks/seal.(*SealPoller).poll(0xc0003068c0, {0x4906bb0, 0xc00066c050})
Feb 12 12:20:07 curioc2b curio[517407]: #11/root/curio/tasks/seal/poller.go:267 +0x6c5
Feb 12 12:20:07 curioc2b curio[517407]: github.com/filecoin-project/curio/tasks/seal.(*SealPoller).RunPoller(0xc0003068c0, {0x4906bb0, 0xc00066c050})
Feb 12 12:20:07 curioc2b curio[517407]: #11/root/curio/tasks/seal/poller.go:120 +0x113
Feb 12 12:20:07 curioc2b curio[517407]: created by github.com/filecoin-project/curio/cmd/curio/tasks.addSealingTasks in goroutine 1
Feb 12 12:20:07 curioc2b curio[517407]: #11/root/curio/cmd/curio/tasks/tasks.go:316 +0x2465
Feb 12 12:20:07 curioc2b systemd[1]: curio.service: Main process exited, code=exited, status=2/INVALIDARGUMENT

@magik6k magik6k requested a review from LexLuthr February 17, 2025 11:21
Copy link
Contributor

@LexLuthr LexLuthr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cryptowhizzard Can you please provide us /root/curio/tasks/seal/poller_commit_msg.go line 115-125? Since you are running customised version, I would like to verify where nil pointer deference is coming from.

SectorNumber can be 0 in the pipeline.

@cryptowhizzard
Copy link
Author

Latest main @LexLuthr ... nothing customised here regarding this.

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