SA Bugzilla – Bug 5554
UTF-8 issue with perl 5.8.0 in Bayes.pm line 362
Last modified: 2019-06-13 14:37:07 UTC
I'm having an issue after upgrading spamassassin to 3.2.x with one of my servers. The box in question is RHEL3 with it's perl 5.8.0, the same config on RHEL4 with it's perl 5.8.5 doesn't show those symtoms. The logs of spampd, which I'm using, shows: Jul 9 07:53:45 sahost01 spampd[25350]: Malformed UTF-8 character (unexpected continuation byte 0xa9, with no preceding start byte) in substitution iterator at /usr/lib/perl5/vendor_perl/5.8.0/Mail/SpamAssassin/Bayes.pm line 362, <_GEN_15> line 1509. My first guess was that it's the issue discussed here: http://issues.apache.org/SpamAssassin/show_bug.cgi?id=3787#c80 So I went ahead and rebuilt the perl package with this perl patch included http://rt.perl.org/rt3/Public/Bug/Display.html?id=37950 The new perl package passes the test from the perl bug description but the spamassassin issue still appears. There is at least another person who seems to have the same issue http://www.mail-archive.com/users@spamassassin.apache.org/msg43099.html I have now built perl 5.8.8 for the RHEL3 box and installed it and viola, the problem is gone. So to me it really seems to be a problem with spamassassin 3.2.x and perl < 5.8.5.
On FC4 also there is this problem. [root@airone log]# rpm -q perl perl-5.8.6-24 [root@airone log]# rpm -q spamassassin spamassassin-3.2.1-1 Now I have use this workaround: http://mail-archives.apache.org/mod_mbox/spamassassin-users/200705.mbox/%3c464287a2.57.16b0.15090@cnc.bc.ca%3e 1) Locate your Message.pm module and 2) after "use warnings;" add "use bytes;"
Just installed 3.2.3 on RH EL3. Getting the same error. # rpm -q perl perl-5.8.0-94.EL3 Message.pm : package Mail::SpamAssassin::Message; use strict; use warnings; use bytes; 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);
Closing old bugs. Perl version not relevant anymore.