Mantis - pm_tt2
Viewing Issue Advanced Details
3804 regular use minor always 2009-07-30 23:24 2009-08-11 11:14
arw  
bonivart  
normal  
closed  
fixed  
none    
none  
0003804: DB_File problems: spamassassin broken
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?

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
Issue History
2009-07-30 23:24 arw New Issue
2009-07-31 13:58 arw Issue Monitored: arw
2009-08-02 20:29 cbellomy Note Added: 0006497
2009-08-05 16:24 bonivart Status new => assigned
2009-08-05 16:24 bonivart Assigned To => bonivart
2009-08-05 16:25 bonivart Note Added: 0006504
2009-08-05 16:26 bonivart Note Edited: 0006504
2009-08-05 16:48 bonivart Note Added: 0006508
2009-08-10 12:24 arw Note Added: 0006546
2009-08-11 11:14 bonivart Note Added: 0006552
2009-08-11 11:14 bonivart Status assigned => closed
2009-08-11 11:14 bonivart Resolution open => fixed
2009-08-17 16:26 arw Issue End Monitor: arw

Notes
(0006497)
cbellomy   
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   
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   
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   
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   
2009-08-11 11:14   
New Perl package released.