You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Keith Hackworth <ke...@rpemail.com> on 2004/10/21 15:12:06 UTC

sa-learn --dump magic returns DB_File errors

I upgraded the last of our email servers last night to 3.0.0.  I had
everything working for a while, but I wanted to see how bayes was doing. 
I did a sa-learn --sync when I upgraded and I was able to do sa-learn
--dump all and see a bunch of md5(?) hashes with some statistics when I
ran sa-learn --dump magic.

Now when I run sa-learn --dump magic, I'm getting this error:
# sa-learn --dump magic
Use of uninitialized value in numeric gt (>) at
/usr/local/lib/perl5/5.8.4/sun4-solaris/DB_File.pm line 271.
Deep recursion on subroutine "DB_File::AUTOLOAD" at
/usr/local/lib/perl5/5.8.4/sun4-solaris/DB_File.pm line 234.

# sa-learn -D --dump magic
debug: SpamAssassin version 3.0.0
debug: Score set 0 chosen.
debug: running in taint mode? yes
debug: Running in taint mode, removing unsafe env vars, and resetting PATH
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/usr/ccs/bin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/usr/opt/SUNWmd/sbin', which doesn't exist, dropping.
debug: PATH included '/etc', keeping.
debug: PATH included '/usr/proc/bin', keeping.
debug: PATH included '/u01/oracle/orahome1/bin', keeping.
debug: PATH included '/usr/ucb', keeping.
debug: PATH included '/opt/gnu/bin', which doesn't exist, dropping.
debug: PATH included '/usr/ccs/bin', keeping.
debug: Final PATH set to:
/usr/local/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:/etc:/usr/proc/bin:/u01/oracle/orahome1/bin:/usr/ucb:/usr/ccs/bin
debug: using "/etc/mail/spamassassin/init.pre" for site rules init.pre
debug: config: read file /etc/mail/spamassassin/init.pre
debug: using "/usr/local/share/spamassassin" for default rules dir
debug: config: read file /usr/local/share/spamassassin/10_misc.cf
debug: config: read file /usr/local/share/spamassassin/20_anti_ratware.cf
debug: config: read file /usr/local/share/spamassassin/20_body_tests.cf
debug: config: read file /usr/local/share/spamassassin/20_compensate.cf
debug: config: read file /usr/local/share/spamassassin/20_dnsbl_tests.cf
debug: config: read file /usr/local/share/spamassassin/20_drugs.cf
debug: config: read file /usr/local/share/spamassassin/20_fake_helo_tests.cf
debug: config: read file /usr/local/share/spamassassin/20_head_tests.cf
debug: config: read file /usr/local/share/spamassassin/20_html_tests.cf
debug: config: read file /usr/local/share/spamassassin/20_meta_tests.cf
debug: config: read file /usr/local/share/spamassassin/20_phrases.cf
debug: config: read file /usr/local/share/spamassassin/20_porn.cf
debug: config: read file /usr/local/share/spamassassin/20_ratware.cf
debug: config: read file /usr/local/share/spamassassin/20_uri_tests.cf
debug: config: read file /usr/local/share/spamassassin/23_bayes.cf
debug: config: read file /usr/local/share/spamassassin/25_body_tests_es.cf
debug: config: read file /usr/local/share/spamassassin/25_hashcash.cf
debug: config: read file /usr/local/share/spamassassin/25_spf.cf
debug: config: read file /usr/local/share/spamassassin/25_uribl.cf
debug: config: read file /usr/local/share/spamassassin/30_text_de.cf
debug: config: read file /usr/local/share/spamassassin/30_text_fr.cf
debug: config: read file /usr/local/share/spamassassin/30_text_nl.cf
debug: config: read file /usr/local/share/spamassassin/30_text_pl.cf
debug: config: read file /usr/local/share/spamassassin/50_scores.cf
debug: config: read file /usr/local/share/spamassassin/60_whitelist.cf
debug: using "/etc/mail/spamassassin" for site rules dir
debug: config: read file /etc/mail/spamassassin/99_sare_adult.cf
debug: config: read file /etc/mail/spamassassin/chickenpox.cf
debug: config: read file /etc/mail/spamassassin/evilnumbers.cf
debug: config: read file /etc/mail/spamassassin/local.cf
debug: using "//.spamassassin/user_prefs" for user prefs file
debug: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
debug: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::Hashcash=HASH(0xd27d78)
debug: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0xd1ef0c)
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
implements 'parse_config'
debug: plugin: Mail::SpamAssassin::Plugin::Hashcash=HASH(0xd27d78)
implements 'parse_config'
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
inhibited further callbacks
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
inhibited further callbacks
debug: bayes: 19527 tie-ing to DB file R/O
/u01/amavisd/.spamassassin/bayes_toks
Use of uninitialized value in numeric gt (>) at
/usr/local/lib/perl5/5.8.4/sun4-solaris/DB_File.pm line 271.
Deep recursion on subroutine "DB_File::AUTOLOAD" at
/usr/local/lib/perl5/5.8.4/sun4-solaris/DB_File.pm line 234.

