bogoutil question

Eric Wood eric at interplas.com
Tue Jan 30 15:56:13 CET 2007


----- Original Message ----- 
From: "R Kimber"
>> If either verification method ("bogoutil --db-verify" or
>> "db_verify") indicates a problem, I'd recommend rebuilding your
>> database.  This can be done with bogoutil, i.e.
>
> So I need to test it with both commands?

bogoutil must be broke....

Even though bogoutil links (ldd said so) in the same libdb4.3 library as 
does db_verify, the amount of processing done by bogoutil is too quick.
bogoutil may be relying on the existance of old db files whereas it 
shouldn't.

-Eric Wood


Stracing yeilded:

open("/root/.bogofilter.cf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file 
or
directory)
stat64("./wordlist.db", {st_mode=S_IFREG|0666, st_size=167936000, ...}) = 0
stat64("./wordlist.db", {st_mode=S_IFREG|0666, st_size=167936000, ...}) = 0
open("/proc/stat", O_RDONLY)            = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7
fae000
read(3, "cpu  16889 10664 9082 6703765 44"..., 1024) = 669
read(3, "", 1024)                       = 0
close(3)                                = 0
munmap(0xb7fae000, 4096)                = 0
stat64("./DB_CONFIG", 0xbf8ed4dc)       = -1 ENOENT (No such file or 
directory)
open("./DB_CONFIG", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or 
directory
)
stat64("/var/tmp", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
stat64("./__db.001", 0xbf8ed55c)        = -1 ENOENT (No such file or 
directory)
open("./__db.001", O_RDWR|O_LARGEFILE)  = -1 ENOENT (No such file or 
directory)
open("./__db.001", O_RDWR|O_LARGEFILE)  = -1 ENOENT (No such file or 
directory)
open("./__db.001", O_RDWR|O_LARGEFILE)  = -1 ENOENT (No such file or 
directory)
open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents64(3, /* 7 entries */, 4096)    = 208
getdents64(3, /* 0 entries */, 4096)    = 0
close(3)                                = 0
stat64("./wordlist.db", {st_mode=S_IFREG|0666, st_size=167936000, ...}) = 0
exit_group(0)                           = ?
Process 13777 detached



# time /usr/bin/bogoutil --db-verify wordlist.db

real    0m0.002s
user    0m0.001s
sys     0m0.002s

# time /usr/bin/db_verify wordlist.db

real    0m7.085s
user    0m4.058s
sys     0m1.919s

Running Fedora Core 6. 




More information about the Bogofilter mailing list