-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Test with valgrind #8601
Comments
I have a Valgrind suppressions file for Boehm GC that I've used for running Nix on Valgrind. It's from 2012 though so it probably needs some updating. |
AFAIK, testing current nix implementation with vanilla valgrind without any modification will definitely ends up a lot of errors, we are using the bohem GC in nix, and for CLI use, we just rely the OS to free memory. #8600 was found by a forked parser which do not require Here is the report of
|
Remove the paranoid check stuff; not feasible until upstream implements NixOS/nix#8601
Is your feature request related to a problem? Please describe.
Memory leaks are bad; use after free and other memory problems are worse.
Describe the solution you'd like
Valgrind can check for such issues.
Run tests with valgrind and check the all goes well.
Challenges:
$PATH
)checks
)Value
objects as wellDescribe alternatives you've considered
Check all
new
,strdup
, etc invocations by hand. Doesn't seem quite as productive or sustainable.Additional context
es2
in stripIndentation (parser.y) #8600Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: