From owner-freebsd-questions@FreeBSD.ORG Thu May 20 22:45:11 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 372A5106564A for ; Thu, 20 May 2010 22:45:11 +0000 (UTC) (envelope-from Hans.F.Nordhaug@hiMolde.no) Received: from malle.himolde.no (malle.hiMolde.no [158.38.68.22]) by mx1.freebsd.org (Postfix) with ESMTP id B2B578FC0A for ; Thu, 20 May 2010 22:45:10 +0000 (UTC) Received: from harr.himolde.no (harr.hiMolde.no [158.38.68.20]) by malle.himolde.no (8.13.8/8.13.8) with ESMTP id o4KMj8tS016025 for ; Fri, 21 May 2010 00:45:08 +0200 Received: from harr.himolde.no (harr.himolde.no [127.0.0.1]) by harr.himolde.no (8.13.1/8.13.1) with ESMTP id o4KMj8VB007260 for ; Fri, 21 May 2010 00:45:08 +0200 Received: (from nordhaug@localhost) by harr.himolde.no (8.13.1/8.13.1/Submit) id o4KMj7Vu007259 for freebsd-questions@freebsd.org; Fri, 21 May 2010 00:45:07 +0200 Date: Fri, 21 May 2010 00:45:07 +0200 From: "Hans F. Nordhaug" To: freebsd-questions@freebsd.org Message-ID: <20100520224507.GA6783@hiMolde.no> References: <20100429205840.GA14031@hiMolde.no> <20100429210849.GA14524@hiMolde.no> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20100429210849.GA14524@hiMolde.no> User-Agent: Mutt/1.4.1i Subject: Re: amavisd - exited on signal 11 - FreeBSD 8 with Perl 5.10 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2010 22:45:11 -0000 * Hans F. Nordhaug [2010-04-29]: > * Hans F. Nordhaug [2010-04-29]: > > Hi! > > > > I have been happily running Postfix with amavisd-new (and Clamav > > and SpamAssassin) on FreeBSD 7 with Perl 5.8 for a long time. > > Recently, I upgraded to FreeBSD 8 and rebuilt all ports (after > > updating). Suddenly I saw many > > kernel: pid xxxxx (perl), uid 110: exited on signal 11 > > lines in /var/log/messages and mailq returns some messages > > with comments like: > > > > (lost connection with 127.0.0.1[127.0.0.1] while sending end > > of data -- message may be sent more than once) Cutting a lot of debug statements here - see http://lists.freebsd.org/pipermail/freebsd-questions/2010-April/215759.html for my complete original messages I finally found the problem - the spamassassin bayes db. For some reason Perl (or really spamassassin) exited on signal 11 when reading the bayes db. The reason it took my so long to find the problem was: 1) I was lazy and in stead of testing with su vscan -c 'spamassassin -D -t < msg.txt' as recommended, I just ran spamassassin -D -t < msg.txt as root. The later command didn't exit with signal 11, while the first did - it stopped after [...] check: pms new, time limit in 293.202 s locker: mode is 384 locker: safe_lock: created /var/amavis/.spamassassin/bayes.mutex locker: safe_lock: trying to get lock on /var/amavis/.spamassassin/bayes with 10 timeout locker: safe_lock: link to /var/amavis/.spamassassin/bayes.mutex: link ok bayes: tie-ing to DB file R/W /var/amavis/.spamassassin/bayes_toks bayes: tie-ing to DB file R/W /var/amavis/.spamassassin/bayes_seen bayes: found bayes db version 3 2) The debug in /var/log/maillog (as posted in my earlier messages) was [...] bayes: tie-ing to DB file R/W /var/amavis/.spamassassin/bayes_toks bayes: tie-ing to DB file R/W /var/amavis/.spamassassin/bayes_seen bayes: found bayes db version 3 locker: refresh_lock: refresh /var/amavis/.spamassassin/bayes.lock It didn't stop at the same point - "bayes: found bayes db version 3". 3) sa-learn didn't report any problems with the bayes db. Anyway, the solution was simple - "rm -rf /var/amavis/.spamassassin/*". I guess I should have asked on the amavisd mailing list, but at least this is documented here now for other FreeBSD users that get this problem after upgrading from Perl 5.8 to 5.10. Regards, Hans Nordhaug