[clamav-users] Libclamav :: Issue with version 0.98.4 on FC20 - Can't load /usr/local/share/clamav/daily.cvd: Can't allocate memory

Shawn Webb swebb at sourcefire.com
Fri Aug 8 13:52:20 UTC 2014


On Fri, Aug 8, 2014 at 8:44 AM, Chinmay Mahata <
chinmay_mahata at rediffmail.com> wrote:

> Hi,
>     I need to use clamav library in one of my modules. I
> downloaded latest version of clamav (clamav-0.98.tar.gz) and installed on
> my system FC-20. Then I built the code in example directory and tired to
> test my installation.
>
> But getting some error "LibClamAV Error: Can't load
> /usr/local/share/clamav/daily.cvd: Can't allocate memory".
>
>     Please help me to resolve the issue. Below the problem in
> details.
>
>
> SYSTEM :: Linux HOME 3.15.7-200.fc20.x86_64 #1 SMP Mon Jul 28 18:50:26 UTC
> 2014 x86_64 x86_64 x86_64 GNU/Linux
> OPENSSL VERSION :: OpenSSL 1.0.1e-fips 11 Feb 2013
>
> CLAMAV SRC :: clamav-0.98.tar.gz
>
> INSTALATION PROCEDURE (as root)
> ============================
> $>./configure
> $>make
> $>make install
> $>freshclam -uroot
>
>
> Built successfully (as root user) ex1.c (added cl_debug() ) in the
> examples directory.
>         $>gcc -Wall ex1.c -o ex1
> -lclamav
>
> To scan one file, run the following command as "root" user.
>          $>./ex1
> /home/TESTDIR/yum.sh
>
>
> Got the following error ::
>
> LibClamAV debug: Initialized 0.98.4 engine
> LibClamAV debug: Initializing phishcheck module
> LibClamAV debug: Phishcheck: Compiling regex: ^
> *(http|https|ftp:(//)?)?[0-9]{1,3}(\.[0-9]{1,3}){3}[/?:]? *$
> LibClamAV debug: Phishcheck module initialized
> LibClamAV debug: Bytecode initialized in JIT mode
> LibClamAV debug: Loading databases from /usr/local/share/clamav
> LibClamAV debug: in cli_cvdload()
> LibClamAV debug: cli_cvdverify: Cannot generate hash, out of memory
> LibClamAV Error: Can't load /usr/local/share/clamav/daily.cvd: Can't
> allocate memory
> LibClamAV debug: Cleaning up phishcheck
> LibClamAV debug: Freeing phishcheck struct
> LibClamAV debug: Phishcheck cleaned up
> cl_load: Can't allocate memory
>
>
> Additionally below some sections of "clamconf" command ouput.
>
> Software settings
> -----------------
> Version: 0.98.4
> Optional features supported: MEMPOOL IPv6 AUTOIT_EA06 RAR JIT
>
> Database information
> --------------------
> Database directory: /usr/local/share/clamav
> daily.cvd: version 19268, sigs: 1089156, built on Thu Aug  7 23:53:44
> 2014
> main.cvd: version 55, sigs: 2424225, built on Tue Sep 17 20:27:28 2013
> bytecode.cvd: version 242, sigs: 46, built on Wed Jun 25 03:51:59 2014
> Total number of signatures: 3513427
>
> Platform information
> --------------------
> uname: Linux 3.15.7-200.fc20.x86_64 #1 SMP Mon Jul 28 18:50:26 UTC 2014
> x86_64
> OS: linux-gnu, ARCH: x86_64, CPU: x86_64
> zlib version: 1.2.8 (1.2.8), compile flags: a9
> Triple: x86_64-unknown-linux-gnu
> CPU: i686, Little-endian
> platform id: 0x0a214d4d0804080303040803
>
> Build information
> -----------------
> GNU C: 4.8.3 20140624 (Red Hat 4.8.3-1) (4.8.3)
> GNU C++: 4.8.3 20140624 (Red Hat 4.8.3-1) (4.8.3)
> CPPFLAGS:
> CFLAGS: -g -O2 -fno-strict-aliasing -D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE
> CXXFLAGS:
> LDFLAGS:
> Configure: --enable-ltdl-convenience
> sizeof(void*) = 8
> Engine flevel: 77, dconf: 77
>
>
>
> Let me know if you need some more information.
>
> Thanks in advance.
> Regards,
> --Chinmay
>

How much memory is installed on your system? Does this problem happen with
ClamAV 0.98.1?

Thanks,

Shawn



More information about the clamav-users mailing list