-
Notifications
You must be signed in to change notification settings - Fork 705
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
LibClamAV Error for ClamAV 1.0.4 for EL9 #1107
Comments
@brandonrace how much RAM does your machine have? |
Nearly 7GB is free, I agree that "can't allocate memory" sounds like it would be a RAM issue but I don't think that's the case. Are using the same m5.large instance in AWS for both RHEL-8 and RHEL-9, for the EL8 version of ClamAV, we don't have any issues, with the EL9 version, we get the error I sent. |
Yeah it doesn't sound like a RAM issue. I wonder if the daily.cvd file got corrupted somehow. Can you try deleting it and then running freshclam to download a new copy? |
I also get the can't allocate memory error when running freshclam. |
I also noticed that when the clamscan command is ran the line that says Loading gets to 2.03M/8.70M before crashing and giveing the can't allocate memory error. |
I was unable to reproduce the error. I don't have access to RHEL9. I just tested with a docker container using |
We are installing it from this repository: https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/ |
After more testing it appears that the issue we are running into is the same that is discussed in #564 |
I'm glad to hear you solved it. I'll go ahead and close this then. Sorry no update on when we can support FIPS. To do it, we need to modernize how we sign the clamav CVD database archives and CDIFF database archive patch files. We have started planning it, but my teammate who is expected to work on it is still working on clamav-adjacent internal project and I'm unsure when he will be able to switch to work on this. |
Describe the bug
When we try and run a clamscan with ClamAV 1.0.4 for Enterprise Linux 9, we are running into the below errors. This works fine for us when using ClamAV 1.0.3 for Enterprise Linux 8.
LibClamAV Error: Can't load /var/lib/clamav/daily.cvd: Can't allocate memory
LibClamAV Error: cli_loaddbdir: error loading database /var/lib/clamav/daily.cvd
ERROR: Can't allocate memory
How to reproduce the problem
mkdir -p /tmp/test_virus
echo 'X5O!P%@ap[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*' > /tmp/test_virus/virus
sudo clamscan /tmp/test_virus
The text was updated successfully, but these errors were encountered: