Repository navigation
feat(ci/tests): heap-poisoning debug board + json machinery regression tests (#3588) - #3598
Merged
Merged
Conversation
…n tests (#3588) - ci/boards.py: esp32dev_heapdbg — same pioarduino platform as esp32dev but with custom_sdkconfig=CONFIG_HEAP_POISONING_COMPREHENSIVE=y, which makes pioarduino rebuild the IDF libs from source with comprehensive heap poisoning. Verified end-to-end this session: the option lands in the built sdkconfig.h and the final firmware, and the #3588 repro runs under it (result: the poisoning canaries do NOT fire before the crash — the stray write lands INSIDE a live allocation, ruling out classic out-of-block overflow). - tests/fl/stl/json_pair_traits.cpp: locks the vector-ops classification invariants for the json object pair (not trivially copyable; ops table present with real move/destroy fns) — the exact properties the #3588 relocation/double-destroy theories hinged on. - tests/fl/stl/json_response_assembly.cpp: verbatim host replica of runSingleTestImpl's response-assembly choreography (the code the device crash fires inside), 200 iterations with fragmentation churn. ASAN-clean — pinning that the fl::json machinery is address-clean off-device and the corruption is environment-specific. Host: 349/349, lint clean. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR adds a new CI board constant ChangesCI Board and JSON Test Additions
Estimated code review effort: 2 (Simple) | ~10 minutes ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Jul 15, 2026
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.
esp32dev_heapdbgboard: pioarduino +custom_sdkconfig=CONFIG_HEAP_POISONING_COMPREHENSIVE=y→ IDF libs rebuilt from source with comprehensive heap poisoning. Verified end-to-end: option lands in the built sdkconfig + firmware; the Classic ESP32: heap corruption crash (LoadProhibited, garbage pointer) when AutoResearch HTTP server + client traffic runs alongside RPC response building #3588 repro runs under it. Result: poisoning canaries do NOT fire before the crash — the stray write lands inside a live allocation (rules out classic out-of-block overflow).json_pair_traitstest: locks the vector-ops classification invariants for the json object pair (the properties the relocation/double-destroy theories hinged on).json_response_assemblytest: verbatim host replica of the response-assembly choreography the device crash fires inside — 200 iterations with fragmentation churn, ASAN-clean.Host: 349/349; lint clean.
Refs #3588.
🤖 Generated with Claude Code
Summary by CodeRabbit