[clamav-users] Error: CRITICAL: fmap() failed
Ben Stuyts
ben at altesco.nl
Wed Mar 24 10:39:52 UTC 2021
Hello,
I found a file that is causing this:
# clamscan a
LibClamAV Warning: fmap: failed to get MD5
LibClamAV Error: CRITICAL: fmap() failed
/tmp/a: Can't allocate memory ERROR
top says:
Mem: 2393M Active, 4926M Inact, 152K Laundry, 8602M Wired, 1990M Free
Swap: 16G Total, 1892M Used, 14G Free, 11% Inuse
File ‘a’ is a 4.1 GB mbox file. This is a 64-bit FreeBSD system. So is ClamAV trying to mmap that whole file into memory? I can’t find any options to change this behaviour.
There are some bugzilla reports here, but it’s still open:
https://bugzilla.clamav.net/show_bug.cgi?id=10971 <https://bugzilla.clamav.net/show_bug.cgi?id=10971>
https://bugzilla.clamav.net/show_bug.cgi?id=12661 <https://bugzilla.clamav.net/show_bug.cgi?id=12661>
Ben
> On 11 Mar 2021, at 13:48, Ben Stuyts <ben at altesco.nl> wrote:
>
> Thanks Jim, I’ll try this.
>
> Ben
>
>
>> On 11 Mar 2021, at 13:10, Jim Simmons via clamav-users <clamav-users at lists.clamav.net> wrote:
>>
>> Use "-o" instead of "--infected" and then you'll proably want to filter out
>> any messages that end in ": Empty file" or ": Symbolic link".
>>
>> Jim
>>
>> On Thu, Mar 11, 2021 at 12:28:49PM +0100, Ben Stuyts wrote:
>>> Hello,
>>>
>>> I’m running a daily clamscan on my home directories, and lately I get this error message:
>>>
>>> LibClamAV Warning: fmap: failed to get MD5
>>> LibClamAV Error: CRITICAL: fmap() failed
>>>
>>> I can’t figure out what file clamav is having trouble with. The command I use is:
>>>
>>> /usr/bin/find [...] -print0 | xargs -0 /usr/local/bin/clamscan --infected --no-summary --official-db-only=yes
>>>
>>> Versions:
>>>
>>> Clam AntiVirus: Scanner 0.103.1
>>> Running on FreeBSD 12.2-RELEASE-p3 GENERIC amd64
>>>
>>> Any ideas?
>>>
>>> Ben
>>>
>>>
>>> _______________________________________________
>>>
>>> clamav-users mailing list
>>> clamav-users at lists.clamav.net
>>> https://lists.clamav.net/mailman/listinfo/clamav-users
>>>
>>>
>>> Help us build a comprehensive ClamAV guide:
>>> https://github.com/vrtadmin/clamav-faq
>>>
>>> http://www.clamav.net/contact.html#ml
>>
>> _______________________________________________
>>
>> clamav-users mailing list
>> clamav-users at lists.clamav.net
>> https://lists.clamav.net/mailman/listinfo/clamav-users
>>
>>
>> Help us build a comprehensive ClamAV guide:
>> https://github.com/vrtadmin/clamav-faq
>>
>> http://www.clamav.net/contact.html#ml
>>
>
>
> _______________________________________________
>
> clamav-users mailing list
> clamav-users at lists.clamav.net
> https://lists.clamav.net/mailman/listinfo/clamav-users
>
>
> Help us build a comprehensive ClamAV guide:
> https://github.com/vrtadmin/clamav-faq
>
> http://www.clamav.net/contact.html#ml
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clamav.net/pipermail/clamav-users/attachments/20210324/5ad7c053/attachment.htm>
More information about the clamav-users
mailing list