I'm running BerkeleyDB 4.2 with the latest DB_File from CPAN as of 4:00am
EST.

Has anyone seen this before?  Any suggestions/ideas?

This is VERY bad - email has totally stopped on that server.

Thanks in advanced!
Keith


Re: sa-learn --dump magic returns DB_File errors

Posted by Keith Hackworth <ke...@rpemail.com>.
> On Thu, 2004-10-21 at 10:41 -0400, Keith Hackworth wrote:
>> I figured this out.  In case someone else sees this problem, here's the
>> solution:
>>
>> The problem stemmed from DB_File.  I tried to recompile DB_File and it
>> failed during testing.  After a little goofing around, I figured out I
>> needed to set LD_LIBRARY_PATH during runtime.  This really sucks because
>> that means I have to wrap an environment setup script around all my
>> startup/restart scripts.
>>
>> The fix for that problem on my SUN Solaris 8 system was to do a "crle -l
>> /usr/lib -l /usr/local/lib".  Doing this permanently globally added a
>> library to the run time environment for any user.
>
> Never had to do that for my Solaris builds.  Sounds like you did not use
> LD_OPTIONS when you built things.
>
> Alex
> <maintainer of some Solaris packages from blastwave.org>
>
>
>
No, I did not.

Keith


Re: sa-learn --dump magic returns DB_File errors

Posted by Alex S Moore <as...@edge.net>.
On Thu, 2004-10-21 at 10:41 -0400, Keith Hackworth wrote:
> I figured this out.  In case someone else sees this problem, here's the
> solution:
> 
> The problem stemmed from DB_File.  I tried to recompile DB_File and it
> failed during testing.  After a little goofing around, I figured out I
> needed to set LD_LIBRARY_PATH during runtime.  This really sucks because
> that means I have to wrap an environment setup script around all my
> startup/restart scripts.
> 
> The fix for that problem on my SUN Solaris 8 system was to do a "crle -l
> /usr/lib -l /usr/local/lib".  Doing this permanently globally added a
> library to the run time environment for any user.

Never had to do that for my Solaris builds.  Sounds like you did not use
LD_OPTIONS when you built things.

Alex
<maintainer of some Solaris packages from blastwave.org>



Re: sa-learn --dump magic returns DB_File errors

Posted by Keith Hackworth <ke...@rpemail.com>.
I figured this out.  In case someone else sees this problem, here's the
solution:

The problem stemmed from DB_File.  I tried to recompile DB_File and it
failed during testing.  After a little goofing around, I figured out I
needed to set LD_LIBRARY_PATH during runtime.  This really sucks because
that means I have to wrap an environment setup script around all my
startup/restart scripts.

The fix for that problem on my SUN Solaris 8 system was to do a "crle -l
/usr/lib -l /usr/local/lib".  Doing this permanently globally added a
library to the run time environment for any user.

Keith

