Re: problem with clamav

2004-07-31 Thread fred
Thanks a lot this seems to work fine now.
Fred
On Jul 30, 2004, at 9:30 PM, Ion-Mihai Tetcu wrote:
On Fri, 30 Jul 2004 19:55:35 +0200
[EMAIL PROTECTED] 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  SIZERES STATETIME   WCPUCPU 
COMMAND
  2122 clamav60   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.cThu 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"

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: problem with clamav

2004-07-30 Thread Ion-Mihai Tetcu
On Fri, 30 Jul 2004 19:55:35 +0200
[EMAIL PROTECTED] 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  SIZERES STATETIME   WCPUCPU COMMAND
>   2122 clamav60   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.cThu 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"

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


problem with clamav

2004-07-30 Thread fred
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  SIZERES STATETIME   WCPUCPU COMMAND
 2122 clamav60   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 ?
Fred
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"