Mailing List Archive

--lint output
Hi All,

Maybe a dumb question, but I've never noticed this before..

When I run spamassassin -D --lint -p I am getting the following output at
the bottom of the results..

Scalar found where operator expected at (eval 23) line 242, near "} $self"
(Missing operator before $self?)
Failed to run header SpamAssassin tests, skipping some: syntax error at
(eval 23) line 242, near "} $self"

debug: is spam? score=1.27 required=5 tests=DATE_MISSING,NO_REAL_NAME

I'm running SA 2.63, I've not noticed this before I upgraded, can someone
help me work out if this is normal or not?!

Thanks in advance :)

Regards,

David Hooton



========================================================================
Pain free spam & virus protection by: www.mailsecurity.net.au
Forward undetected SPAM to: spam@mailsecurity.net.au
========================================================================
Re: --lint output [ In reply to ]
At 06:49 PM 2/8/04 +1100, David Hooton wrote:
>When I run spamassassin -D --lint -p I am getting the following output at
>the bottom of the results..
>
>Scalar found where operator expected at (eval 23) line 242, near "} $self"
> (Missing operator before $self?)
>Failed to run header SpamAssassin tests, skipping some: syntax error at
>(eval 23) line 242, near "} $self"
>
>debug: is spam? score=1.27 required=5 tests=DATE_MISSING,NO_REAL_NAME
>
>I'm running SA 2.63, I've not noticed this before I upgraded, can someone
>help me work out if this is normal or not?!


That is definitely NOT normal.. what version of perl are you using? Did the
lint output mention anything else when it buggered?
RE: --lint output [ In reply to ]
> -----Original Message-----
> From: Matt Kettler [mailto:mkettler_sa@comcast.net]
> Sent: Tuesday, 10 February 2004 1:34 AM
> To: David Hooton; spamassassin-users@incubator.apache.org
> Subject: Re: --lint output

>
> That is definitely NOT normal.. what version of perl are you using? Did
> the lint output mention anything else when it buggered?
>

Ahh good so I'm special! :)

Using Perl 5.8.0.

Complete output below:

