fix: wrap debug pairing point checks in try-catch to fix nightly debug build#22518
Closed
AztecBot wants to merge 1 commit into
Closed
fix: wrap debug pairing point checks in try-catch to fix nightly debug build#22518AztecBot wants to merge 1 commit into
AztecBot wants to merge 1 commit into
Conversation
…g build The debug-only (#ifndef NDEBUG) native pairing point validation in stdlib PairingPoints constructor and aggregate() throws when witness values are zero-initialized (e.g. during VK generation with dummy data). The native check calls reduced_ate_pairing_batch_precomputed which aborts on off-curve points. Wraps the debug checks in try-catch so they log the skip instead of crashing. This only affects debug builds; release builds are unchanged.
Collaborator
Author
Flakey Tests🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry. |
This was referenced Apr 14, 2026
Collaborator
Author
|
Automatically closing this stale claudebox draft PR (no updates for 5+ days). Re-open if still needed. |
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the recurring nightly barretenberg debug build failure (
ChonkRecursionConstraintTest.GenerateRecursiveChonkVerifierVKFromConstraints).The debug-only
#ifndef NDEBUGnative pairing point validation in stdlibPairingPointsconstructor andaggregate()throws when witness values are zero-initialized (e.g. during VK generation with dummy data). The nativePairingPoints::check()callsreduced_ate_pairing_batch_precomputedwhich 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 skip instead of crashing. This is purely a debug diagnostic — it has no effect on release builds or correctness.
Supersedes stale draft #22040 which had the same fix but was never merged.
Verification
ChonkRecursionConstraintTest.GenerateRecursiveChonkVerifierVKFromConstraints— was FAILING, now PASSESChonkTests.Basic— passesbbapi_tests— passClaudeBox log: https://claudebox.work/s/b49977e223d36b24?run=1