Hallo Adrian,
There were a number of patches published for BDB 4.2.52. Without these patches berkeley env starts to hang if cachesize (that's what you set in DB_CONFIG) is too small.
Although people here do not suggest to use BDB 4.3.X, I do use it and don't have any headaches.
Try to do following: increase value of set_cachesize in DB_CONFIG to about half of all your *.bdb files or otherwise what your system allows, but don't leave it default.
Best regards, vadim tarassov.
--Quanah
-- Quanah Gibson-Mount Principal Software Developer ITSS/Shared Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html
"These censorship operations against schools and libraries are stronger than ever in the present religio-political climate. They often focus on fantasy and sf books, which foster that deadly enemy to bigotry and blind faith, the imagination." -- Ursula K. Le Guin