debug: Score set 0 chosen.
debug: running in taint mode? yes
debug: Running in taint mode, removing unsafe env vars, and resetting PATH
debug: PATH included '/usr/kerberos/sbin', keeping.
debug: PATH included '/usr/kerberos/bin', keeping.
debug: PATH included '/usr/local/sbin', keeping.
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/sbin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/usr/X11R6/bin', keeping.
debug: PATH included '/home/djh/bin', which doesn't exist, dropping.
debug: Final PATH set to:
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/b
in:/usr/sbin:/usr/bin:/usr/X11R6/bin
debug: ignore: using a test message to lint rules
debug: using "/usr/share/spamassassin" for default rules dir
debug: using "/etc/mail/spamassassin" for site rules dir
debug: using "/home/djh/.spamassassin" for user state dir
debug: using "/data/configs/MailScanner/spam.assassin.prefs.conf" for user
prefs file
debug: bayes: no dbs present, cannot scan: /etc/mail/bayes/bayes_toks
debug: Score set 1 chosen.
debug: Initialising learner
debug: bayes: no dbs present, cannot scan: /etc/mail/bayes/bayes_toks
debug: is Net::DNS::Resolver available? yes
debug: trying (3) microsoft.com...
debug: looking up MX for 'microsoft.com'
debug: MX for 'microsoft.com' exists? 1
debug: MX lookup of microsoft.com succeeded => Dns available (set
dns_available to hardcode)
debug: is DNS available? 1
debug: all '*From' addrs: ignore@compiling.spamassassin.taint.org
debug: running header regexp tests; score so far=0
debug: running body-text per-line regexp tests; score so far=1.27
debug: Razor2 is available
debug: entering helper-app run mode
Razor-Log: Computed razorhome from env: /root/.razor
Razor-Log: Found razorhome: /root/.razor
Razor-Log: read_file: 16 items read from /root/.razor/razor-agent.conf
Feb 10 01:33:03.655765 check[30499]: [ 1] [bootup] Logging initiated
LogDebugLevel=9 to stdout
Feb 10 01:33:03.673252 check[30499]: [ 5] computed razorhome=/root/.razor,
conf=/root/.razor/razor-agent.conf, ident=/root/.razor/identity
Feb 10 01:33:03.673864 check[30499]: [ 8] Client supported_engines: 1 2 3 4
Feb 10 01:33:03.674990 check[30499]: [ 8] prep_mail done: mail 1
headers=93, mime0=1376
Feb 10 01:33:03.676990 check[30499]: [ 5] read_file: 1 items read from
/root/.razor/servers.discovery.lst
Feb 10 01:33:03.678128 check[30499]: [ 5] read_file: 2 items read from
/root/.razor/servers.nomination.lst
Feb 10 01:33:03.679252 check[30499]: [ 5] read_file: 3 items read from
/root/.razor/servers.catalogue.lst
Feb 10 01:33:03.680307 check[30499]: [ 9] Assigning defaults to
folly.cloudmark.com
Feb 10 01:33:03.680818 check[30499]: [ 9] Assigning defaults to
joy.cloudmark.com
Feb 10 01:33:03.681291 check[30499]: [ 9] Assigning defaults to
thrill.cloudmark.com
Feb 10 01:33:03.681745 check[30499]: [ 9] Assigning defaults to
tension.cloudmark.com
Feb 10 01:33:03.682284 check[30499]: [ 9] Assigning defaults to
anxiety.cloudmark.com
Feb 10 01:33:03.684568 check[30499]: [ 5] read_file: 12 items read from
/root/.razor/server.folly.cloudmark.com.conf
Feb 10 01:33:03.690350 check[30499]: [ 5] read_file: 14 items read from
/root/.razor/server.thrill.cloudmark.com.conf
Feb 10 01:33:03.691103 check[30499]: [ 5] server discovery overdue by 189108
seconds
Feb 10 01:33:03.691426 check[30499]: [ 8] already have 1 discovery servers
Feb 10 01:33:03.691749 check[30499]: [ 8] Checking with Razor Discovery
Server 66.151.150.11
Feb 10 01:33:03.692034 check[30499]: [ 6] No port specified, using 2703
Feb 10 01:33:03.692221 check[30499]: [ 5] Connecting to 66.151.150.11 ...
Feb 10 01:33:04.050001 check[30499]: [ 8] Connection established
Feb 10 01:33:04.050505 check[30499]: [ 4] 66.151.150.11 >> 35 server
greeting: sn=D&srl=305&ep4=7542-10&a=l&a=cg
Feb 10 01:33:04.051041 check[30499]: [ 4] 66.151.150.11 << 12
Feb 10 01:33:04.051254 check[30499]: [ 6] a=g&pm=csl
Feb 10 01:33:04.239135 check[30499]: [ 4] 66.151.150.11 >> 54
Feb 10 01:33:04.239419 check[30499]: [ 6] response to sent.1
-csl=?
thrill.cloudmark.com
pride.cloudmark.com
.
Feb 10 01:33:04.240048 check[30499]: [ 8] Discovery Server 66.151.150.11
replying with csl=thrill.cloudmark.com
Feb 10 01:33:04.240407 check[30499]: [ 8] Discovery Server 66.151.150.11
replying with csl=pride.cloudmark.com
Feb 10 01:33:04.240854 check[30499]: [ 4] 66.151.150.11 << 12
Feb 10 01:33:04.241062 check[30499]: [ 6] a=g&pm=nsl
Feb 10 01:33:04.419552 check[30499]: [ 4] 66.151.150.11 >> 51
Feb 10 01:33:04.419877 check[30499]: [ 6] response to sent.2
-nsl=?
joy.cloudmark.com
folly.cloudmark.com
.
Feb 10 01:33:04.420475 check[30499]: [ 8] Discovery Server 66.151.150.11
replying with nsl=joy.cloudmark.com
Feb 10 01:33:04.420787 check[30499]: [ 8] Discovery Server 66.151.150.11
replying with nsl=folly.cloudmark.com
razor2 check skipped: No such file or directory Insecure dependency in open
while running with -T switch at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Razor2/Client/Config.
pm line 414, <GEN3> line 1.
debug: leaving helper-app run mode
debug: Razor2 results: spam? 0 highest cf score: 0
debug: running raw-body-text per-line regexp tests; score so far=1.27
debug: running uri tests; score so far=1.27
debug: uri tests: Done uriRE
debug: running full-text regexp tests; score so far=1.27
debug: Razor2 is available
debug: Current PATH is:
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/b
in:/usr/sbin:/usr/bin:/usr/X11R6/bin
debug: Pyzor is not available: pyzor not found
debug: DCCifd is not available: no r/w dccifd socket found.
debug: DCC is not available: no executable dccproc found.
debug: all '*To' addrs:
debug: RBL: success for 2 of 2 queries
debug: running meta tests; score so far=1.27
Scalar found where operator expected at (eval 24) line 242, near "} $self"
(Missing operator before $self?)
Failed to run header SpamAssassin tests, skipping some: syntax error at
(eval 24) line 242, near "} $self"

