Skip to content

Code and test cleanup - #890

Draft
bmribler wants to merge 7 commits into
HDFGroup:masterfrom
bmribler:fix_reachable
Draft

Code and test cleanup#890
bmribler wants to merge 7 commits into
HDFGroup:masterfrom
bmribler:fix_reachable

Conversation

@bmribler

@bmribler bmribler commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

Cleanup pass on VSattach/Vstart resource handling plus a valgrind false-positive note.

Changes

  • Added missing VSdetach/Vend calls for corresponding VSattach/Vstart calls in source and test code, fixing memory leaks/unreachable blocks flagged by valgrind.
  • Added an in-code note in the mgr test (test_mgr_old_e) documenting a known valgrind false positive ("Conditional jump or move depends on uninitialised value(s)") caused by Valgrind's limited support for libjpeg-turbo's SIMD code — confirmed benign by rerunning with JSIMD_FORCENONE=1.

Testing

Valgrind output is now clean across the testsuite (aside from the documented, confirmed-benign SIMD false positive).

bmribler and others added 2 commits August 7, 2026 00:34
There are missing VSdetach/Vend calls for VSattach/Vstart calls in both
source and test code, causing memory leaks or unreachable blocks. The
missing calls are added appropriately, resulting in a clean valgrind
output in the testsuite.

In addition, valgrind flagged
  "Conditional jump or move depends on uninitialised value(s)"
in an mgr test (test_mgr_old_e), which is a known false positive caused
by Valgrind's limited support for libjpeg-turbo's SIMD code, not an
actual bug. A note is added to the test describing this.
@bmribler bmribler self-assigned this Aug 7, 2026
@bmribler bmribler added this to the 4.0 milestone Aug 7, 2026
@bmribler
bmribler marked this pull request as draft August 7, 2026 06:12
bmribler and others added 5 commits August 7, 2026 02:17
The 24-bit JPEG image comparison in the mgr test used exact memcmp,
which is too strict across different libjpeg library versions/
platforms -- decoded pixel values can differ slightly due to rounding
in IDCT/color conversion. Switched to fuzzy_memcmp with the existing
JPEG_FUZZ tolerance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant