Bug 5554 - UTF-8 issue with perl 5.8.0 in Bayes.pm line 362
Summary: UTF-8 issue with perl 5.8.0 in Bayes.pm line 362
Status: RESOLVED WONTFIX
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamassassin (show other bugs)
Version: 3.2.1
Hardware: Other Linux
: P5 normal
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-11 01:45 UTC by Simon Matter
Modified: 2019-06-13 14:37 UTC (History)
2 users (show)



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Matter 2007-07-11 01:45:50 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.
Comment 1 Dario Lesca 2007-07-11 04:27:43 UTC
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;"
Comment 2 Alan Lehman 2007-09-15 12:50:25 UTC
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);
Comment 3 Henrik Krohns 2019-06-13 14:37:07 UTC
Closing old bugs. Perl version not relevant anymore.