#1014201 spamprobe hangs in libdb; use MySQL instead?

Package:
spamprobe
Source:
spamprobe
Description:
Bayesian spam filter
Submitter:
Frank Heckenbach
Date:
2026-10-21 21:51:02 UTC
Severity:
important
Tags:
#1014201#5
Date:
2022-07-01 22:35:00 UTC
From:
To:
I posted this upstream at https://sourceforge.net/p/spamprobe/bugs/40/, but as expected got no reaction there.

Is anyone here maintaining spamprobe anymore, or am I on my own?
---

I had used spamprobe for many years without major problems. But recently it started hanging.

strace shows it blocks on a futex call which is strange enough since it's single-threaded and no other instances were running at the same time.

Once it happens, it seems to happen every time. Rebuilding the database helped, but only for a short while. After few days, it would hang again.

gdb shows the offending calls come from some libdb functions. Since I don't feel like debugging libdb, and you might not either, this got me thinking if using a file-based DB such as Berkeley is really the best option here.

Using a DB server such as MySQL might, apart from hopefully avoiding such locking bugs, be better for performance since it doesn't have to load the whole DB on each invocation, but can cache it if used frequently, as it normally does.

I see a similar request was made recently (well, 17 years ago ;) in https://sourceforge.net/p/spamprobe/feature-requests/23/ (with yet another reason), but got no replies.

#1014201#10
Date:
2026-10-21 21:49:06 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
spamprobe, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1014201@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bastian Germann <bage@debian.org> (supplier of updated spamprobe package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 21 Oct 2026 23:33:03 +0200
Source: spamprobe
Architecture: source
Version: 1.4d-19
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Bastian Germann <bage@debian.org>
Closes: 1014201 1119222
Changes:
 spamprobe (1.4d-19) unstable; urgency=medium
 .
   * QA upload.
   * Build without Berkeley DB. (Closes: #1014201, #1119222)
Checksums-Sha1:
 851ce91636dcc06bfa226ce97fc47d9a17547368 1735 spamprobe_1.4d-19.dsc
 e3a6757fb4c7fcf6f1aeb6c690e0de081e9ddfac 35576 spamprobe_1.4d-19.debian.tar.xz
 0ea7cb1514ea72f25b1ce714736a83b3841cd692 5712 spamprobe_1.4d-19_source.buildinfo
Checksums-Sha256:
 6896ef645c88c3f26a498da7656aa1d6a88640d63deb06ed6446c68e137052ee 1735 spamprobe_1.4d-19.dsc
 570ad60e8c7360326b093ab5d3fdb3f7ebe93ba21a047081671a42b715b05308 35576 spamprobe_1.4d-19.debian.tar.xz
 0441f7fae4aff65702959c1603baaea77dc7597d4bb22f89c04bdab1c2b2a3ab 5712 spamprobe_1.4d-19_source.buildinfo
Files:
 7094cf1c6e94bdaffc7ae80b9adf1786 1735 mail optional spamprobe_1.4d-19.dsc
 65b6aa69f21af007995a6d25b49655eb 35576 mail optional spamprobe_1.4d-19.debian.tar.xz
 b7c414557b5b829ed601efe989e9bb1b 5712 mail optional spamprobe_1.4d-19_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmrZL9IQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFCkWC/41nG9BJVd8sGsjyAtUaPEXzh/lQQ/zDnt0
zRIM+1hocR83lHuUog4ky6hbLbDee7i9P8ZKgo3JhPFlU/wG7Ssbg+Mld9heb3pm
UMFLo5ctrsDlOEmePhsiZbWrocBUyvRkFGWRBO9+dQr6DS3NwG1hSzTpc9KQSXxF
pbFdlehrjTjAmruc7a2DPXHC4bn8/gTywtdhhMZ4uzMClABn5+dpYSQfaHfxLoHO
MO/RsGLBzGJL9KKGytAEL7voArB46rOmGVwN/ulwBrikgtmpVm0KUoFGMkmlBS+l
Ind+hX2q9c2h7lOV929qwzvPONuX3LB/yBrYx+TwLckqBRtp7inPJEE0t1FFdxAP
r2FYX2oYa65LVuwo/JwF3sJttv9bXw3NzIUb6al1mJIp6Yn9Zvj1jyHh1UAOMcbu
fdDTyQL5kxcfLm3xfPjvNMubdAGRUXbhtTcG2e3rNX9OAmMtWq8as3QzhTxfvTHr
XPxQu+x+jmVp23fnyXrma0b9phhEueQ=
=ZLZh
-----END PGP SIGNATURE-----