> I upgraded the last of our email servers last night to 3.0.0.  I had
> everything working for a while, but I wanted to see how bayes was doing.
> I did a sa-learn --sync when I upgraded and I was able to do sa-learn
> --dump all and see a bunch of md5(?) hashes with some statistics when I
> ran sa-learn --dump magic.
>
> Now when I run sa-learn --dump magic, I'm getting this error:
> # sa-learn --dump magic
> Use of uninitialized value in numeric gt (>) at
> /usr/local/lib/perl5/5.8.4/sun4-solaris/DB_File.pm line 271.
> Deep recursion on subroutine "DB_File::AUTOLOAD" at
> /usr/local/lib/perl5/5.8.4/sun4-solaris/DB_File.pm line 234.
>
> # sa-learn -D --dump magic
> debug: SpamAssassin version 3.0.0
> debug: Score set 0 chosen.
> debug: running in taint mode? yes
> debug: Running in taint mode, removing unsafe env vars, and resetting PATH
> debug: PATH included '/usr/local/bin', keeping.
> debug: PATH included '/usr/bin', keeping.
> debug: PATH included '/usr/ccs/bin', keeping.
> debug: PATH included '/usr/sbin', keeping.
> debug: PATH included '/usr/opt/SUNWmd/sbin', which doesn't exist,
> dropping.
> debug: PATH included '/etc', keeping.
> debug: PATH included '/usr/proc/bin', keeping.
> debug: PATH included '/u01/oracle/orahome1/bin', keeping.
> debug: PATH included '/usr/ucb', keeping.
> debug: PATH included '/opt/gnu/bin', which doesn't exist, dropping.
> debug: PATH included '/usr/ccs/bin', keeping.
> debug: Final PATH set to:
> /usr/local/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:/etc:/usr/proc/bin:/u01/oracle/orahome1/bin:/usr/ucb:/usr/ccs/bin
> debug: using "/etc/mail/spamassassin/init.pre" for site rules init.pre
> debug: config: read file /etc/mail/spamassassin/init.pre
> debug: using "/usr/local/share/spamassassin" for default rules dir
> debug: config: read file /usr/local/share/spamassassin/10_misc.cf
> debug: config: read file /usr/local/share/spamassassin/20_anti_ratware.cf
> debug: config: read file /usr/local/share/spamassassin/20_body_tests.cf
> debug: config: read file /usr/local/share/spamassassin/20_compensate.cf
> debug: config: read file /usr/local/share/spamassassin/20_dnsbl_tests.cf
> debug: config: read file /usr/local/share/spamassassin/20_drugs.cf
> debug: config: read file
> /usr/local/share/spamassassin/20_fake_helo_tests.cf
> debug: config: read file /usr/local/share/spamassassin/20_head_tests.cf
> debug: config: read file /usr/local/share/spamassassin/20_html_tests.cf
> debug: config: read file /usr/local/share/spamassassin/20_meta_tests.cf
> debug: config: read file /usr/local/share/spamassassin/20_phrases.cf
> debug: config: read file /usr/local/share/spamassassin/20_porn.cf
> debug: config: read file /usr/local/share/spamassassin/20_ratware.cf
> debug: config: read file /usr/local/share/spamassassin/20_uri_tests.cf
> debug: config: read file /usr/local/share/spamassassin/23_bayes.cf
> debug: config: read file /usr/local/share/spamassassin/25_body_tests_es.cf
> debug: config: read file /usr/local/share/spamassassin/25_hashcash.cf
> debug: config: read file /usr/local/share/spamassassin/25_spf.cf
> debug: config: read file /usr/local/share/spamassassin/25_uribl.cf
> debug: config: read file /usr/local/share/spamassassin/30_text_de.cf
> debug: config: read file /usr/local/share/spamassassin/30_text_fr.cf
> debug: config: read file /usr/local/share/spamassassin/30_text_nl.cf
> debug: config: read file /usr/local/share/spamassassin/30_text_pl.cf
> debug: config: read file /usr/local/share/spamassassin/50_scores.cf
> debug: config: read file /usr/local/share/spamassassin/60_whitelist.cf
> debug: using "/etc/mail/spamassassin" for site rules dir
> debug: config: read file /etc/mail/spamassassin/99_sare_adult.cf
> debug: config: read file /etc/mail/spamassassin/chickenpox.cf
> debug: config: read file /etc/mail/spamassassin/evilnumbers.cf
> debug: config: read file /etc/mail/spamassassin/local.cf
> debug: using "//.spamassassin/user_prefs" for user prefs file
> debug: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
> debug: plugin: registered
> Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
> debug: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
> debug: plugin: registered
> Mail::SpamAssassin::Plugin::Hashcash=HASH(0xd27d78)
> debug: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
> debug: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0xd1ef0c)
> debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
> implements 'parse_config'
> debug: plugin: Mail::SpamAssassin::Plugin::Hashcash=HASH(0xd27d78)
> implements 'parse_config'
> debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
> inhibited further callbacks
> debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
> inhibited further callbacks
> debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
> inhibited further callbacks
> debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
> inhibited further callbacks
> debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
> inhibited further callbacks
> debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
> inhibited further callbacks
> debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
> inhibited further callbacks
> debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xd438c4)
> inhibited further callbacks
> debug: bayes: 19527 tie-ing to DB file R/O
> /u01/amavisd/.spamassassin/bayes_toks
> Use of uninitialized value in numeric gt (>) at
> /usr/local/lib/perl5/5.8.4/sun4-solaris/DB_File.pm line 271.
> Deep recursion on subroutine "DB_File::AUTOLOAD" at
> /usr/local/lib/perl5/5.8.4/sun4-solaris/DB_File.pm line 234.
>
> I'm running BerkeleyDB 4.2 with the latest DB_File from CPAN as of 4:00am
> EST.
>
> Has anyone seen this before?  Any suggestions/ideas?
>
> This is VERY bad - email has totally stopped on that server.
>
> Thanks in advanced!
> Keith
>
>