[Pkg-clamav-devel] Bug#740059: clamav: LibClamAV Error: CRITICAL: fmap() failed

Edmund Lodewijks edmund at proteamail.com
Tue Dec 1 19:11:59 GMT 2026


On Fri, 11 Apr 2014 22:07:07 +0200 Sebastian Andrzej Siewior 
<sebastian at breakpoint.cc> wrote:
> tags 740059 + upstream
> forwarded 740059 https://bugzilla.clamav.net/show_bug.cgi?id=10971
> thanks
> 
> On 2014-03-15 20:37:01 [+0100], Sebastian Andrzej Siewior wrote:
> > On 2014-03-16 00:16:38 [+0700], Ста Деюс wrote:
> > > Здравствуй, Sebastian.
> ...

Looking at the 1.4.7 tarball, libclamav/fmap.c:393-416):

if (use_aging) {
     if ((m->data = (fmap_t *)mmap(NULL, mapsz,
             PROT_READ | PROT_WRITE, MAP_PRIVATE | ANONYMOUS_MAP,
             -1, 0)) == MAP_FAILED) {
         m->data = NULL;
     }
     ...
}
if (!use_aging) {
     m->data = (fmap_t *)cli_max_malloc(mapsz);
}

Doesn't this do sort of what you want? Yet, it still wouldn't work on a 
32-bit system? That would mean armhf, which is an officially supported 
Debian architecture. Not sure if this bug can be closed, since the issue 
is probably not resolved; but it also doesn't look like it will be?

For good measure, here's the Wayback Machine link to the original 
Forwared bug report:

https://web.archive.org/web/20230624112529/https://bugzilla.clamav.net/show_bug.cgi?id=10971


-- 
Edmund Lodewijks <edmund at proteamail.com>
TZ: UTC+2 / GMT+2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-clamav-devel/attachments/20261201/581c8bfc/attachment-0001.sig>


More information about the Pkg-clamav-devel mailing list