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

[Batcher] Additional check in updateBlob method before dereferencing #289

Merged
merged 3 commits into from
Feb 28, 2024

Conversation

siddimore
Copy link
Contributor

@siddimore siddimore commented Feb 28, 2024

Why are these changes needed?

Handle below Finalizer error by adding checks before deref

2024-02-28 10:15:28.227 | /app/disperser/batcher/finalizer.go:134 +0x14d |  
2024-02-28 10:15:28.227 | github.com/Layr-Labs/eigenda/disperser/batcher.(*finalizer).FinalizeBlobs.func1() |  
2024-02-28 10:15:28.227 | /app/disperser/batcher/finalizer.go:106 +0x32 |  
2024-02-28 10:15:28.227 | github.com/gammazero/workerpool.worker(0x1?, 0x0?, 0x0?) |  
2024-02-28 10:15:28.227 | /go/pkg/mod/github.com/gammazero/[email protected]/workerpool.go:237 +0x22 |  
2024-02-28 10:15:28.227 | created by github.com/gammazero/workerpool.(*WorkerPool).dispatch in goroutine 30758 |  
2024-02-28 10:15:28.227 | /go/pkg/mod/github.com/gammazero/[email protected]/workerpool.go:197 +0x2b3 |  
2024-02-28 10:16:21.309 | 2024/02/28 18:16:21 maxprocs: Leaving GOMAXPROCS=16: CPU quota undefined |  
2024-02-28 10:22:24.239 | panic: runtime error: invalid memory address or nil pointer dereference |  
2024-02-28 10:22:24.239 | [signal SIGSEGV: segmentation violation code=0x1 addr=0xac pc=0xb1a4ad]

Checks

  • I've made sure the lint is passing in this PR.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@siddimore siddimore changed the title [Batcher] Additional check in updateBlobs before dereference [Batcher] Additional check in updateBlobs before dereferencing Feb 28, 2024
@siddimore siddimore changed the title [Batcher] Additional check in updateBlobs before dereferencing [Batcher] Additional check in updateBlob method before dereferencing Feb 28, 2024
@siddimore siddimore marked this pull request as ready for review February 28, 2024 21:09
@siddimore siddimore merged commit 390c2ad into Layr-Labs:master Feb 28, 2024
4 checks passed
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