You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@spamassassin.apache.org on 2021/04/23 17:48:34 UTC
[Bug 7899] New: Rules tarball doesn't work with Perl 5.28
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7899
Bug ID: 7899
Summary: Rules tarball doesn't work with Perl 5.28
Product: Spamassassin
Version: unspecified
Hardware: PC
OS: Mac OS X
Status: NEW
Severity: normal
Priority: P2
Component: sa-update
Assignee: dev@spamassassin.apache.org
Reporter: billcole@apache.org
Target Milestone: Undefined
Since the morning of 2021-04-17, sa-update has been throwing out a whole lot of
these errors for me:
Invalid header block at offset unknown at /opt/local/bin/sa-update line 1319.
However, it has not failed hard but has instead unpacked all rules files
*EXCEPT* 'rules/languages'. That's not a good failure mode.
This problem is peculiar to Archive::Tar 2.30, from the Perl 5.28 base:
(bsd)tar from libarchive and Archive::Tar 2.32 in Perl 5.30 handle whatever the
oddity is in the tarball.
The last change to rules/languages was r1888898 of 2021-04-18 for Bug #6364.
Before that, it had been static since 2005. This means that the change to that
file was *NOT* the cause of the bad tarball, but it does raise a question: how
is rules/languages generated, where is it documented, and what it its format?
An undocumented binary blob seems like a bad idea in general.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 7899] Rules tarball doesn't work with Perl 5.28
Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7899
--- Comment #2 from Henrik Krohns <ap...@hege.li> ---
Or in the case of IO::Zlib, probably the dependent Compress::Zlib version could
be more important..
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 7899] Rules tarball doesn't work with Perl 5.28
Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7899
Bill Cole <bi...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |billcole@apache.org
Severity|normal |major
Priority|P2 |P1
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 7899] Rules tarball doesn't work with Perl 5.28
Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7899
Henrik Krohns <ap...@hege.li> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |apache@hege.li
--- Comment #1 from Henrik Krohns <ap...@hege.li> ---
Interesting.. what is your IO::Zlib version? I tried Archive::Tar 2.30 here and
it works fine.
PS. TextCat.pm code pretty much describes the simple languages-format, it's
just single ngrams per line, ended with "0 langid" line. I created some perl
scripts to update it, I'll upload them.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 7899] Rules tarball doesn't work with Perl 5.28
Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7899
--- Comment #3 from Henrik Krohns <ap...@hege.li> ---
Perlbrew exec is nice... tried all my versions with latest update files, with
tar code copypasted from sa-update
369604 Apr 14 06:03 1888714.tar.gz
369041 Apr 16 06:00 1888785.tar.gz
369090 Apr 17 05:59 1888823.tar.gz
369304 Apr 18 05:54 1888846.tar.gz
369465 Apr 19 05:57 1888881.tar.gz
373177 Apr 20 05:55 1888952.tar.gz
373467 Apr 23 05:55 1889097.tar.gz
No probs unpacking anywhere
perl-5.30.0
==========
Archive::Tar 2.32 IO::Zlib 1.10 Compress::Zlib 2.084
perl-5.28.1
==========
Archive::Tar 2.30 IO::Zlib 1.10 Compress::Zlib 2.074
perl-5.24.1
==========
Archive::Tar 2.04_01 IO::Zlib 1.10 Compress::Zlib 2.069001
perl-5.16.3
==========
Archive::Tar 1.82 IO::Zlib 1.10 Compress::Zlib 2.048
perl-5.14.0
==========
Archive::Tar 1.76 IO::Zlib 1.10 Compress::Zlib 2.033
perl-5.10.1
==========
Archive::Tar 1.52 IO::Zlib 1.09 Compress::Zlib 2.02
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 7899] Rules tarball doesn't work with Perl 5.28
Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7899
Bill Cole <bi...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #5 from Bill Cole <bi...@apache.org> ---
(In reply to Bill Cole from comment #4)
> Working on a bottom-up rebuild of the Perl environment on a sibling of this
> machine to replicate or resolve.
This resolved the problem. Root cause was a bad binary package built for x86_64
but distributed as architecture-independent. Why it caused this particular
failure with this particular file is a mystery, as the package had been
installed in January and had not broken anything until this week.
(related external bug: https://trac.macports.org/ticket/62739)
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 7899] Rules tarball doesn't work with Perl 5.28
Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7899
--- Comment #4 from Bill Cole <bi...@apache.org> ---
(In reply to Henrik Krohns from comment #2)
> Or in the case of IO::Zlib, probably the dependent Compress::Zlib version
> could be more important..
IO::Zlib is 1.11
Compress::Zlib is 2.102
Compress::Zlib shouldn't be relevant, I think, as I'm testing with the
uncompressed 1889097.tar.
Oddities:
1. I had version 2.38 of Archive:Tar installed as well in vendor_perl.
Removing that didn't eliminate the failure.
2. Compress::Zlib depends on Compress::Raw::Zlib, and there was a build error
(bad architecture in a .bundle file)
Working on a bottom-up rebuild of the Perl environment on a sibling of this
machine to replicate or resolve.
--
You are receiving this mail because:
You are the assignee for the bug.