program failures of spamassassin - SpamAssassin

This is a discussion on program failures of spamassassin - SpamAssassin ; hi, i call spamassassin diretly from procmail like so: :0fw |/usr/bin/spamassassin -D #|/usr/bin/spamassassin -D 2>/dev/null (i recently started looking at debug info again to try and solve this problem without much luck). my procmail log file is full of entries ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: program failures of spamassassin

  1. program failures of spamassassin

    hi,

    i call spamassassin diretly from procmail like so:

    :0fw
    |/usr/bin/spamassassin -D
    #|/usr/bin/spamassassin -D 2>/dev/null

    (i recently started looking at debug info again to try and solve this
    problem without much luck).

    my procmail log file is full of entries like this:

    procmail: Program failure (-25) of "/usr/bin/spamassassin"
    procmail: Rescue of unfiltered data succeeded
    From kezunlq@eastday.com Fri May 30 09:09:45 2008
    Subject: RE: Customize the email list for you - 498485
    Folder: /var/mail/jon 1332

    sometimes the program failure error codes are different:

    procmail: Program failure (153) of "/usr/bin/spamassassin -D 2>/dev/
    null"
    procmail: Program failure (139) of "/usr/bin/spamassassin -D 2>/dev/
    null"


    the message in question inevitably gets through to my inbox. in the
    last few months this has gotten out of control to the point where i'm
    seeing 40-50 of these a day. if i put these messages into their own
    folder and try to run sa-learn on them i get a coredump:

    Core was generated by `/usr/bin/perl -T -w /usr/bin/sa-learn --spam --
    mbox mail/foreign'.
    Program terminated with signal 11, Segmentation fault.
    #0 0x0054de4b in __memp_fput () from /lib/libdb-4.3.so
    (gdb) bt
    #0 0x0054de4b in __memp_fput () from /lib/libdb-4.3.so
    #1 0x00517cd3 in __db_free () from /lib/libdb-4.3.so
    #2 0x004cd112 in __ham_split_page () from /lib/libdb-4.3.so
    #3 0x004c2982 in __ham_quick_delete () from /lib/libdb-4.3.so
    #4 0x0050e968 in __db_c_put () from /lib/libdb-4.3.so
    #5 0x0050803b in __db_put () from /lib/libdb-4.3.so
    #6 0x0051441f in __db_put_pp () from /lib/libdb-4.3.so
    #7 0x00f56a47 in XS_DB_File_STORE ()
    from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/DB_File/
    DB_File.so
    #8 0x009b647d in Perl_pp_entersub ()
    from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
    #9 0x009af8df in Perl_runops_standard ()
    from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
    #10 0x0094ffee in Perl_magicname ()
    from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
    #11 0x00954670 in Perl_call_sv ()
    from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
    #12 0x009569e6 in Perl_call_method ()
    from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
    #13 0x009a47ff in Perl_magic_scalarpack ()
    from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
    #14 0x009a4b7b in Perl_magic_setpack ()
    from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
    #15 0x009a6572 in Perl_mg_set ()
    from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
    #16 0x009b5761 in Perl_pp_sassign ()
    from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
    #17 0x009af8df in Perl_runops_standard ()
    from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
    #18 0x00954f13 in perl_run ()
    from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
    #19 0x080491ee in main ()

    anyone have any ideas here? i'm running:

    [jon@opiate ~]$ spamassassin --version
    SpamAssassin version 3.2.4
    running on Perl version 5.8.8
    [jon@opiate ~]$ cat /etc/redhat-release
    CentOS release 5 (Final)

    thanks,

    -jon

    "There are no differences but differences of degree between different
    degrees
    of difference and no difference."
    - James, William. "Subjective Effects of Nitrous Oxide." Mind. 1882;
    Vol 7.


  2. Re: program failures of spamassassin

    On Fri, 2008-05-30 at 09:35 -0700, jon schatz wrote:
    > hi,
    >
    > i call spamassassin diretly from procmail like so:
    >
    > :0fw
    > |/usr/bin/spamassassin -D
    > #|/usr/bin/spamassassin -D 2>/dev/null


    Why do you use the SA *debug* switch in procmail?

    FWIW, output on STDERR may cause procmail to lose the F from the
    envelope From_ line. This may or may not be related -- I'd remove the -D
    anyway, unless you got a really good reason to do so...


    > (i recently started looking at debug info again to try and solve this
    > problem without much luck).
    >
    > my procmail log file is full of entries like this:

    [...]

    > the message in question inevitably gets through to my inbox. in the
    > last few months this has gotten out of control to the point where i'm
    > seeing 40-50 of these a day.


    These are the failures only. Assuming more spam than that, plus
    filtering of ham. I'd suggest using spamc/d instead of starting a full
    spamassassin process for each message. This will tradeoff some constant
    memory consumption, for the benefit of avoiding a severe startup
    penalty.


    > if i put these messages into their own
    > folder and try to run sa-learn on them i get a coredump:
    >
    > Core was generated by `/usr/bin/perl -T -w /usr/bin/sa-learn --spam --
    > mbox mail/foreign'.
    > Program terminated with signal 11, Segmentation fault.
    > #0 0x0054de4b in __memp_fput () from /lib/libdb-4.3.so


    Berkeley DB.

    > (gdb) bt
    > #0 0x0054de4b in __memp_fput () from /lib/libdb-4.3.so
    > #1 0x00517cd3 in __db_free () from /lib/libdb-4.3.so
    > #2 0x004cd112 in __ham_split_page () from /lib/libdb-4.3.so
    > #3 0x004c2982 in __ham_quick_delete () from /lib/libdb-4.3.so
    > #4 0x0050e968 in __db_c_put () from /lib/libdb-4.3.so
    > #5 0x0050803b in __db_put () from /lib/libdb-4.3.so
    > #6 0x0051441f in __db_put_pp () from /lib/libdb-4.3.so
    > #7 0x00f56a47 in XS_DB_File_STORE ()
    > from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/DB_File/DB_File.so


    Berkeley DB.


    > anyone have any ideas here? i'm running:
    >
    > [jon@opiate ~]$ spamassassin --version
    > SpamAssassin version 3.2.4
    > running on Perl version 5.8.8
    > [jon@opiate ~]$ cat /etc/redhat-release
    > CentOS release 5 (Final)


    Issues with your distros Berkeley DB? Any updates / fixes available?

    Problems with the existing (users or sitewide) Bayes or AWL database
    being corrupted? In that case, try starting fresh, moving these. If it
    turns out to not be the issue, swap it back in.

    guenther


    --
    char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a \x10\xf4\xf4\xc4";
    main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}


+ Reply to Thread