http://bugzilla.spamassassin.org/show_bug.cgi?id=3325





------- Additional Comments From [EMAIL PROTECTED]  2004-05-11 00:46 -------
hooray! reproduced!

using:
  - Debian unstable on a Pentium M
  - Perl 5.8.4 installed from latest source into /usr/local/perl584
  - attachment 1945 saved as "msg"

and these modules (from new -D --lint diagnostic output):

debug: diag: module not installed: DBI ('require' failed)
debug: diag: module installed: DB_File, version 1.808
debug: diag: module installed: Digest::SHA1, version 2.10
debug: diag: module installed: IO::Socket::UNIX, version 1.21
debug: diag: module installed: MIME::Base64, version 3.01
debug: diag: module installed: MIME::Base64, version 3.01
debug: diag: module installed: Net::DNS, version 0.47
debug: diag: module not installed: Net::LDAP ('require' failed)
debug: diag: module not installed: Razor2::Client::Agent ('require' failed)
debug: diag: module installed: Storable, version 2.12
debug: diag: module not installed: URI ('require' failed)

and these command lines:

sudo /usr/local/perl584/bin/perl -T -w /home/jm/sausr/bin/spamd -D -m 1 -d -r
/tmp/spamd.pid
./spamc/spamc < msg > o

I get this:

May 11 00:20:59 radish spamd[10612]: debug: DCC is not available: no executable
dccproc found.
May 11 00:20:59 radish spamd[10612]: debug: Running tests for priority: 500
May 11 00:20:59 radish spamd[10612]: logmsg: error: Insecure dependency in eval
while running setuid at
/home/jm/sausr/lib/site_perl/5.8.4/Mail/SpamAssassin/Dns.pm line 215._ , 
continuing
May 11 00:20:59 radish spamd[10612]: error: Insecure dependency in eval while
running setuid at /home/jm/sausr/lib/site_perl/5.8.4/Mail/SpamAssassin/Dns.pm
line 215._, continuing

Here's a catch -- the first run will always work.  It's only on the second run
or later.  (that points at Storable, IMO.)

Now, using these command lines:

1:
perl -T -I lib -w ./spamd/spamd.raw -D -m 1 -p 48373
./spamc/spamc -p 48373 < msg > o

it works fine.

2:
same run as root with sudo, it's fine.

3:
perl -T -I `pwd`/lib -w ./spamd/spamd.raw -C `pwd`/rules -d -D -m 1 -p 48373
./spamc/spamc -p 48373 < msg > o

FAILS.  -d related?

4:
sudo /usr/local/perl584/bin/perl -T -w ~/sausr/bin/spamd -D -m 1 -d -r
/tmp/spamd.pid -L
./spamc/spamc < msg > o

fine, so it's network-test-related too.

5. turned off DB_File:
sudo mv /usr/local/perl584/lib/5.8.4/i686-linux/DB_File.pm{,.OFF}
sudo /usr/local/perl584/bin/perl -T -w ~/sausr/bin/spamd -L -D -m 1 -d -r
/tmp/spamd.pid
./spamc/spamc < msg > o
sudo mv /usr/local/perl584/lib/5.8.4/i686-linux/DB_File.pm{.OFF,}

works fine, so DB_File *must* be installed for this to fail.

6. as normal user:
/usr/local/perl584/bin/perl -T -w ~/sausr/bin/spamd -D -m 1 -d -r /tmp/spamd.pid
-p 48373
./spamc/spamc -p 48373 < msg > o

FAILS.

7. using -u:
sudo /usr/local/perl584/bin/perl -T -w ~/sausr/bin/spamd -D -m 1 -d -r
/tmp/spamd.pid -u nobody
/spamc/spamc < msg > o

works.


OK, so the issue requires

  - network tests
  - DB_File installed
  - Storable installed
  - perl 5.8.4, possibly

but at least it's portable across platforms (not surprising, since perl 5.8.4
uses perlio).





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to