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

Fix instructions for leak check on macOS. #78

Merged
merged 1 commit into from
Jan 4, 2025

Conversation

stroiman
Copy link

@stroiman stroiman commented Jan 3, 2025

It's been a while, but I wanted to "complete" my changes, and also automate memory-leak checking.

The instructions for running on macOS was outdated, as homebrew uses a different root folder now, so I've updated the instructions.

Unfortunately, running this locally results a non-zero exit code, which is unfortunate, as there's a github workflow for checking leaks.

SUMMARY: AddressSanitizer: 10544 byte(s) leaked in 56 allocation(s).

I deliberately also deliberately pushed code that should leak to a test PR in my own space (it creates a cgo.Handle that it doesn't delete). But the build didn't catch this.

Anyway, this PR is just about updating the readme file. Understanding the output of the leak check is a little outside my area of expertise.

@tommie
Copy link
Owner

tommie commented Jan 4, 2025

It's possible to add suppressions to Valgrind, making it ignore "static" leaks: https://valgrind.org/docs/manual/mc-manual.html#mc-manual.suppfiles

@tommie tommie merged commit 51cf69c into tommie:master Jan 4, 2025
8 checks passed
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