OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003804 [pm_tt2] regular use minor always 2009-07-30 23:24 2009-08-11 11:14
Reporter arw View Status public  
Assigned To bonivart
Priority normal Resolution fixed  
Status closed  
Summary 0003804: DB_File problems: spamassassin broken
Description Using spamassassin or the sa-learn component of spamassassin emits warnings about unitialized values in DB_File.pm and DB problems (see additional info for output).

I suspect the recent berkeleydb updates may be the cause. Perhaps rebuilding perl against the new version 4.7 would help?

Additional Information Use of uninitialized value in numeric ge (>=) at /opt/csw/lib/perl/5.8.8/DB_File.pm line 271.
Use of uninitialized value in numeric gt (>) at /opt/csw/lib/perl/5.8.8/DB_File.pm line 275.
DB environment not configured for transactions
DB->get_multiple: method not permitted before handle's open method
bayes: cannot open bayes databases /home/cip/adm/snalwuer/.spamassassin/bayes_* R/O: tie failed:
Use of uninitialized value in numeric ge (>=) at /opt/csw/lib/perl/5.8.8/DB_File.pm line 271.
Use of uninitialized value in numeric gt (>) at /opt/csw/lib/perl/5.8.8/DB_File.pm line 275.
DB environment not configured for transactions
DB->get_multiple: method not permitted before handle's open method
bayes: cannot open bayes databases /home/cip/adm/snalwuer/.spamassassin/bayes_* R/W: tie failed: No such file or directory
Use of uninitialized value in numeric ge (>=) at /opt/csw/lib/perl/5.8.8/DB_File.pm line 271.
Use of uninitialized value in numeric gt (>) at /opt/csw/lib/perl/5.8.8/DB_File.pm line 275.
DB environment not configured for transactions
DB->get_multiple: method not permitted before handle's open method
bayes: cannot open bayes databases /home/cip/adm/snalwuer/.spamassassin/bayes_* R/W: tie failed: No such file or directory
Use of uninitialized value in numeric ge (>=) at /opt/csw/lib/perl/5.8.8/DB_File.pm line 271.
Use of uninitialized value in numeric gt (>) at /opt/csw/lib/perl/5.8.8/DB_File.pm line 275.
DB environment not configured for transactions
DB->get_multiple: method not permitted before handle's open method
bayes: cannot open bayes databases /home/cip/adm/snalwuer/.spamassassin/bayes_* R/W: tie failed: No such file or directory
Learned tokens from 0 message(s) (1 message(s) examined)
ERROR: the Bayes learn function returned an error, please re-run with -D for more information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0006497)
cbellomy (reporter)
2009-08-02 20:29

I see the same issue under Sparc Solaris 8, plus spamd dumps core with a FLTBOUNDS condition. I can supply a core file upon request.
(0006504)
bonivart (developer)
2009-08-05 16:25
edited on: 2009-08-05 16:26

Please test the new Perl packages in testing:

http://mirror.opencsw.org/testing.html [^]

http://mirror.opencsw.org/testing/perl-5.8.8,REV=2009.08.05-SunOS5.8-sparc-CSW.pkg.gz [^]
http://mirror.opencsw.org/testing/perl-5.8.8,REV=2009.08.05-SunOS5.8-i386-CSW.pkg.gz [^]
http://mirror.opencsw.org/testing/perldoc-5.8.8,REV=2009.08.05-SunOS5.8-all-CSW.pkg.gz [^]

They are linked against BerkeleyDB 4.7.

(0006508)
bonivart (developer)
2009-08-05 16:48

Before updates (no bdb):

CSWbdb44 4.4.20,REV=2009.03.17 4.4.20,REV=2009.07.28

# sa-learn --dump=magic
0.000 0 3 0 non-token data: bayes db version
0.000 0 0 0 non-token data: nspam
0.000 0 38 0 non-token data: nham
0.000 0 554 0 non-token data: ntokens
0.000 0 1220462544 0 non-token data: oldest atime
0.000 0 1221810862 0 non-token data: newest atime
0.000 0 0 0 non-token data: last journal sync atime
0.000 0 0 0 non-token data: last expiry atime
0.000 0 0 0 non-token data: last expire atime delta
0.000 0 0 0 non-token data: last expire reduction count

After upgrading bdb and bdb44:

CSWbdb 4.7.25,REV=2009.07.01 SAME
CSWbdb44 4.4.20,REV=2009.07.28 SAME

# sa-learn --dump=magic
Use of uninitialized value in numeric ge (>=) at /opt/csw/lib/perl/5.8.8/DB_File.pm line 271.
Use of uninitialized value in numeric gt (>) at /opt/csw/lib/perl/5.8.8/DB_File.pm line 275.
Segmentation Fault (core dumped)

After upgrading to Perl from testing:

CSWperl 5.8.8,REV=2009.08.05 5.8.8,REV=2008.10.08

# sa-learn --dump=magic
0.000 0 3 0 non-token data: bayes db version
0.000 0 0 0 non-token data: nspam
0.000 0 38 0 non-token data: nham
0.000 0 554 0 non-token data: ntokens
0.000 0 1220462544 0 non-token data: oldest atime
0.000 0 1221810862 0 non-token data: newest atime
0.000 0 0 0 non-token data: last journal sync atime
0.000 0 0 0 non-token data: last expiry atime
0.000 0 0 0 non-token data: last expire atime delta
0.000 0 0 0 non-token data: last expire reduction count
(0006546)
arw (reporter)
2009-08-10 12:24

I can confirm, that the new perl from testing fixes the problem on my system (uname -a: SunOS faui03 5.10 Generic_141415-05 i86pc i386 i86pc)
(0006552)
bonivart (developer)
2009-08-11 11:14

New Perl package released.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker