You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Ralf Hildebrandt <Ra...@charite.de> on 2008/05/05 15:23:55 UTC

sa-compile problem

# spamassassin -V
SpamAssassin version 3.2.4
  running on Perl version 5.8.8
  
From my /usr/local/scripts/update_spamassassin cronjob 

/usr/bin/sa-update --channelfile
/etc/mail/spamassassin/sare-sa-update-channels.txt \
  --gpgkey 856AA88A \
  --gpgkey 6C6191E3

followed by:

/usr/bin/sa-compile

I sometimes get the following output:


SA updates downloaded and installed.
[8770] info: generic: base extraction starting. this can take a while...
[8770] info: generic: extracting from rules of type body_0
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
 .............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
100% Completed 1019.14 rules/sec in 00m01s
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
 .............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
 .............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
 .......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
100% Completed 128.86 bases/sec in 00m27s
[8770] info: body_0: 2929 base strings extracted in 29 seconds
[8770] info: generic: extracting from rules of type body_500

100% Completed 1236.07 rules/sec in 00m00s

100% Completed 20610.83 bases/sec in 00m00s
[8770] info: body_500: 2 base strings extracted in 0 seconds
cd /tmp/.spamassassin8770vFk0o2tmp
cd Mail-SpamAssassin-CompiledRegexps-body_0
re2c -i -b -o scanner1.c scanner1.re
re2c -i -b -o scanner2.c scanner2.re
re2c -i -b -o scanner3.c scanner3.re
re2c: error: line 121, column 2: Token exceeds limit
command failed! at /usr/bin/sa-compile line 288, <$fh> line 4226.

-- 
Ralf Hildebrandt (i.A. des IT-Zentrums)         Ralf.Hildebrandt@charite.de
Charite - Universitätsmedizin Berlin            Tel.  +49 (0)30-450 570-155
Gemeinsame Einrichtung von FU- und HU-Berlin    Fax.  +49 (0)30-450 570-962
IT-Zentrum Standort CBF                 send no mail to snickebo@charite.de

Re: sa-compile problem

Posted by "Expertsites, Inc." <sp...@expertsites.com>.
----- Original Message ----- 
From: "Ralf Hildebrandt" <Ra...@charite.de>
To: <us...@spamassassin.apache.org>
Sent: Monday, May 05, 2008 7:21 AM
Subject: Re: sa-compile problem


>* Jared Hall <jh...@tbi.net>:
>
>> Symptoms are typical re2c problems.  Try version 0.12.3
>> http://sourceforge.net/project/showfiles.php?group_id=96864&package_id=103574&release_id=534536
>
> I'm using 0.13.3-1, so I should downgrade?
>
> -- 
> Ralf Hildebrandt (i.A. des IT-Zentrums) 
> Ralf.Hildebrandt@charite.de
> Charite - Universitätsmedizin Berlin            Tel.  +49 (0)30-450 
> 570-155
> Gemeinsame Einrichtung von FU- und HU-Berlin    Fax.  +49 (0)30-450 
> 570-962
> IT-Zentrum Standort CBF                 send no mail to 
> snickebo@charite.de
>

I was able to bypass this particular re2c problem using the same method 
reported in March:

http://www.nabble.com/re2c-error..-td16297914.html

changed scanner.re and scanner.cc:
fatal("Token limit exceed")
to:
puts("Token limit exceeded")

then ran
./configure
make
and copied re2c to installation directories

Restarting spamd resulted in 2 occurences of "Token exceeds limits" reported 
in the logs, but everything compiled instead of crashing as before the mod. 
I don't know the effects of the token errors, though.

My config:
SA 3.2.4
Perl 5.8.8
re2c 0.13.3
RHEL3/cPanel

Tom Green
Expertsites, Inc.
EXPERTSITES is a federally registered trademark belonging to Expertsites, 
Inc. 



Re: sa-compile problem

Posted by Ralf Hildebrandt <Ra...@charite.de>.
* Jared Hall <jh...@tbi.net>:

> Symptoms are typical re2c problems.  Try version 0.12.3
> http://sourceforge.net/project/showfiles.php?group_id=96864&package_id=103574&release_id=534536

I'm using 0.13.3-1, so I should downgrade?

-- 
Ralf Hildebrandt (i.A. des IT-Zentrums)         Ralf.Hildebrandt@charite.de
Charite - Universitätsmedizin Berlin            Tel.  +49 (0)30-450 570-155
Gemeinsame Einrichtung von FU- und HU-Berlin    Fax.  +49 (0)30-450 570-962
IT-Zentrum Standort CBF                 send no mail to snickebo@charite.de

Re: sa-compile problem

Posted by Jared Hall <jh...@tbi.net>.
Ralf Hildebrandt wrote:
> # spamassassin -V
> SpamAssassin version 3.2.4
>   running on Perl version 5.8.8
>   
> >From my /usr/local/scripts/update_spamassassin cronjob 
>
> /usr/bin/sa-update --channelfile
> /etc/mail/spamassassin/sare-sa-update-channels.txt \
>   --gpgkey 856AA88A \
>   --gpgkey 6C6191E3
>
> followed by:
>
> /usr/bin/sa-compile
>
> I sometimes get the following output:
>
>
> SA updates downloaded and installed.
> [8770] info: generic: base extraction starting. this can take a while...
> [8770] info: generic: extracting from rules of type body_0
> ..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
>  .............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
> 100% Completed 1019.14 rules/sec in 00m01s
> ..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
>  .............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
>  .............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
>  .......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
> 100% Completed 128.86 bases/sec in 00m27s
> [8770] info: body_0: 2929 base strings extracted in 29 seconds
> [8770] info: generic: extracting from rules of type body_500
>
> 100% Completed 1236.07 rules/sec in 00m00s
>
> 100% Completed 20610.83 bases/sec in 00m00s
> [8770] info: body_500: 2 base strings extracted in 0 seconds
> cd /tmp/.spamassassin8770vFk0o2tmp
> cd Mail-SpamAssassin-CompiledRegexps-body_0
> re2c -i -b -o scanner1.c scanner1.re
> re2c -i -b -o scanner2.c scanner2.re
> re2c -i -b -o scanner3.c scanner3.re
> re2c: error: line 121, column 2: Token exceeds limit
> command failed! at /usr/bin/sa-compile line 288, <$fh> line 4226.
>
>   
Symptoms are typical re2c problems.  Try version 0.12.3
http://sourceforge.net/project/showfiles.php?group_id=96864&package_id=103574&release_id=534536