-
Notifications
You must be signed in to change notification settings - Fork 714
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
Properly cleanup all fd from tests #4005
Comments
We should probably also update / add a new test to track this if we're going to fix it. |
All leaking file descriptors were collected and fixed by PRs mentioned above. Therefore, we are closing this issue. Here is a summary log for this issue:
|
Problem:
Some of our tests dont do proper cleanup of /dev/urandom. Its possible to detect which tests are not doing this by running valgrind with
--track-fds=yes
flag.Solution:
Track which tests are not cleaning up and fix the test
AF_UNIX
sockets that are left opened./dev/urandom
that wasn't closed properlys2n_override_openssl_random_test
We replace the cleanup callbacks when we set the new drbg so dont clean it up when we finally exit.AF_INET
socketst that are left opened.test_exec_leak.sh
to see if it is functional.The text was updated successfully, but these errors were encountered: