From owner-freebsd-questions@FreeBSD.ORG Sat Jul 31 11:45:41 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 01B9916A4CE for ; Sat, 31 Jul 2004 11:45:41 +0000 (GMT) Received: from host.bsdhost.net (host.bsdhost.net [66.160.134.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id C509D43D69 for ; Sat, 31 Jul 2004 11:45:40 +0000 (GMT) (envelope-from fred@bsdhost.net) Received: from beaujon-1-81-57-7-31.fbx.proxad.net ([81.57.7.31] helo=[172.16.1.3]) by host.bsdhost.net with asmtp (Exim 4.32; FreeBSD) id 1Bqs9J-000JXl-BI; Sat, 31 Jul 2004 04:35:37 -0700 In-Reply-To: <20040730223015.58d5b496@it.buh.tecnik93.com> References: <20040730223015.58d5b496@it.buh.tecnik93.com> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <13E1AF86-E2E7-11D8-82CD-000A9575BCC8@bsdhost.net> Content-Transfer-Encoding: 7bit From: fred@bsdhost.net Date: Sat, 31 Jul 2004 13:45:10 +0200 To: Ion-Mihai Tetcu X-Mailer: Apple Mail (2.618) cc: freebsd-questions@freebsd.org Subject: Re: problem with clamav X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jul 2004 11:45:41 -0000 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 > 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" > >