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

fix(processor): Fix panic from nil items #413

Merged
merged 7 commits into from
Nov 29, 2024
Merged

Conversation

samcm
Copy link
Member

@samcm samcm commented Nov 28, 2024

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1c796c1]

goroutine 11986827 [running]:
github.com/ethpandaops/xatu/pkg/processor.(*BatchItemProcessor[...]).exportWithTimeout(0x2d54940, {0x2d22720, 0x43ecfe0}, {0xc006974000, 0xc350, 0x0})
/workspace/pkg/processor/batch.go:289 +0x4a1
github.com/ethpandaops/xatu/pkg/processor.(*BatchItemProcessor[...]).worker(0x2d54940, {0x2d22720, 0x43ecfe0}, 0x2)
/workspace/pkg/processor/batch.go:468 +0x154
github.com/ethpandaops/xatu/pkg/processor.(*BatchItemProcessor[...]).Start.func1()
/workspace/pkg/processor/batch.go:200 +0x6c
created by github.com/ethpandaops/xatu/pkg/processor.(*BatchItemProcessor[...]).Start in goroutine 11857871
/workspace/pkg/processor/batch.go:198 +0x134

@samcm samcm requested a review from Savid as a code owner November 28, 2024 03:09
Copy link
Member

@mattevans mattevans left a comment

Choose a reason for hiding this comment

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

🎉

@samcm samcm merged commit a280136 into master Nov 29, 2024
4 of 5 checks passed
@samcm samcm deleted the fix/processor-nil-items branch November 29, 2024 01:32
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