Re: problem with clamav

From: Ion-Mihai Tetcu (itetcu_at_apropo.ro)
Date: 07/30/04

  • Next message: Logan Ashby: "Re: amavisd/clamav Virus Recipient email notification template woes"
    Date: Fri, 30 Jul 2004 22:30:15 +0300
    To: fred@bsdhost.net
    
    

    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"
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Logan Ashby: "Re: amavisd/clamav Virus Recipient email notification template woes"

    Relevant Pages

    • problem with clamav
      ... Since two days I have a problem with clamav. ... clogging my CPU. ... I have try to update the port. ... PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND ...
      (freebsd-questions)
    • oops in bttv
      ... ACPI: PM-Timer IO Port: 0x1008 ... ACPI: Local APIC address 0xfee00000 ... Enabling unmasked SIMD FPU exception support... ... CPU 0 irqstacks, hard=c0431000 soft=c042f000 ...
      (Linux-Kernel)
    • Myrinet 10GE performance on 7.0-CURRENT
      ... Client connecting to 192.168.1.1, UDP port 5001 ... <Enhanced SpeedStep Frequency Control> on cpu0 ... <CPU Frequency Thermal Control> on cpu0 ... <ACPI PCI bus> on pcib0 ...
      (freebsd-performance)
    • ahd driver on 4.9 has problem with more than 3 drives
      ... CPU: ... acpi0: on motherboard ... port 0xcf8-0xcff on ... 0xc000-0xc03f mem 0xfe980000-0xfe99ffff irq ...
      (freebsd-questions)
    • Panic going multi-user in beta 5
      ... CPU: IntelXeonCPU 2.80GHz ... <ACPI PCI bus> on pcib0 ... Driver version 1.50.01.002> port ... FILE SYSTEM CLEAN; SKIPPING CHECKS ...
      (freebsd-current)