Find the answer to your Linux question:
Results 1 to 5 of 5
Hi folks, OpenVZ guest(VE) - OS, Ubuntu 8.04 Clamav-daemon On running; root@vz2:/# /etc/init.d/clamav-daemon start Code: * Starting ClamAV daemon clamd LibClamAV Warning: *********************************************************** LibClamAV Warning: *** This version of the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,808

    Segmentation fault - on starting clamav-daemon


    Hi folks,


    OpenVZ
    guest(VE) - OS, Ubuntu 8.04
    Clamav-daemon


    On running;

    root@vz2:/# /etc/init.d/clamav-daemon start
    Code:
     * Starting ClamAV daemon clamd                                                  
    LibClamAV Warning: ***********************************************************
    LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
    LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
    LibClamAV Warning: ***********************************************************
    LibClamAV Error: cli_realloc(): Can't re-allocate memory to 19784 bytes.
    realloc_problem: Cannot allocate memory
    LibClamAV Error: cli_ac_addpatt: Can't realloc ac_pattable
    LibClamAV Error: cli_parse_add(): Problem adding signature (1).
    LibClamAV Error: Problem parsing database at line 56181
    Segmentation fault			[fail]
    root@vz2:/# ls /tmp/
    Code:
    clamav-a0d562c1d717bbd7eddc575952c444a4
    root@vz2:/# ls /tmp/clamav-a0d562c1d717bbd7eddc575952c444a4/
    Code:
    COPYING  main.db  main.fp  main.hdb  main.info  main.mdb  main.ndb  main.zmd

    root@vz2:/# cat /etc/apt/sources.list
    Code:
    deb Index of /ubuntu hardy main restricted
    deb-src Index of /ubuntu hardy main restricted
    
    deb Index of /ubuntu hardy partner
    deb-src Index of /ubuntu hardy partner
    
    deb Index of /ubuntu hardy-security main restricted
    deb-src Index of /ubuntu hardy-security main restricted
    
    deb Index of /ubuntu hardy-backports main restricted universe multiverse
    deb-src Index of /ubuntu hardy-backports main restricted universe multiverse
    
    #deb Index of /ubuntu main restricted universe multiverse
    #deb-src Index of /ubuntu main restricted universe multiverse
    
    deb Index of /ubuntu hardy universe  #
    deb-src Index of /ubuntu hardy universe  #
    Please advice how to fix the problem? TIA


    B.R.
    satimis

  2. #2
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    try updating/reinstalling virus database
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,808
    Quote Originally Posted by b2bwild View Post
    try updating/reinstalling virus database
    Hi b2bwild,

    Thanks for your advice. Could you please explain in more detail how to do it?

    root@vz2:/# find / -name db -type d
    Code:
      
    /var/spool/exim4/db
    /var/lib/amavis/db

    root@vz2:/# ls /var/lib/amavis/db/
    Code:
    __db.001  __db.002  __db.003  __db.004  cache-expiry.db  cache.db  nanny.db  snmp.db
    TIA


    B.R.
    satimis

  4. #4
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    run $ sudo freshclam
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  5. #5
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,808
    Quote Originally Posted by b2bwild View Post
    run $ sudo freshclam
    Hi b2bwild,


    I did it before;


    root@vz2:/# rm -rf /var/lib/clamav/*
    No complaint


    root@vz2:/# apt-get update


    root@vz2:/# freshclam
    Code:
    ClamAV update process started at Fri May  8 23:49:10 2009
    WARNING: Your ClamAV installation is OUTDATED!
    WARNING: Local version: 0.94.2 Recommended version: 0.95.1
    DON'T PANIC! Read http://www.clamav.net/support/faq
    main.cvd is up to date (version: 50, sigs: 500667, f-level: 38, builder: sven)
    daily.cvd is up to date (version: 9347, sigs: 49124, f-level: 42, builder: ccordes)

    root@vz2:/# /etc/init.d/clamav-daemon stop
    Code:
     * Stopping ClamAV daemon clamd 			[fail]

    root@vz2:/# /etc/init.d/clamav-daemon start
    Code:
     * Starting ClamAV daemon clamd               
    LibClamAV Warning: ***********************************************************
    LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
    LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
    LibClamAV Warning: ***********************************************************
    LibClamAV Error: cli_realloc(): Can't re-allocate memory to 15384 bytes.
    realloc_problem: Cannot allocate memory
    LibClamAV Error: cli_ac_addpatt: Can't realloc ac_pattable
    LibClamAV Error: cli_parse_add(): Problem adding signature (3).
    LibClamAV Error: Problem parsing database at line 48390
    Segmentation fault

    Now I redo it.


    root@vz2:/# apt-get update


    root@vz2:/# freshclam
    Code:
    ClamAV update process started at Sun May 10 16:04:15 2009
    WARNING: Your ClamAV installation is OUTDATED!
    WARNING: Local version: 0.94.2 Recommended version: 0.95.1
    DON'T PANIC! Read http://www.clamav.net/support/faq
    main.cvd is up to date (version: 50, sigs: 500667, f-level: 38, builder: sven)
    daily.cld is up to date (version: 9350, sigs: 49149, f-level: 42, builder: guitar)

    root@vz2:/# /etc/init.d/clamav-daemon stop
    Code:
     * Stopping ClamAV daemon clamd                                 [fail]

    root@vz2:/# /etc/init.d/clamav-daemon start
    Code:
     * Starting ClamAV daemon clamd                                        
    LibClamAV Warning: ***********************************************************
    LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
    LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
    LibClamAV Warning: ***********************************************************
    LibClamAV Error: cli_realloc(): Can't re-allocate memory to 14608 bytes.
    realloc_problem: Cannot allocate memory
    LibClamAV Error: cli_ac_addpatt: Can't realloc ac_pattable
    LibClamAV Error: cli_parse_add(): Problem adding signature (1).
    LibClamAV Error: Problem parsing database at line 46225
    Segmentation fault				[fail]

    Tried again;


    root@vz2:/# rm -rf /var/lib/clamav/*

    root@vz2:/# apt-get update

    # freshclam
    Code:
    ClamAV update process started at Sun May 10 16:08:00 2009
    WARNING: Your ClamAV installation is OUTDATED!
    WARNING: Local version: 0.94.2 Recommended version: 0.95.1
    DON'T PANIC! Read http://www.clamav.net/support/faq
    Downloading main.cvd [100%]
    main.cvd updated (version: 50, sigs: 500667, f-level: 38, builder: sven)
    Downloading daily.cvd [100%]
    daily.cvd updated (version: 9350, sigs: 49149, f-level: 42, builder: guitar)
    WARNING: Your ClamAV installation is OUTDATED!
    WARNING: Current functionality level = 38, recommended = 42
    DON'T PANIC! Read http://www.clamav.net/support/faq
    Database updated (549816 signatures) from db.local.clamav.net (IP: 59.188.18.112)
    WARNING: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.ctl
    connect(): No such file or directory

    root@vz2:/# /etc/init.d/clamav-daemon stop
    Code:
     * Stopping ClamAV daemon clamd                                 [fail]

    root@vz2:/# /etc/init.d/clamav-daemon start
    Code:
     * Starting ClamAV daemon clamd                                        
    LibClamAV Warning: ***********************************************************
    LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
    LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
    LibClamAV Warning: ***********************************************************
    LibClamAV Error: cli_realloc(): Can't re-allocate memory to 11288 bytes.
    realloc_problem: Cannot allocate memory
    LibClamAV Error: cli_ac_addpatt: Can't realloc ac_pattable
    LibClamAV Error: cli_parse_add(): Problem adding signature (2).
    LibClamAV Error: Problem parsing database at line 46569
    Segmentation fault			[fail]

    Problem still remains.


    I hesitate whether the problem being accoutable to bugs on OpenVZ, first Shorewall, then Iptables and now Clamav-daemon. The first 2 problems are still unsolved.


    B.R.
    satimis

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •