Skip to content

fix: catch exceptions in ChonkBatchVerifier::batch_check#22273

Draft
AztecBot wants to merge 1 commit intomerge-train/barretenbergfrom
claudebox/fix-mem-profiling-ci
Draft

fix: catch exceptions in ChonkBatchVerifier::batch_check#22273
AztecBot wants to merge 1 commit intomerge-train/barretenbergfrom
claudebox/fix-mem-profiling-ci

Conversation

@AztecBot
Copy link
Copy Markdown
Collaborator

@AztecBot AztecBot commented Apr 2, 2026

Summary

Fixes CI failure in merge-train/barretenberg caused by PR #22266 (memory profiling switch).

The ChonkBatchVerifierTests.RandomMixedBatches test corrupts ipa_proof[0] to create invalid proofs, which causes "Deserialized point is not on the curve" during IPA batch verification. The parallel_reduce phase already has try/catch for this, but batch_check (which runs IPA verification) did not — causing an uncaught exception that aborted the process.

The fix wraps the IPA batch verification in a try/catch, treating any exception as a batch failure so bisection can isolate the bad proof(s).

Test plan

  • chonk_tests — all 29 tests pass including RandomMixedBatches

ClaudeBox log: https://claudebox.work/s/9f588127e389c8cb?run=1

…rrupted IPA proofs

Corrupted IPA proofs can cause deserialization errors (e.g. 'Deserialized point
is not on the curve') during batch_reduce_verify. Without a try/catch, this
crashes the process. Now exceptions in batch_check are treated as batch failures,
triggering bisection to isolate the bad proof(s).
@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant