[cbiedl at gmx.de: Bug#265069: bogofilter: segfaults when using ignore list option]

David Relson relson at osagesoftware.com
Wed Aug 11 18:15:42 CEST 2004


On Wed, 11 Aug 2004 12:04:31 -0400
Clint Adams wrote:

> ----- Forwarded message from Christoph Biedl <cbiedl at gmx.de> -----
> 
> Date: Wed, 11 Aug 2004 17:43:01 +0200
> From: Christoph Biedl <cbiedl at gmx.de>
> To: Debian Bug Tracking System <submit at bugs.debian.org>
> Subject: Bug#265069: bogofilter: segfaults when using ignore list
> option
> 
> Package: bogofilter
> Version: 0.92.4-1
> Severity: normal
> 
> When trying to tune my filtering mechanism I wanted to make use of the
> ignore list wordlist option. However, bogofilter stopped working then
> and some research revealed that just using that option cases a
> segfault.
> 
> how to repeat:
> # (copy'n'paste friendly edition :)
> mkdir /tmp/.bogofilter
> # initialize wordlist.db using an arbitrary message
> bogofilter -s -d /tmp/.bogofilter/ <bogo-test.msg                     
>        
> # initialize ignore.db
> echo foo | bogoutil -l /tmp/.bogofilter/ignore.db
> 
> # now do anything, e.g. config check
> bogofilter -d /tmp/.bogofilter/ '--wordlist=I,ignore,ignore.db,2' -Q
> # Segmentation fault

Hi Christoph,

I discovered this problem a couple of days ago and the cvs version of
bogofilter no longer segfaults.  What's happening is that you're giving
bogofilter only 1 list -- the ignore list.  It still needs to know about
the regular wordlist and was segfaulting because it didn't have one. 


My bogofilter.cf file has the following lines:

   wordlist i,ignore,ignore.db,1
   wordlist r,word,wordlist.db,2

You can put the equivalent lines on the command line.

The fix, i.e. complaining if no wordlist.db instead of segfaulting, will
be in the next release.

HTH,

David



More information about the bogofilter-dev mailing list