Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Valgrind on CI and fix memory leaks #2309

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Mar 7, 2025

This PR:

(Big thanks to @peterzhu2118 for helping on both the setup and fixing the issues 🙏 )

Copy link
Contributor

@amomchilov amomchilov left a comment

Choose a reason for hiding this comment

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

Nice!

st0012 and others added 4 commits March 7, 2025 17:51
Many gems with C-extensions have been using valgrind to check memory leaks,
such as `prism`, `lrama`, and `json`.

The simplest way to run valgrind on CI is through `ruby_memcheck` gem,
which is used by both `prism` and `json`. So I followed its readme
to add a new job `valgrind` to `ruby.yml`.
@st0012 st0012 force-pushed the run-valgrind-on-ci branch from 9674479 to 686e0cc Compare March 7, 2025 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants