Deep troubles with DB_File module

Pavel Zichovsky zichovsky at trul.cz
Mon Feb 13 14:48:35 GMT 2006


Hi there!

I have tried to install new SA from CLAMAV-SA pacakage on mailscanner.info

But I have got to problem with module DB_File, which results in completeley unresponsive system (only hard reset works), 


First during install I noticed this error on build and install of DB_File:
----------------------------------------------------
Attempting to build and install DB_File-1.810
Unpacking perl-tar/DB_File-1.810.tar.gz


Do not worry too much about errors from the next command.
It is quite likely that some of the Perl modules are
already installed on your system.

The important ones are Mail-ClamAV and Mail-SpamAssassin.

Parsing config.in...
Looks Good.
Checking if your kit is complete...
Looks good
Writing Makefile for DB_File
cp DB_File.pm blib/lib/DB_File.pm
AutoSplitting blib/lib/DB_File.pm (blib/lib/auto/DB_File)
gcc -c -I/usr/local/BerkeleyDB/include -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686   -DVERSION=\"1.810\"
-DXS_VERSION=\"1.810                      \" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE -D_NOT_CORE  -DmDB_Prefix_t=size_t
-DmDB_Hash_t=u_int32_t   version.c
version.c:30:16: db.h: is not file or directory
make: *** [version.o] Error 1

----------------------------------------------------
But script continued so I did not worry as it said above

Finaly when script started building SA package, there were these warnings: 
----------------------------------------------------
***************************************************************************
NOTE: the optional DB_File module is installed,
but is not an up-to-date version.

  Used to store data on-disk, for the Bayes-style logic and
  auto-whitelist.  *Much* more efficient than the other standard Perl
  database packages.  Strongly recommended.


***************************************************************************

optional module out of date: DB_File
optional module missing: Razor2
optional module missing: Net::Ident
optional module missing: IO::Socket::INET6
optional module missing: IO::Socket::SSL
optional module out of date: Getopt::Long

warning: some functionality may not be available,
please read the above report before continuing!
----------------------------------------------------

But when it started testing, something went terribly wrong: 
----------------------------------------------------
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 -e 'use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/basic_lint................[25595] warn: Use of uninitialized value in numeric ge (>=) at
/usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 271.
[25595] warn: Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 275.
[25595] warn: Deep recursion on subroutine "DB_File::AUTOLOAD" at /usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 234.
        Not found: anything =
t/basic_lint................FAILED test 1
        Failed 1/1 tests, 0.00% okay
t/bayesdbm_flock............skipped
        all skipped: no reason given
t/bayesdbm..................skipped
        all skipped: no reason given
t/bayessdbm_seen_delete.....ok
t/bayessdbm.................ok
t/bayessql..................skipped
        all skipped: no reason given
t/blacklist_autolearn.......[25648] warn: Use of uninitialized value in numeric ge (>=) at
/usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 271.
[25648] warn: Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 275.
[25648] warn: Deep recursion on subroutine "DB_File::AUTOLOAD" at /usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 234.
        Not found: blacklisted =  USER_IN_BLACKLIST
t/blacklist_autolearn.......FAILED tests 1-2
        Failed 2/3 tests, 33.33% okay
t/body_mod..................Use of uninitialized value in numeric ge (>=) at /usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 271.
Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 275.
Deep recursion on subroutine "DB_File::AUTOLOAD" at /usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 234.
t/body_mod..................dubious
        Test returned status 0 (wstat 15, 0xf)
DIED. FAILED tests 1-3
        Failed 3/3 tests, 0.00% okay
t/cidrs.....................ok
t/config_errs...............skipped
        all skipped: no reason given
t/db_awl_path...............FAILED test 3
        Failed 1/4 tests, 75.00% okay
t/db_based_whitelist_ips....[25753] warn: Use of uninitialized value in numeric ge (>=) at
/usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 271.
[25753] warn: Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 275.
[25753] warn: Deep recursion on subroutine "DB_File::AUTOLOAD" at /usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 234.
t/db_based_whitelist_ips....NOK 1[25757] warn: Use of uninitialized value in numeric ge (>=) at
/usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 271.
[25757] warn: Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 275.
[25757] warn: Deep recursion on subroutine "DB_File::AUTOLOAD" at /usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 234.
t/db_based_whitelist_ips....NOK 2[25761] warn: Use of uninitialized value in numeric ge (>=) at
/usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 271.
[25761] warn: Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 275.
[25761] warn: Deep recursion on subroutine "DB_File::AUTOLOAD" at /usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 234.
t/db_based_whitelist_ips....NOK 3[25793] warn: Use of uninitialized value in numeric ge (>=) at
/usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 271.
[25793] warn: Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 275.
[25793] warn: Deep recursion on subroutine "DB_File::AUTOLOAD" at /usr/lib/perl5/5.6.1/i386-linux/DB_File.pm line 234.
----------------------------------------------------
At this line server go stuck and stopped responding completely, all services (e.g. samba or httpd) were "dead".

After few minutes waiting for reecovery, I did hard reset, and server is now wotking OK. But I am afraid that when I'll install
again, it will got stuck as now.

Is there any way of correctly install working DB_File? Unfortunately I am not Perl or Linux "guru" so I am asking here to avoid
worse errors.  

Thanks in advance

With regards
Pavel Zichovsky (zichovsky at trul)
 



More information about the MailScanner mailing list