Skip to content

Suppress valgrind for BIO jobs#3277

Merged
JimB123 merged 2 commits into
valkey-io:unstablefrom
asagege:alina_suppress_valgrind_for_bio
Feb 28, 2026
Merged

Suppress valgrind for BIO jobs#3277
JimB123 merged 2 commits into
valkey-io:unstablefrom
asagege:alina_suppress_valgrind_for_bio

Conversation

@asagege

@asagege asagege commented Feb 28, 2026

Copy link
Copy Markdown
Contributor

Suppress valgrind for BIO jobs valgrind errors: https://github.com/valkey-io/valkey/actions/runs/21969557125/job/63467641572#step:6:8648

Changes

  • Add allocBioJob() with __attribute__((noinline)) as a centralized allocation function for all BIO jobs. The noinline attribute ensures it appears as a distinct frame in valgrind stack traces.
  • Replace all direct zmalloc calls in bioCreate*Job functions withallocBioJob().
  • Add a valgrind suppression in src/valgrind.sup matching definite leaks with allocBioJob in the call stack.
  • Remove current_job introduced in Replace mutexQueuePeek with current_job field for BIO memcheck fix #3256

Signed-off-by: Alina Liu <liusalisa6363@gmail.com>
Comment thread src/bio.c Outdated
Signed-off-by: Alina Liu <liusalisa6363@gmail.com>

@JimB123 JimB123 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok. We'll run some tests before submission.

@JimB123 JimB123 merged commit 74ad2f9 into valkey-io:unstable Feb 28, 2026
56 checks passed
@codecov

codecov Bot commented Feb 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (834dc83) to head (866e88c).
⚠️ Report is 1 commits behind head on unstable.

Additional details and impacted files
@@       Coverage Diff        @@
##   unstable   #3277   +/-   ##
================================
================================
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

hpatro pushed a commit to hpatro/valkey that referenced this pull request Mar 5, 2026
Suppress valgrind for BIO jobs valgrind errors:
https://github.com/valkey-io/valkey/actions/runs/21969557125/job/63467641572#step:6:8648

## Changes

- Add `allocBioJob()` with `__attribute__((noinline))` as a centralized
allocation function for all BIO jobs. The `noinline` attribute ensures
it appears as a distinct frame in valgrind stack traces.
- Replace all direct `zmalloc` calls in `bioCreate*Job` functions
with`allocBioJob()`.
- Add a valgrind suppression in `src/valgrind.sup` matching definite
leaks with `allocBioJob` in the call stack.
- Remove `current_job` introduced in valkey-io#3256

---------

Signed-off-by: Alina Liu <liusalisa6363@gmail.com>
Signed-off-by: Harkrishn Patro <bunty.hari@gmail.com>
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.

2 participants