Bug 303 - [Debian 143321] Database locking problems?
Summary: [Debian 143321] Database locking problems?
Status: RESOLVED WORKSFORME
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Libraries (show other bugs)
Version: SVN Trunk (Latest Devel Version)
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: SpamAssassin Developer Mailing List
URL: http://bugs.debian.org/143321
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-10 17:13 UTC by Duncan Findlay
Modified: 2002-05-10 10:39 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan Findlay 2002-05-10 17:13:13 UTC
From: Radim Kolar <hsn@cybermail.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: spamassassin: problems with reliability and auto-whitelist
Date: Wed, 17 Apr 2002 19:01:05 +0200


Package: spamassassin
Version: 2.11-4
Severity: normal

We are running spamd -a -d here and we are experience constant problems
with auto-whitelisting feature. It looks like some locking problem (all
filesystems mounted are local). After use auto-white list grows to some
bigger size - about 200-300 KB per user. spamd in better case ignores
all autowhitelist entries or locks up. Deleting user-whitelist helps.

So problem is that ndbm files which are in use as db hash by Perl
default gets corrupted. 

My wish item is to change spamassassin code to use db2 or db3 which
should be more reliable.

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux home 2.4.18 #1 Wed Apr 10 14:43:06 CEST 2002 i586
Locale: LANG=C, LC_CTYPE=C

Versions of packages spamassassin depends on:
ii  dpkg                          1.9.19     Package maintenance system for Deb
ii  perl                          5.6.1-7    Larry Wall's Practical Extraction 
ii  perl-modules                  5.6.1-7    Core Perl modules.
Comment 1 Craig Hughes 2002-05-10 18:39:55 UTC
bash2.05 craig@balam ~/.spamassassin % file auto-whitelist.db 
auto-whitelist.db: Berkeley DB Hash file (Version 2, Big Endian, Bucket Size 4096, Bucket Shift 12, 
Directory Size 256, Segment Size 256, Segment Shift 8, Overflow Point 1, Last Freed 2, Max 
Bucket 1, High Mask 0x3, Low Mask 0x1, Fill Factor 40, Number of Keys 4)


Perhaps you should just make your Perl use the DB system you want as its default for AnyDB_File?