Make wide-dedup XXH3 parity tests safe under ARM64 sanitizers
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 67/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- c
- Domain
- embedded-iot, testing
Research direction
Start with test_wide_dedup_hash_without_allocation and the ARM64 sanitizer failure described in the linked CI run; compare its expected-hash input with the production wide-row path. Keep the parity checks for widths 9 and 32 and the no-allocation assertion, then run test_tdd_recursive under ARM64 ASan/UBSan. Done when it passes without alignment diagnostics or weakened checks.
Written by the indexing model from the issue text.
Description
Discovery context
The ARM64 sanitizer job for PR #1903 (issue #1369) aborted in CI run 35935910267, job 107433007078, while running tdd_recursive. UBSan reported a misaligned load of xxh_aliasing_uint64x2_t in the pinned xxHash 0.8.4 xxhash.h:4150. The wide-dedup parity test passes a stack int64_t[32] directly to contiguous XXH3_64bits; the production wide-row path instead streams scalar values.
Architect and Critic reviewed this as test-oracle alignment portability, separate from #1369's memory-admission behavior. Preserve the sanitizer evidence and parity/no-allocation assertions when fixing it.
Scope
Make the expected-hash input in test_wide_dedup_hash_without_allocation explicitly aligned for the ARM64 xxHash vector path, or use an equivalent sanitizer-safe reference calculation. Keep the change in test code; do not change production dedup behavior, vendor or upgrade xxHash, suppress UBSan, or weaken alignment checks.
Acceptance criteria
test_tdd_recursivepasses under ARM64 ASan/UBSan with no alignment diagnostics.- The wide-row parity checks still cover widths 9 and 32, and the no-allocation assertion remains.
- The relevant ARM64 sanitizer target passes without test exclusions, sanitizer suppressions, or weakened compiler/runtime checks.
- The pinned dependency and reproducible test setup remain documented.
- Dominant language
- C
- Stars
- 18
- Forks
- 2
- Avg merge
- 11h 33m
- Merged PRs (30d)
- 296
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from semantic-reasoning/wirelog
-
Doc: insert executor and incremental consolidation leave sorted runs, not globally sorted headsOpen
Difficulty 1/5 Under an hour Newbie friendliness 83/100
semantic-reasoning/wirelog#2133 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
semantic-reasoning/wirelog#2042 ·
Maintainers usually reply within 1 day
-
p2-medium
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
semantic-reasoning/wirelog#1914 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
semantic-reasoning/wirelog#2129 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
semantic-reasoning/wirelog#2128 ·
Maintainers usually reply within 1 day
All issues in semantic-reasoning/wirelog
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
tmewett/BrogueCE#929 · 1 comment ·
Maintainers usually reply within 1 day
-
bug : find_key() compares kty against "ocy" instead of "oct", breaking kid-less HS256 verificationOpen
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
OpenPrinting/cups#1756 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 76/100
SteamGridDB/SGDBoop#147 ·
-
backlog
Difficulty 1/5 Under an hour Newbie friendliness 82/100
EchoTools/nevr-runtime#454 ·
Maintainers usually reply within 1 day