-
Notifications
You must be signed in to change notification settings - Fork 729
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
valgrind-based tests #1406
Comments
I'm not sure. I investigated the clamd "socket is already closed" issue a little more closely than the others and could not find an actual bug. I tried adding this change to check if a socket is being closed twice, as suggested by the valgrind log, and my tests still passed fine (ubuntu 20.04): diff --git a/clamd/clamd.c b/clamd/clamd.c
index 191d9a673..15e7dfbd7 100644
--- a/clamd/clamd.c
+++ b/clamd/clamd.c
@@ -859,7 +859,13 @@ int main(int argc, char **argv)
logg(LOGG_DEBUG, "Closing the main socket%s.\n", (nlsockets > 1) ? "s" : "");
for (i = 0; i < nlsockets; i++) {
- closesocket(lsockets[i]);
+ if (lsockets[i] > 0) {
+ closesocket(lsockets[i]);
+ lsockets[i] = -1;
+ } else {
+ printf("Socket %d is already closed\n", i);
+ exit(1);
+ }
}
#ifndef _WIN32
if (nlsockets && localsock) { The other valgrind complaints also do not make sense to me. Some of them are also for /usr/bin/bash. E.g.:
and
Perhaps there may be something wrong with valgrind on your system. |
So, should this issue be closed? |
It's not fixed (for you), but I also don't have a solution. Nor do I think it is a real issue. So... I'd love to close it, but I'd understand if you want to keep it open in case someone else runs into the issue and figures out what is going on. |
built using standard instructions on recent opensuse tumbleweed. I am using beta rustup (rustc 1.83.0-beta.5 ).
The following tests FAILED:
2 - libclamav_valgrind (Failed)
7 - clamd_valgrind (Failed)
9 - freshclam_valgrind (Failed)
11 - sigtool_valgrind (Failed)
adding ¨lasttest.log¨, should I add any more information?
LastTest.log
The text was updated successfully, but these errors were encountered: