Wierd bogofilter/procmail thing happening

Chris Huey cah at metro1.com
Tue Apr 15 04:47:55 CEST 2003


On Mon, 14 Apr 2003 22:08:40 -0400 David Relson <relson at osagesoftware.com> wrote:
> Chris,
> 
> I'd suspect environment variables, specifically different settings for $HOME.

That's what I would have thought so I truss'ed the process (Solaris strace) and
in both cases, it is accessing the same file:

$ grep spamlist.db /var/tmp/bogo.truss-procmail 
stat64("/home/cah/.bogofilter/spamlist.db", 0xFFBEF6D0) = 0
open64("/home/cah/.bogofilter/spamlist.db", O_RDONLY) = 5
open64("/home/cah/.bogofilter/spamlist.db", O_RDONLY) = 5
open64("/home/cah/.bogofilter/spamlist.db", O_RDWR) = 5
stat64("/home/cah/.bogofilter/spamlist.db", 0xFFBEF6D0) = 0
open64("/home/cah/.bogofilter/spamlist.db", O_RDONLY) = 5
open64("/home/cah/.bogofilter/spamlist.db", O_RDONLY) = 5

$ grep spamlist.db /var/tmp/bogo.truss-cmdline
stat64("/home/cah/.bogofilter/spamlist.db", 0xFFBEF088) = 0
open64("/home/cah/.bogofilter/spamlist.db", O_RDONLY) = 5
open64("/home/cah/.bogofilter/spamlist.db", O_RDONLY) = 5
open64("/home/cah/.bogofilter/spamlist.db", O_RDWR) = 5
stat64("/home/cah/.bogofilter/spamlist.db", 0xFFBEF088) = 0
open64("/home/cah/.bogofilter/spamlist.db", O_RDONLY) = 5
open64("/home/cah/.bogofilter/spamlist.db", O_RDONLY) = 5

Except for the stack addresses, they're identical.  Hmmm, maybe they should have
been identical...  However, thr truss output shows the same dynamic libraries
being loaded in each case.

Curiouser and curiouser.  Could still be an environment thing.  But if it could
not locate the libdb.so file it would not have run at all so I doubt it's a
LD_LIBRARY_PATH thing.  Besides, I used the LD_RUN_PATH environment variable
which (supposedly eliminates the need for LD_LIBRARY_PATH).

This just in: I ran this using a LD_LIBRARY_PATH - same results.  Command line
says SPAM and procmail says not spam.

Stumped in Portland,

  Chris





More information about the Bogofilter mailing list