You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Henry Kwan <sp...@designmedia.com> on 2007/05/26 02:06:41 UTC

"Malformed UTF-8 character" errors>

Just updated to 3.20 this week and because everything seem to be working fine, I
didn't notice my log files getting bloated (up to 8GB!) by errors like this:

Malformed UTF-8 character (unexpected non-continuation byte 0x00, immediately
after start byte 0xd
2) in pattern match (m//) at /etc/mail/spamassassin/70_sare_adult.cf, rule
SARE_OBFUFCK1, line 1.

After googling, it seems the common answers are to either upgrade to Perl 5.88
(I'm running 5.85) or stop using the SARE rules.  Is there a third choice? 
Perhaps an uncoming patch for 3.20?

Thanks.



Re: "Malformed UTF-8 character" errors>

Posted by SM <sm...@resistor.net>.
At 17:06 25-05-2007, Henry Kwan wrote:
>Just updated to 3.20 this week and because everything seem to be 
>working fine, I
>didn't notice my log files getting bloated (up to 8GB!) by errors like this:
>
>Malformed UTF-8 character (unexpected non-continuation byte 0x00, immediately
>after start byte 0xd
>2) in pattern match (m//) at /etc/mail/spamassassin/70_sare_adult.cf, rule
>SARE_OBFUFCK1, line 1.
>
>After googling, it seems the common answers are to either upgrade to Perl 5.88
>(I'm running 5.85) or stop using the SARE rules.  Is there a third choice?
>Perhaps an uncoming patch for 3.20?

That's a problem with the SARE rules with 3.20.  It's not a bug in 
3.20.  See whether there is an updated version of 70_sare_adult.cf 
which fixes that.

Regards,
-sm 


Re: "Malformed UTF-8 character" errors>

Posted by Michael Van Der Beek <mi...@cyber-mage.com>.
Henry Kwan wrote:
> Doc Schneider wrote:
>   
>> Not sure how you're using SA but I commented out every reference to
>> CIALIS2 and just committed 1.00.11 so should be available within the hour.
>>
>> Also running CentOS 4.4 you know you can upgrade to perl 5.8.8 by doing
>> a 'yum --enablerepo=centosplus update perl' as this issue isn't a
>> problem with 5.8.8
>>
>>
>>     
>
> Hi Doc,
>
> I'll look into updating to Perl 5.8.8 then.
>
> Also, it looks like the ruleset still has a couple of gremlins.  Still
> getting these on 01.00.11 (2007-05-29).
>
> "spamd[17302]: Malformed UTF-8 character (unexpected non-continuation byte
> 0x00, immediately after start byte 0xd1) in pattern match (m//) at
> /etc/mail/spamassassin/70_sare_obfu.cf, rule __SARE_OBFU_PRICE1, line 1."
>
> Thanks.
>
>
>   
Interesting I get that PRICE1 in the logs but in console I get
 stderr: tch (m//) at /etc/mail/spamassassin/70_sare_obfu.cf, rule 
__SARE_OBFU_SOFT2, line 1. Malformed UTF-8 character (unexpected 
non-continuation byte 0x00, immediately after start byte 0xd5) in 
pattern match (m//) at /etc/mail/spamassassin/70_sare_obfu.cf, rule 
__SARE_OBFU_SOFT2,

Lots of SOFT2 errors...much more then the PRICE1 error.



Re: "Malformed UTF-8 character" errors>

Posted by Henry Kwan <sp...@designmedia.com>.

Doc Schneider wrote:
> 
> 
> Not sure how you're using SA but I commented out every reference to
> CIALIS2 and just committed 1.00.11 so should be available within the hour.
> 
> Also running CentOS 4.4 you know you can upgrade to perl 5.8.8 by doing
> a 'yum --enablerepo=centosplus update perl' as this issue isn't a
> problem with 5.8.8
> 
> 

Hi Doc,

I'll look into updating to Perl 5.8.8 then.

Also, it looks like the ruleset still has a couple of gremlins.  Still
getting these on 01.00.11 (2007-05-29).

"spamd[17302]: Malformed UTF-8 character (unexpected non-continuation byte
0x00, immediately after start byte 0xd1) in pattern match (m//) at
/etc/mail/spamassassin/70_sare_obfu.cf, rule __SARE_OBFU_PRICE1, line 1."

Thanks.


-- 
View this message in context: http://www.nabble.com/%22Malformed-UTF-8-character%22-errors%3E-tf3818890.html#a10865692
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: "Malformed UTF-8 character" errors>

Posted by Doc Schneider <ma...@maddoc.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Henry Kwan wrote:
> 
> Doc Schneider wrote:
>> I just now committed more fixes for 70_sare_obfu.cf, obfu0 and obfu1.
>> These should be available within the hour.
>>
>> Please folks if you have a problem with a rule set from SARE please let
>> us know what rule it is and what rule set it is in.
>>
> 
> Hi Doc,
> 
> I just updated my 70_sare_obfu.cf to 01.00.10 (2007-05-28) and tried 3.20
> with it again but almost immediately, I got these errors:
> 
> Malformed UTF-8 character (unexpected non-continuation byte 0x00,
> immediately after start byte 0xc4) in pattern match (m//) at
> /etc/mail/spamassassin/70_sare_obfu.cf, rule __SARE_OBFU_CIALIS2, line 1.
> 
> This goes on for about 50MB until I removed 70_sare_obfu.cf and restarted.
> 
> I'm running CentOS 4.4 with perl 5.85.
> 
> Thanks.
> 

Not sure how you're using SA but I commented out every reference to
CIALIS2 and just committed 1.00.11 so should be available within the hour.

Also running CentOS 4.4 you know you can upgrade to perl 5.8.8 by doing
a 'yum --enablerepo=centosplus update perl' as this issue isn't a
problem with 5.8.8

Just FYI. 8*)

- --

 -Doc

 Penguins: Do it on the ice.
   8:44am  up 4 days, 16:55, 17 users,  load average: 0.18, 0.30, 0.37

 SARE HQ  http://www.rulesemporium.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org

iD8DBQFGXIEpqOEeBwEpgcsRAnDeAJ91M9MXJtRMUwe8JpthokAjzWrJ/QCcCw99
06O7bUCPvCa/VVwXIkKCQHk=
=gQvI
-----END PGP SIGNATURE-----

Re: "Malformed UTF-8 character" errors>

Posted by Henry Kwan <sp...@designmedia.com>.

Doc Schneider wrote:
> 
> I just now committed more fixes for 70_sare_obfu.cf, obfu0 and obfu1.
> These should be available within the hour.
> 
> Please folks if you have a problem with a rule set from SARE please let
> us know what rule it is and what rule set it is in.
> 

Hi Doc,

I just updated my 70_sare_obfu.cf to 01.00.10 (2007-05-28) and tried 3.20
with it again but almost immediately, I got these errors:

Malformed UTF-8 character (unexpected non-continuation byte 0x00,
immediately after start byte 0xc4) in pattern match (m//) at
/etc/mail/spamassassin/70_sare_obfu.cf, rule __SARE_OBFU_CIALIS2, line 1.

This goes on for about 50MB until I removed 70_sare_obfu.cf and restarted.

I'm running CentOS 4.4 with perl 5.85.

Thanks.

-- 
View this message in context: http://www.nabble.com/%22Malformed-UTF-8-character%22-errors%3E-tf3818890.html#a10860885
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: "Malformed UTF-8 character" errors>

Posted by Doc Schneider <ma...@maddoc.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Loren Wilton wrote:
>> (sare_obfu1.cf seems to have been updated though).  Do you know if Doc
>> plans to
>> update sare_obfu.cf soon?
> 
> He's working on it.  Said it was a bit of a bear to fix up the regexes
> in it.
> 
>        Loren
> 

I just now committed more fixes for 70_sare_obfu.cf, obfu0 and obfu1.
These should be available within the hour.

Please folks if you have a problem with a rule set from SARE please let
us know what rule it is and what rule set it is in.

Thanks,

- --

 -Doc

 Penguins: Do it on the ice.
   8:44am  up 4 days, 16:55, 17 users,  load average: 0.18, 0.30, 0.37

 SARE HQ  http://www.rulesemporium.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org

iD8DBQFGWwfBqOEeBwEpgcsRAjuAAKCKJTYsnTcsmqhWrI26tXsRsW8XnwCgil7s
m5siYesrBcchOFciRJ6gxZc=
=00E5
-----END PGP SIGNATURE-----

Re: "Malformed UTF-8 character" errors>

Posted by Loren Wilton <lw...@earthlink.net>.
> (sare_obfu1.cf seems to have been updated though).  Do you know if Doc 
> plans to
> update sare_obfu.cf soon?

He's working on it.  Said it was a bit of a bear to fix up the regexes in 
it.

        Loren



Re: "Malformed UTF-8 character" errors>

Posted by Henry Kwan <sp...@designmedia.com>.
Loren Wilton <lwilton <at> earthlink.net> writes:

> Perhaps a third answer would be to get the latest versions of the rules 
> files?
> Doc fixed those errors about 5-6 days ago.

Hmmm...  Thanks for the heads up.  I guess sare_adult.cf got updated after my
last RulesDuJour run.  But it seems that sare_obfu.cf has yet to be updated
(sare_obfu1.cf seems to have been updated though).  Do you know if Doc plans to
update sare_obfu.cf soon?

Thanks.



Re: "Malformed UTF-8 character" errors>

Posted by Loren Wilton <lw...@earthlink.net>.
> After googling, it seems the common answers are to either upgrade to Perl 
> 5.88
> (I'm running 5.85) or stop using the SARE rules.  Is there a third choice?
> Perhaps an uncoming patch for 3.20?

Perhaps a third answer would be to get the latest versions of the rules 
files?
Doc fixed those errors about 5-6 days ago.

        Loren



Re: "Malformed UTF-8 character" errors>

Posted by Chris <cp...@embarqmail.com>.
On Friday 25 May 2007 7:06 pm, Henry Kwan wrote:
> Just updated to 3.20 this week and because everything seem to be working
> fine, I didn't notice my log files getting bloated (up to 8GB!) by errors
> like this:
>
> Malformed UTF-8 character (unexpected non-continuation byte 0x00,
> immediately after start byte 0xd
> 2) in pattern match (m//) at /etc/mail/spamassassin/70_sare_adult.cf, rule
> SARE_OBFUFCK1, line 1.
>
> After googling, it seems the common answers are to either upgrade to Perl
> 5.88 (I'm running 5.85) or stop using the SARE rules.  Is there a third
> choice? Perhaps an uncoming patch for 3.20?
>
> Thanks.

The below was posted back on 9 May

--------------------------------------------------------------------

Thanks for straightening me out on that Vincent.
Folks - for completeness here are some instructions for the WORKAROUND.

Locate your Message.pm module and edit the section in the begining as
indicated below.

I have been running this now for a couple of hours with no adverse affects
(that I can see at the moment).

PS
Thanks beginners@perl.org for your help. I'm up and running without any
further errors.
----- Forwarded Message -----
> Vincent,
>
> Where in the Message.pm module do I but "use bytes"? Right here (below)
> and do I just add it below the warnings line with a ";" ending it?

Yes, you are right, after "use warnings;". I ran SA3.2 on my site with 
"use bytes;" added, no problem so far. But it seems SA developers did not 
mention this, they might have their reasons (break normalize_charset for 
one reason).

> ---paste---
> package Mail::SpamAssassin::Message;
>
> use strict;
> use warnings;
>
> use Mail::SpamAssassin;
> use Mail::SpamAssassin::Message::Node;
> use Mail::SpamAssassin::Message::Metadata;
> use Mail::SpamAssassin::Constants qw(:sa);
> use Mail::SpamAssassin::Logger;
>
> use vars qw(@ISA);
> ---end paste---
>
> =================================


-- 
Chris
KeyID 0xE372A7DA98E6705C