#86 Bogofilter times out and/or crashes?

closed-invalid
None
5
2004-11-12
2004-11-11
Joseph Reagle
No

I recently moved to "0.93.0-1 0" on Debian and when it
gets to the 22nd message in the following command it
stalls for about 7 seconds and reports a crash. Even if I
delete the first 30 messages from that mbox, it crashes
so I don't think it's a malformed message or some such
thing.

urd:/home/reagle> cat .junk | bogofilter -M -t -D -v
S 1.000000
S 1.000000
S 1.000000
S 1.000000
S 1.000000
S 0.999998
S 1.000000
S 1.000000
S 1.000000
S 1.000000
S 1.000000
S 1.000000
U 0.747583
S 1.000000
S 1.000000
U 0.938693
S 1.000000
S 1.000000
S 1.000000
S 1.000000
S 1.000000
bogofilter or related application has crashed or directory
damaged, aborting.urd

Discussion

  • Logged In: YES
    user_id=2788

    bogofilter 0.93.0 had a bug that prevented running recovery
    automatically. Please run recovery manually:
    bogoutil -f ~/.bogofilter
    This should print nothing.

    Then, when no bogofilter or bogoutil processes are running, run:
    db_verify ~/.bogofilter/wordlist.db
    If this prints errors, the database is corrupt and must
    either be dumped (try db_dump with -r option) and reloaded,
    restored from backup, or recreated from scratch. Note
    db_verify may raise a false alarm when it is run while write
    operations to the database are in progress.

    If that doesn't help, please add -xd -v to your bogofilter
    options to see if this comes up with further information
    that can help pinpoint the bug.

     
    • assigned_to: nobody --> m-a
     
  • Joseph Reagle
    Joseph Reagle
    2004-11-12

    Logged In: YES
    user_id=1141624

    Ah, crud, I just called my script 'nukem' (see below) which
    then caused bogofilter to crash. Could sticking the formail in
    there make a difference?

    urd:/home/reagle/data/2web/goatee.net/2003> nukem
    ~/Mail ~/data/2web/goatee.net/2003
    Lock table is out of available locks
    bogofilter: (db) db_set_dbvalue( 'plans' ), err: 12, Cannot
    allocate memory
    bogofilter: db_close called with transaction still open,
    program fault!
    ~/data/2web/goatee.net/2003

    [nukem]
    pushd ~/Mail

    cat A-Spam | formail -I "X-Bogosity" -s | bogofilter -M -s
    cat A-Spam | formail -I "X-Bogosity" -s | >> ~/.junk
    rm A-Spam A-Admin ; touch A-Spam A-Admin
    rm .A-Spam* .A-Admin* ;
    popd

     
    • status: open --> closed-invalid
     
  • Logged In: YES
    user_id=2788

    Please read doc/README.db and adjust DB_CONFIG as mentioned
    in sections 3.2 and 4.2, then run bogoutil -f.

    If the problem persists, you can reopen this bug.