Skip to content

fix: wrap debug pairing point checks in try-catch to fix nightly debug build#22040

Draft
AztecBot wants to merge 1 commit into
nextfrom
claudebox/fix-bb-debug-pairing-points
Draft

fix: wrap debug pairing point checks in try-catch to fix nightly debug build#22040
AztecBot wants to merge 1 commit into
nextfrom
claudebox/fix-bb-debug-pairing-points

Conversation

@AztecBot
Copy link
Copy Markdown
Collaborator

Summary

Fixes the nightly barretenberg debug build failure (ChonkRecursionConstraintTest.GenerateRecursiveChonkVerifierVKFromConstraints).

The debug-only #ifndef NDEBUG native pairing point validation in PairingPoints constructor and aggregate() throws when witness values are zero-initialized (e.g. during VK generation with dummy data). The native PairingPoints constructor calls reduced_ate_pairing_batch_precomputed which aborts on off-curve points. In release builds this check is compiled out entirely.

Wraps the debug checks in try-catch so they log the failure as info instead of crashing.

Verification

  • ChonkRecursionConstraintTest.GenerateRecursiveChonkVerifierVKFromConstraints — was FAILING, now PASSES
  • All 15 bbapi_tests pass
  • ChonkTests.Basic passes

Analysis

https://gist.github.com/AztecBot/f4f7ddc58497acd348686b2d0e0edbe0

ClaudeBox log: https://claudebox.work/s/58cb1de59e0f55f9?run=1

ClaudeBox log: https://claudebox.work/s/58cb1de59e0f55f9?run=1

…g build

The debug-only (#ifndef NDEBUG) native pairing point validation in
PairingPoints constructor and aggregate() throws when witness values are
zero-initialized (e.g. during VK generation with dummy data). The native
PairingPoints constructor calls reduced_ate_pairing_batch_precomputed
which aborts on off-curve points. In release builds this check is
compiled out entirely.

Wraps the debug checks in try-catch so they log the failure as info
instead of crashing the test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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