Bug#281052: bogofilter: error building wordlists

David Relson relson at osagesoftware.com
Sun Nov 14 05:11:39 CET 2004


On Sat, 13 Nov 2004 22:22:19 -0500
Neil Roeth wrote:

> On Nov 13, Clint Adams (schizo at debian.org) wrote:
>  > On Sat, Nov 13, 2004 at 10:20:38AM -0500, Neil Roeth wrote:
>  > > Package: bogofilter
>  > > Version: 0.93.1-1
>  > > Severity: important
>  > > 
>  > > After installing this new version and reading the NEWS that
>  > > explained the new db format, I attempted to rebuild my wordlists
>  > > by reading in a bunch of mail folders to bogofilter using the -n
>  > > or -s option depending on the folder, with no other options
>  > > specified.  I got the following error:
>  > > 
>  > > Lock table is out of available locks
>  > > bogofilter: (db) db_set_dbvalue( 'tactics' ), err: 12, Cannot
>  > > allocate memory bogofilter: db_close called with transaction
>  > > still open, program fault!
>  > > 
>  > > This occurred while reading a 3.5MB folder, after having read
>  > > approximately 60MB of folders.  I then cleared out the
>  > > .bogofilter directory, where my old wordlists were located, and
>  > > that allowed the wordlist building to make further progress, but
>  > > it still eventually died with the same error.
>  > 
>  > Are you using any of the db_ config file options?
> 
> I've downgraded to 0.92, but my /etc/bogofilter.cf has only commented
> out db_ options, I have no ~/.bogofilter.cf file, and I did not use
> any command line options other than -n or -s.  I made no changes
> whatsoever to the configuration when I upgraded to 0.93 and
> encountered the problem, just upgraded and immediately tried to
> regenerate the wordlist db.  FYI, with 0.92, my wordlist db is about
> 100MB.
> 
> -- 
> Neil Roeth

Hi Neil,

As stated at the beginning of /etc/bogofilter.cf, default values are
preceded by a single hash mark.  To enable numeric valued parameters,
remove the hash mark.  You can then experiment with different values to
see what works.

Twin hash marks are used to show alternate values.

The "Lock table" messages are described briefly in the FAQ (at
http://www.bogofilter.org/faq.php and at
http://bogofilter.sourceforge.net/faq.php) and in detail in the
README.db file.

The message indicates you ran out of available locks.  The reason would
be that you have a large database.  The solution is to increase the
number of locks.

Please read the RELEASE.NOTES and README.db!!!

HTH,

David



More information about the bogofilter-dev mailing list