On Thu, Mar 25, 2004 at 06:11:05PM -0800, Todd Lyons wrote: > On Thu, 2004-03-25 at 08:36, Claudio Alonso wrote: > > Hi, > > Yesterday I installed clamav-0.70rc-1 from rpm on my RedHat 9.0 (kernel > > 2.4.20-30.9) and started > > clamd just to test it's current stability > > The computer was on all night and today I found the following in the rotated logs: > > Thu Mar 25 04:02:33 2004 -> No stats for Database check - forcing reload > > Thu Mar 25 04:02:35 2004 -> Reading databases from /var/lib/clamav > > Thu Mar 25 04:02:36 2004 -> Segmentation fault :-( Bye.. > > I've been looking in the archives and found some segmentation problems with this > > version but I'm > > not using milter and my logs don't refer to any "accept() failed" nor > > "pthread_create failed" (nor > > in this log nor in the previous before rotate, which only shows "SIGHUP caught: > > re-opening log > > file." before rotate. > > You probably saw some of my issues. I'm using RH 9.0 as well and have > problems with spamd SegFaulting. I personally think it's pthread > related, but have zero data to back it up. On my system, clamd handles > 20K or 30K messages in about 12 hours and then dies. I upgraded to 0.70 > cvs on Tuesday. clamd stopped segfaulting, but would lock up and > clamav-milter would then die. I've had to disable it until I figure out > what to do to make it stable. > > I'd love to figure out what's causing this. > > Blue skies... Todd >
Hi Todd, Have you ever made any progress with your problem? I'm pretty sure I'm hitting the same thing; 0.70rc, RH 9, though I'm using exim with the exiscan patch instead of sendmail. Clamd will run for anywhere from 1 minute to an hour and segfault. I tried setting the LD_ASSUME_KERNEL env var as I saw in one of your previous posts, but now clamd seems to lock up after a while instead of segfaulting -- not sure if you were still using LD_ASSUME_KERNEL when you described the same thing above. Attached is debug output from two different runs when clamd segfaulted. -- // Miles Davis - [EMAIL PROTECTED] - http://www.cs.stanford.edu/~miles // Computer Science Department - Computer Facilities // Stanford University
LibClamAV debug: Scanning /var/spool/exim/scan/1B8TC0-0004fo-DJ/1B8TC0-0004fo-DJ.eml LibClamAV debug: Recognized Raw mail file LibClamAV debug: Starting cli_scanmail() LibClamAV debug: in mbox() LibClamAV debug: Deal with header Received: from smtp2.stanford.edu ([171.67.16.116]) LibClamAV debug: parseEmailHeader 'Received: from smtp2.stanford.edu ([171.67.16.116])' LibClamAV debug: parseMimeHeader: cmd='Received', arg=' from smtp2.stanford.edu ([171.67.16.116])' LibClamAV debug: Discarding unwanted argument 'by cs1.Stanford.EDU with esmtp (Exim 4.30)' LibClamAV debug: Discarding unwanted argument 'id 1B8TC0-0004fo-DJ' LibClamAV debug: Discarding unwanted argument 'Tue, 30 Mar 2004 16' LibClamAV debug: Discarding unwanted argument '02' LibClamAV debug: Discarding unwanted argument '52 -0800' LibClamAV debug: Deal with header Received: from bases.Stanford.EDU (bases.Stanford.EDU [171.64.94.131]) LibClamAV debug: parseEmailHeader 'Received: from bases.Stanford.EDU (bases.Stanford.EDU [171.64.94.131])' LibClamAV debug: parseMimeHeader: cmd='Received', arg=' from bases.Stanford.EDU (bases.Stanford.EDU [171.64.94.131])' LibClamAV debug: Discarding unwanted argument 'by smtp2.Stanford.EDU (8.12.11/8.12.11) with ESMTP id i2U3mwEE002022' LibClamAV debug: Discarding unwanted argument 'Mon, 29 Mar 2004 19:48:58 -0800' LibClamAV debug: Deal with header Received: from smtp3.Stanford.EDU (smtp3.Stanford.EDU [171.67.16.117]) LibClamAV debug: parseEmailHeader 'Received: from smtp3.Stanford.EDU (smtp3.Stanford.EDU [171.67.16.117])' LibClamAV debug: parseMimeHeader: cmd='Received', arg=' from smtp3.Stanford.EDU (smtp3.Stanford.EDU [171.67.16.117])' LibClamAV debug: Discarding unwanted argument 'by bases.Stanford.EDU (8.11.6/8.11.6) with ESMTP id i2U3mcD20284' LibClamAV debug: Discarding unwanted argument 'Mon, 29 Mar 2004 19:48:39 -0800' LibClamAV debug: Deal with header Received: from bases-lists.stanford.edu (bases-lists.Stanford.EDU [171.64.94.132]) LibClamAV debug: parseEmailHeader 'Received: from bases-lists.stanford.edu (bases-lists.Stanford.EDU [171.64.94.132])' LibClamAV debug: parseMimeHeader: cmd='Received', arg=' from bases-lists.stanford.edu (bases-lists.Stanford.EDU [171.64.94.132])' LibClamAV debug: Discarding unwanted argument 'by smtp3.Stanford.EDU (8.12.11/8.12.11) with ESMTP id i2U3mkbm011979' LibClamAV debug: Discarding unwanted argument 'Mon, 29 Mar 2004 19:48:46 -0800' LibClamAV debug: Deal with header Received: from bases-lists.stanford.edu (localhost.localdomain [127.0.0.1]) LibClamAV debug: parseEmailHeader 'Received: from bases-lists.stanford.edu (localhost.localdomain [127.0.0.1])' LibClamAV debug: parseMimeHeader: cmd='Received', arg=' from bases-lists.stanford.edu (localhost.localdomain [127.0.0.1])' LibClamAV debug: Discarding unwanted argument 'by bases-lists.stanford.edu (8.11.6/8.11.6) with ESMTP id i2U3n1P08657' LibClamAV debug: Discarding unwanted argument 'Mon, 29 Mar 2004 19:49:01 -0800' LibClamAV debug: Deal with header Received: from m80.126.com ([202.108.45.80]) LibClamAV debug: parseEmailHeader 'Received: from m80.126.com ([202.108.45.80])'LibClamAV debug: parseMimeHeader: cmd='Received', arg=' from m80.126.com ([202.108.45.80])' LibClamAV debug: Discarding unwanted argument 'by bases-lists.stanford.edu (8.11.6/8.11.6) with SMTP id i2U3mSP08647' LibClamAV debug: Discarding unwanted argument 'for <[EMAIL PROTECTED]>' LibClamAV debug: Discarding unwanted argument 'Mon, 29 Mar 2004 19' LibClamAV debug: Discarding unwanted argument '48' LibClamAV debug: Discarding unwanted argument '28 -0800' LibClamAV debug: Deal with header Message-Id: <[EMAIL PROTECTED]> LibClamAV debug: parseEmailHeader 'Message-Id: <[EMAIL PROTECTED]>' LibClamAV debug: parseMimeHeader: cmd='Message-Id', arg=' <[EMAIL PROTECTED]>' LibClamAV debug: Deal with header From: [EMAIL PROTECTED] LibClamAV debug: parseEmailHeader 'From: [EMAIL PROTECTED]' LibClamAV debug: parseMimeHeader: cmd='From', arg=' [EMAIL PROTECTED]' LibClamAV debug: Deal with header To: [EMAIL PROTECTED] LibClamAV debug: parseEmailHeader 'To: [EMAIL PROTECTED]' LibClamAV debug: parseMimeHeader: cmd='To', arg=' [EMAIL PROTECTED]' LibClamAV debug: Deal with header Subject: ÏÍ???? LibClamAV debug: parseEmailHeader 'Subject:' LibClamAV debug: Deal with header Content-Type: Multipart/Mixed; LibClamAV debug: parseEmailHeader 'Content-Type: Multipart/Mixed;' LibClamAV debug: parseMimeHeader: cmd='Content-Type', arg=' Multipart/Mixed;' LibClamAV debug: messageSetMimeType: ' Multipart' LibClamAV debug: Add argument 'boundary="------------Boundary-00=_PLEDL954GR0BHARCCJD0"' LibClamAV debug: Deal with header Content-Transfer-Encoding: 8bit LibClamAV debug: parseEmailHeader 'Content-Transfer-Encoding: 8bit' LibClamAV debug: parseMimeHeader: cmd='Content-Transfer-Encoding', arg=' 8bit' LibClamAV debug: Encoding type is "8bit" LibClamAV debug: Deal with header Date: Tue, 30 Mar 2004 11:49:01 +0800 (CST) LibClamAV debug: parseEmailHeader 'Date: Tue, 30 Mar 2004 11:49:01 +0800 (CST)' LibClamAV debug: parseMimeHeader: cmd='Date', arg=' Tue, 30 Mar 2004 11:49:01 +0800 (CST)' LibClamAV debug: Deal with header Sender: [EMAIL PROTECTED] LibClamAV debug: parseEmailHeader 'Sender: [EMAIL PROTECTED]'LibClamAV debug: parseMimeHeader: cmd='Sender', arg=' [EMAIL PROTECTED]' LibClamAV debug: Deal with header Errors-To: [EMAIL PROTECTED] LibClamAV debug: parseEmailHeader 'Errors-To: [EMAIL PROTECTED]' LibClamAV debug: parseMimeHeader: cmd='Errors-To', arg=' [EMAIL PROTECTED]' LibClamAV debug: Deal with header X-BeenThere: [EMAIL PROTECTED] LibClamAV debug: parseEmailHeader 'X-BeenThere: [EMAIL PROTECTED]' LibClamAV debug: parseMimeHeader: cmd='X-BeenThere', arg=' [EMAIL PROTECTED]' LibClamAV debug: Deal with header X-Mailman-Version: 2.0.13 LibClamAV debug: parseEmailHeader 'X-Mailman-Version: 2.0.13' LibClamAV debug: parseMimeHeader: cmd='X-Mailman-Version', arg=' 2.0.13' LibClamAV debug: Deal with header Precedence: bulk LibClamAV debug: parseEmailHeader 'Precedence: bulk' LibClamAV debug: parseMimeHeader: cmd='Precedence', arg=' bulk' LibClamAV debug: Deal with header List-Help: <mailto:[EMAIL PROTECTED]> LibClamAV debug: parseEmailHeader 'List-Help: <mailto:[EMAIL PROTECTED]>' LibClamAV debug: parseMimeHeader: cmd='List-Help', arg=' <mailto:[EMAIL PROTECTED]>' LibClamAV debug: Deal with header List-Post: <mailto:[EMAIL PROTECTED]> LibClamAV debug: parseEmailHeader 'List-Post: <mailto:[EMAIL PROTECTED]>' LibClamAV debug: parseMimeHeader: cmd='List-Post', arg=' <mailto:[EMAIL PROTECTED]>' LibClamAV debug: Deal with header List-Subscribe: <http://bases-lists.stanford.edu/mailman/listinfo/bases>, LibClamAV debug: parseEmailHeader 'List-Subscribe: <http://bases-lists.stanford.edu/mailman/listinfo/bases>,' LibClamAV debug: parseMimeHeader: cmd='List-Subscribe', arg=' <http://bases-lists.stanford.edu/mailman/listinfo/bases>,' LibClamAV debug: Discarding unwanted argument '<mailto:[EMAIL PROTECTED]>' LibClamAV debug: Deal with header List-Id: BASES Member Mailing List <bases.bases-lists.stanford.edu> LibClamAV debug: parseEmailHeader 'List-Id: BASES Member Mailing List <bases.bases-lists.stanford.edu>' LibClamAV debug: parseMimeHeader: cmd='List-Id', arg=' BASES Member Mailing List <bases.bases-lists.stanford.edu>' LibClamAV debug: Deal with header List-Unsubscribe: <http://bases-lists.stanford.edu/mailman/listinfo/bases>, LibClamAV debug: parseEmailHeader 'List-Unsubscribe: <http://bases-lists.stanford.edu/mailman/listinfo/bases>,' LibClamAV debug: parseMimeHeader: cmd='List-Unsubscribe', arg=' <http://bases-lists.stanford.edu/mailman/listinfo/bases>,' LibClamAV debug: Discarding unwanted argument '<mailto:[EMAIL PROTECTED]>' LibClamAV debug: Deal with header List-Archive: <http://bases-lists.stanford.edu/pipermail/bases/> LibClamAV debug: parseEmailHeader 'List-Archive: <http://bases-lists.stanford.edu/pipermail/bases/>' LibClamAV debug: parseMimeHeader: cmd='List-Archive', arg=' <http://bases-lists.stanford.edu/pipermail/bases/>' LibClamAV debug: Deal with header LibClamAV debug: End of header information LibClamAV debug: parseEmailHeaders: calling textDestroy LibClamAV debug: parseEmailHeaders: return LibClamAV debug: in parseEmailBody(nBlobs = 0) LibClamAV debug: Parsing mail file LibClamAV debug: mimeType = 5 LibClamAV debug: found ------------Boundary-00=_PLEDL954GR0BHARCCJD0 in --------------Boundary-00=_PLEDL954GR0BHARCCJD0 LibClamAV debug: Now read in part 0 LibClamAV debug: parseEmailHeader 'Content-Type: Text/Plain' LibClamAV debug: parseMimeHeader: cmd='Content-Type', arg=' Text/Plain' LibClamAV debug: messageSetMimeType: ' Text' LibClamAV debug: parseEmailHeader 'Content-Transfer-Encoding: base64' LibClamAV debug: parseMimeHeader: cmd='Content-Transfer-Encoding', arg=' base64'LibClamAV debug: Encoding type is "base64" LibClamAV debug: parseEmailHeader 'Content-Disposition: ' LibClamAV debug: parseMimeHeader: cmd='Content-Disposition', arg=' '
LibClamAV debug: Scanning /tmp/01b543fd611853d2/textportion0TChv9 LibClamAV debug: Scanning /var/spool/exim/scan/1B8TjS-0006mV-Kk/1B8TjS-0006mV-Kk-00000 LibClamAV debug: Scanning /var/spool/exim/scan/1B8TjS-0006mX-NE/1B8TjS-0006mX-NE.eml LibClamAV debug: Recognized Raw mail file LibClamAV debug: Starting cli_scanmail() LibClamAV debug: in mbox() LibClamAV debug: Deal with header Received: from dns.etmnet.com ([216.12.210.21]) LibClamAV debug: parseEmailHeader 'Received: from dns.etmnet.com ([216.12.210.21])' LibClamAV debug: parseMimeHeader: cmd='Received', arg=' from dns.etmnet.com ([216.12.210.21])' LibClamAV debug: Discarding unwanted argument 'by cs1.Stanford.EDU with esmtp (Exim 4.30)' LibClamAV debug: Discarding unwanted argument 'id 1B8TjS-0006mX-NE' LibClamAV debug: Discarding unwanted argument 'for [EMAIL PROTECTED]' LibClamAV debug: Discarding unwanted argument 'Tue, 30 Mar 2004 16' LibClamAV debug: Discarding unwanted argument '37' LibClamAV debug: Discarding unwanted argument '26 -0800' LibClamAV debug: Deal with header Received: from m180.163.com ([202.108.44.180])LibClamAV debug: parseEmailHeader 'Received: from m180.163.com ([202.108.44.180])' LibClamAV debug: parseMimeHeader: cmd='Received', arg=' from m180.163.com ([202.108.44.180])' LibClamAV debug: Discarding unwanted argument 'by dns.etmnet.com (8.10.2-SOL3/8.10.2) with SMTP id i2U44Ar06027' LibClamAV debug: Discarding unwanted argument 'for <[EMAIL PROTECTED]>' LibClamAV debug: Discarding unwanted argument 'Mon, 29 Mar 2004 23' LibClamAV debug: Discarding unwanted argument '04' LibClamAV debug: Discarding unwanted argument '10 -0500' LibClamAV debug: Deal with header Message-Id: <[EMAIL PROTECTED]> LibClamAV debug: parseEmailHeader 'Message-Id: <[EMAIL PROTECTED]>' LibClamAV debug: parseMimeHeader: cmd='Message-Id', arg=' <[EMAIL PROTECTED]>' LibClamAV debug: Deal with header From: [EMAIL PROTECTED] LibClamAV debug: parseEmailHeader 'From: [EMAIL PROTECTED]' LibClamAV debug: parseMimeHeader: cmd='From', arg=' [EMAIL PROTECTED]' LibClamAV debug: Deal with header To: [EMAIL PROTECTED] LibClamAV debug: parseEmailHeader 'To: [EMAIL PROTECTED]' LibClamAV debug: parseMimeHeader: cmd='To', arg=' [EMAIL PROTECTED]' LibClamAV debug: Deal with header Subject: ÏÍ???? LibClamAV debug: parseEmailHeader 'Subject:' LibClamAV debug: Deal with header Content-Type: Multipart/Mixed; LibClamAV debug: parseEmailHeader 'Content-Type: Multipart/Mixed;' LibClamAV debug: parseMimeHeader: cmd='Content-Type', arg=' Multipart/Mixed;' LibClamAV debug: messageSetMimeType: ' Multipart' LibClamAV debug: Add argument 'boundary="------------Boundary-00=_ZAFDTEWPJKAS4GE66RO0"' LibClamAV debug: Deal with header Content-Transfer-Encoding: 8bit LibClamAV debug: parseEmailHeader 'Content-Transfer-Encoding: 8bit' LibClamAV debug: parseMimeHeader: cmd='Content-Transfer-Encoding', arg=' 8bit' LibClamAV debug: Encoding type is "8bit" LibClamAV debug: Deal with header Date: Tue, 30 Mar 2004 12:04:11 +0800 (CST) LibClamAV debug: parseEmailHeader 'Date: Tue, 30 Mar 2004 12:04:11 +0800 (CST)' LibClamAV debug: parseMimeHeader: cmd='Date', arg=' Tue, 30 Mar 2004 12:04:11 +0800 (CST)' LibClamAV debug: Deal with header LibClamAV debug: End of header information LibClamAV debug: parseEmailHeaders: calling textDestroy LibClamAV debug: parseEmailHeaders: return LibClamAV debug: in parseEmailBody(nBlobs = 0) LibClamAV debug: Parsing mail file LibClamAV debug: mimeType = 5 LibClamAV debug: found ------------Boundary-00=_ZAFDTEWPJKAS4GE66RO0 in --------------Boundary-00=_ZAFDTEWPJKAS4GE66RO0 LibClamAV debug: Now read in part 0 LibClamAV debug: parseEmailHeader 'Content-Type: Text/Plain' LibClamAV debug: parseMimeHeader: cmd='Content-Type', arg=' Text/Plain' LibClamAV debug: messageSetMimeType: ' Text' LibClamAV debug: parseEmailHeader 'Content-Transfer-Encoding: base64' LibClamAV debug: parseMimeHeader: cmd='Content-Transfer-Encoding', arg=' base64'LibClamAV debug: Encoding type is "base64" LibClamAV debug: parseEmailHeader 'Content-Disposition: ' LibClamAV debug: parseMimeHeader: cmd='Content-Disposition', arg=' '