Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jul 2004 22:30:15 +0300
From:      Ion-Mihai Tetcu <itetcu@apropo.ro>
To:        fred@bsdhost.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: problem with clamav
Message-ID:  <20040730223015.58d5b496@it.buh.tecnik93.com>
In-Reply-To: <A874363C-E251-11D8-A8AB-000A9575BCC8@bsdhost.net>
References:  <A874363C-E251-11D8-A8AB-000A9575BCC8@bsdhost.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 30 Jul 2004 19:55:35 +0200
fred@bsdhost.net wrote:

> 
> Hello,
> 
> Since two days I have a problem with clamav. The daemon clamd is 
> clogging my CPU.
> I have try to update the port. I have tryed the devel version in the 
> ports. I have also tryed the snapshot from clamav and the problem is 
> still here.
> 
> # top
> ...
>    PID USERNAME PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
>   2122 clamav    60   0  9512K  8168K RUN      6:27 95.80% 95.80% clamd
> ...
> 
> I am running 4.10.
> 
> Does someone experiance this or have already seen this ?

I believe this diff against  devel-20040728 would resolve your problem:

 --- matcher-bm.c.bk   Mon Jul 19 13:54:40 2004
 +++ matcher-bm.c        Thu Jul 29 21:59:42 2004
 @@ -91,11 +91,27 @@

   void cli_bm_free(struct cl_node *root)
   {7
 +    struct cli_bm_patt *b1, *b2;
 +    int i;
 +
       if(root->bm_shift)
          free(root->bm_shift);

 -    if(root->bm_suffix)
 +    if(root->bm_suffix) {
 +       for(i = 0; i < 65536; i++) {
 +           b1 = root->bm_suffix[i];
 +           while(b1) {
 +               b2 = b1;
 +               b1 = b1->next;
 +               if (b2->virname)
 +                   free(b2->virname);
 +               if (b2->pattern)
 +                   free(b2->pattern);
 +               free(b2);
 +           }
 +       }
          free(root->bm_suffix);
 +    }
   }

   int cli_bm_scanbuff(const char *buffer, unsigned int length, const char **virname, const struct cl_node *root)





-- 
IOnut
Unregistered ;) FreeBSD "user"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040730223015.58d5b496>