From owner-freebsd-questions Mon Jul 8 15:20:16 2002 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 E013B37B400; Mon, 8 Jul 2002 15:20:09 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3113043E4A; Mon, 8 Jul 2002 15:20:09 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.5/8.12.5) id g68MK4Pf010981; Mon, 8 Jul 2002 17:20:04 -0500 (CDT) (envelope-from dan) Date: Mon, 8 Jul 2002 17:20:04 -0500 From: Dan Nelson To: Joe Talbott Cc: Pete Carah , stable@FreeBSD.ORG, questions@FreeBSD.ORG Subject: Re: Hang problem with spamass-milter... Message-ID: <20020708222004.GB13884@dan.emsphone.com> References: <200207081952.g68JqB55059730@ns.altadena.net> <20020708200747.GA82041@dan.emsphone.com> <20020708210236.GA65659@copper.eng.cstone.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020708210236.GA65659@copper.eng.cstone.net> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Jul 08), Joe Talbott said: > On Mon, Jul 08, 2002 at 03:07:47PM -0500, Dan Nelson wrote: > > You sure this is the trigger, and not an email over 250k? An unpatched > > spamass-milter will definitely hang on any email that spamc decides is > > too big to process (250k default). There are patches at > > http://savannah.gnu.org/projects/spamass-milt/ that fix this problem > > and add some more functionality ( see patches 349, 351, 354, 381, 385 ). > > Most of the patches require a CVS checkout, though, which is probably > > why the port doesn't include them. > > I applied patch 349 to the port and reinstalled. I'm still having issues > with multiple mails coming in at approximately the same time hanging > spamass-milter/spamc. > > To repeat: > > for i in `jot 10 1`; do > echo "test $i" | mail -s "test $i" email@dom.com > done Works for me. I changed `jot 10 1` to `jot 100 1` and after some chugging, got all 100 messages. With patch 349 applied, the milter uses a select() loop in the part of the code where it needs to both read and write from spamc, so I can't see where it would deadlock. I have some changes to patch 349 that adds a '-d' flag to log a debugging message to every function in the program; I'll CC you when I update the copy on savannah. It's possible you're seeing some sort of threading bug on -stable; I have only tested on -current. > I also applied patch 372 which didn't solve the problem. 372 just sets all the sockets to non-blocking, which will cause buzz-loops, and adds some other bugs that make it not 8-bit clean for incoming messages. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message