bogofilter/bogoutil concurrency crash?

David Relson relson at osagesoftware.com
Mon Apr 7 04:21:33 CEST 2003


Jim,

Nope.  It doesn't help.  The proper behavior is for the second bogofilter 
to wait for the first bogofilter to release the file lock.  If the lock 
isn't released in a while (see the code for the randomizing of wait times), 
the second bogofilter should give an error exit (which procmail will notice 
if you have the "errcode 75" check in your procmailrc).

The segfault you're getting from the manual run is (probably) the same as 
"make check" generates and is a locking problem on OS-X.

David


At 08:09 PM 4/6/03, Jim Correia wrote:

>>I can reproduce this at will by doing the following:
>>
>>In one terminal execute
>>
>>bogoutil -d goodlist.db | more
>>
>>leave that running, and in another do
>>
>>bogofilter -p
>>
>>bogofilter dies in the way described.
>
>Sorry for the confusion before. In writing up the bug I mis-described
>the steps required to reproduce it here (hopefully this is why David
>didn't see the bug and he'll now be able to reproduce it.)
>
>In one terminal execute
>
>bogoutil -d goodlist.db | more
>
>leave that running, and in another do
>
>bogofilter -n < test.msg
>
>Jim
>
>
>---------------------------------------------------------------------
>FAQ: http://bogofilter.sourceforge.net/bogofilter-faq.html
>To unsubscribe, e-mail: bogofilter-dev-unsubscribe at aotto.com
>For summary digest subscription: bogofilter-dev-digest-subscribe at aotto.com
>For more commands, e-mail: bogofilter-dev-help at aotto.com



Return-Path: <>
Delivered-To: relson at osagesoftware.com
Received: from sc8-sf-list1.sourceforge.net (lists.sourceforge.net [66.35.250.206])
	by osagesoftware.com (Postfix) with ESMTP id 7CE6627EC5
	for <relson at osagesoftware.com>; Sun,  6 Apr 2003 21:22:15 -0400 (EDT)
Received: from sc8-sf-sshgate.sourceforge.net ([66.35.250.220] helo=sc8-sf-netmisc.sourceforge.net)
	by sc8-sf-list1.sourceforge.net with esmtp 
	(Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian))
	id 191Flz-000144-00
	for <relson at users.sourceforge.net>; Thu, 03 Apr 2003 17:13:39 -0800
Received: from mail by sc8-sf-netmisc.sourceforge.net with local (Exim 3.36 #1 (Debian))
	id 191Flz-0004JW-00
	for <relson at users.sourceforge.net>; Thu, 03 Apr 2003 17:13:39 -0800
X-Failed-Recipients: bogofilter-cvs at lists.sourceforge.net
From: Mail Delivery System <Mailer-Daemon at sourceforge.net>
To: relson at users.sourceforge.net
Subject: Mail delivery failed: returning message to sender
Message-Id: <E191Flz-0004JW-00 at sc8-sf-netmisc.sourceforge.net>
Date: Thu, 03 Apr 2003 17:13:39 -0800

This message was created automatically by mail delivery software (Exim).

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  bogofilter-cvs at lists.sourceforge.net
    SMTP error from remote mailer after MAIL FROM:<relson at users.sourceforge.net> SIZE=2838:
    host mail.sourceforge.net [66.35.250.206]: 550-Envelope sender verification failed
    550 rejected: unknown local-part in sender <relson at users.sourceforge.net>

------ This is a copy of the message, including all the headers. ------

Return-path: <relson at users.sourceforge.net>
Received: from sc8-pr-cvs1-b.sourceforge.net ([10.5.1.7] helo=sc8-pr-cvs1.sourceforge.net)
	by sc8-sf-netmisc.sourceforge.net with esmtp (Exim 3.36 #1 (Debian))
	id 191Flz-0004JU-00
	for <bogofilter-cvs at lists.sourceforge.net>; Thu, 03 Apr 2003 17:13:39 -0800
Received: from localhost ([127.0.0.1] helo=sc8-pr-cvs1.sourceforge.net)
	by sc8-pr-cvs1.sourceforge.net with esmtp (Exim 3.22 #1 (Debian))
	id 191Fly-0000wk-00
	for <bogofilter-cvs at lists.sourceforge.net>; Thu, 03 Apr 2003 17:13:38 -0800
From: relson at users.sourceforge.net
To: bogofilter-cvs at lists.sourceforge.net
Subject: bogofilter NEWS,1.72,1.73
Message-Id: <E191Fly-0000wk-00 at sc8-pr-cvs1.sourceforge.net>
Date: Thu, 03 Apr 2003 17:13:38 -0800

Update of /cvsroot/bogofilter/bogofilter
In directory sc8-pr-cvs1:/tmp/cvs-serv3623

Modified Files:
	NEWS 
Log Message:
Correct typos.

Index: NEWS
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/NEWS,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -d -r1.72 -r1.73
--- NEWS	2 Apr 2003 00:31:16 -0000	1.72
+++ NEWS	4 Apr 2003 01:13:36 -0000	1.73
@@ -70,8 +70,8 @@
 	* The configuration file parser is stricter and more correct.
 	* Separated message registration options from unregistration
 	  options.  '-S' and '-N' have been changed and now just do
-	  unregistration.  To move a meessage from one wordlist to the
-	  other, use '-S -n' or '-N -S' (as appropriate)
+	  unregistration.  To move a message from one wordlist to the
+	  other, use '-S -n' or '-N -s' (as appropriate)
 	* Bogofilter's -p (passthrough) mode will no longer read the entire
 	  mail into memory if the standard input is a seekable regular file.
 	* Bogofilter's '-l' option was changed and no longer allows an




More information about the bogofilter-dev mailing list