spamassassin-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Cole" <>
Subject Re: Use of uninitialized value $r in scalar chomp at /usr/local/share/perl/5.26.1/File/Scan/ line 224
Date Fri, 10 Jan 2020 05:56:30 GMT
On 9 Jan 2020, at 17:32, Chris wrote:

> Since upgrading my Ubuntu 18.04.3 to ClamAV version 0.102.1 yesterday
> I've been seeing this in my syslog:
> spamd[2455]: Use of uninitialized value $r in scalar chomp at
> /usr/local/share/perl/5.26.1/File/Scan/ line 224
> spamd[2455]: Use of uninitialized value $r in pattern match (m//) at
> /usr/local/share/perl/5.26.1/File/Scan/ line 227
> Line 224 - chomp(my $r = $conn->getline);
> Line 227 - if($r =~ /stream:\ (.+)\ FOUND/ix){

How is this a SpamAssassin question?

Note that the "ClamAV Plugin" on the SA Wiki is not a supported 
component of SA. It is decade-old sample code of unclear provenance. 
Virus scanning really does not belong inside SA, so it isn't. SA is 
designed to aggregate a lot of independent imperfect criteria for 
judging mail as spam or ham into a single numeric score, while AV is 
designed to make a highly accurate binary judgment.

> Is this an issue with or with ClamAV itself? AND either ClamAV itself or its config.

Looking at, 
it seems that those lines are in a subroutine which does inadequate 
error handling.  The underlying problem is something subtly wrong with 
the communication between the Perl module and clamd. I'm not sure if 
that Perl module is still maintained, but you could try opening an issue 
against it and see. The testing matrix at is not 

However, fixing the Perl error handling won't solve the connection 
issue. I have no idea what the specifics of that might be. If you can 
find a source of support for File::Scan::ClamAV or ClamAV itself, you 
might be able to get a deeper answer.

Bill Cole or
(AKA @grumpybozo and many * addresses)
Not For Hire (currently)

View raw message