[clamav-users] clamdscan big files problem
SR
srjunk1 at gmail.com
Fri Apr 25 14:35:59 UTC 2014
Hello everyone,
I have happily been using Clamav on our file server for more than a year now.
The scan of the different volumes is done by clamdscan which is ran
from cron jobs.
The problem that I am facing since a few weeks, is that the scans are
not performed to completion because clamdscan terminates with an error
that says: Can't allocate memory ERROR.
The error occurs on very large files (equal or bigger than the amount
of RAM in the server). Previously, I never had any problems with
these files as I assume clamdscan was skipping over them.
I tried to alter my clamd.conf file to specify a MaxScanSize and I
also set the ExitOnOOM option to false. But I was not successful. I
did restart clamav-daemon.
I experimented with the "CLI" clamscan "without the D", surprisingly,
although the same memory errors are reported the offending files are
ignored and the scan continues.
Here is the error message when the following command is ran:
clamscan -rv --debug /media/backup/inspiron/stephen/Documents/Nikon/Outlook/
Scanning /media/backup/inspiron/stephen/Documents/Nikon/Outlook/archive.pst
LibClamAV debug: in cli_magic_scandesc (reclevel: 0/16)
LibClamAV Warning: fmap: map allocation failed
LibClamAV Error: CRITICAL: fmap() failed
LibClamAV debug: cli_magic_scandesc: returning 20 at line 2932 (no
post, no cache)
/media/backup/inspiron/stephen/Documents/Nikon/Outlook/archive.pst:
Can't allocate memory ERROR
As mentioned before, clamscan seems to report the error and skip over
large files as opposed to clamDscan which to stop as soon as a large
file causing the memory allocation error is encountered.
If someone has explanations and/or recommendations, I would be glad to learn.
Best regards,
Stephen..
More information about the clamav-users
mailing list