debug: is spam? score=1.27 required=5 tests=DATE_MISSING,NO_REAL_NAME


Regards,

Dave


========================================================================
Pain free spam & virus protection by: www.mailsecurity.net.au
Forward undetected SPAM to: spam@mailsecurity.net.au
========================================================================
RE: --lint output [ In reply to ]
At 09:34 AM 2/9/2004, David Hooton wrote:
>razor2 check skipped: No such file or directory Insecure dependency in open
>while running with -T switch at
>/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Razor2/Client/Config.
>pm line 414, <GEN3> line 1.

Step 1) Fix your copy of razor.. All versions of SA 2.60 and higher run in
taint mode for security.

Razor version 2.36 and most lower versions are not taint safe.

There's a patch file distributed with the SpamAssassin tarball to fix this.

See
http://wiki.spamassassin.org/w/RazorInsecureDependency

for details.

I don't think that this will fix your other failure, but it's certainly a
problem that needs fixing and has a small chance of causing problems elsewhere.

Fix that, and then see what the output looks like.
RE: --lint output [ In reply to ]
> -----Original Message-----
> From: Matt Kettler [mailto:mkettler@evi-inc.com]
> Sent: Tuesday, 10 February 2004 2:07 AM
> To: David Hooton; spamassassin-users@incubator.apache.org
> Subject: RE: --lint output
>
> Step 1) Fix your copy of razor.. All versions of SA 2.60 and higher run in
> taint mode for security.

Thanks, did that - any reason why it's not applied to SpamAssassin by
default?

> I don't think that this will fix your other failure, but it's certainly a
> problem that needs fixing and has a small chance of causing problems
> elsewhere.

I found the cause of the error, it was a mistyped meta rule. It's a bit odd
that the lint output was so vague though, I've not seen it provide such
unuseful help before!!

Thanks for your time Matt!

Dave


========================================================================
Pain free spam & virus protection by: www.mailsecurity.net.au
Forward undetected SPAM to: spam@mailsecurity.net.au
========================================================================
RE: --lint output [ In reply to ]
On Tue, 10 Feb 2004 02:43:07 +1100, David Hooton wrote:

> > Step 1) Fix your copy of razor..

> Thanks, did that - any reason why it's not applied to SpamAssassin

It's a patch for Razor, not SpamAssassin, so it can't be applied to SpamAssassin at all.

Regards
/Jonas

--
Jonas Eckerman, jonas_lists@frukt.org
http://www.fsdb.org/
RE: --lint output [ In reply to ]
> -----Original Message-----
> From: Matt Kettler [mailto:mkettler@evi-inc.com]
> Sent: Tuesday, 10 February 2004 2:57 AM
> To: David Hooton; spamassassin-users@incubator.apache.org
> Subject: RE: --lint output
>
> It's not a patch to SA.. it's a patch to razor that comes with SA... Razor
> is the one that's not taint-safe.
>

So it is.. Way too late in the evening here for thinking, sorry!

Dave


========================================================================
Pain free spam & virus protection by: www.mailsecurity.net.au
Forward undetected SPAM to: spam@mailsecurity.net.au
========================================================================
RE: --lint output [ In reply to ]
At 10:43 AM 2/9/2004, David Hooton wrote:
>Thanks, did that - any reason why it's not applied to SpamAssassin by
>default?

It's not a patch to SA.. it's a patch to razor that comes with SA... Razor
is the one that's not taint-safe.