From owner-freebsd-perl@FreeBSD.ORG Tue Jan 30 21:56:02 2007 Return-Path: X-Original-To: perl@freebsd.org Delivered-To: freebsd-perl@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6ACAF16A5A0 for ; Tue, 30 Jan 2007 21:56:02 +0000 (UTC) (envelope-from forrie@forrie.com) Received: from alnrmhc14.comcast.net (alnrmhc14.comcast.net [204.127.225.94]) by mx1.freebsd.org (Postfix) with ESMTP id 465FE13C494 for ; Tue, 30 Jan 2007 21:56:02 +0000 (UTC) (envelope-from forrie@forrie.com) Received: from forrie.com ([24.62.224.60]) by comcast.net (alnrmhc14) with ESMTP id <20070130214559b14004e8ghe>; Tue, 30 Jan 2007 21:45:59 +0000 Received: from [127.0.0.1] (dce.harvard.edu [140.247.198.6]) (authenticated bits=0) by forrie.com (8.13.8/8.13.8) with ESMTP id l0ULjpHN099447 for ; Tue, 30 Jan 2007 16:45:57 -0500 (EST) (envelope-from forrie@forrie.com) Message-ID: <45BFBC89.6000804@forrie.com> Date: Tue, 30 Jan 2007 16:45:45 -0500 From: Forrest Aldrich User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: perl@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.7/2506/Tue Jan 30 14:50:40 2007 on mail.forrie.com X-Virus-Status: Clean Cc: Subject: Spamassassin "matches null string many times ..." errors X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jan 2007 21:56:02 -0000 I believe this issue has been addressed before. However, with the latest port version of SpamAssassin, I continue to see these errors in the logs: Jan 30 08:00:41 mail spamd[1038]: (?:(?<=[\s,]))* matches null string many times in rege x; marked by <-- HERE in m/\G(?:(?<=[\s,]))* <-- HERE \Z/ at /usr/local/lib/perl5/site_p erl/5.8.8/Text/Wrap.pm line 46. It appears to have been addressed at: http://issues.apache.org/SpamAssassin/attachment.cgi?id=3751&action=view There is a patch, which is small enough to post here. I wonder if this can be included in the distribution/port -- but I wonder why the problem hasn't been patched in the code itself... Index: lib/Mail/SpamAssassin/Util.pm =================================================================== --- lib/Mail/SpamAssassin/Util.pm (revision 473986) +++ lib/Mail/SpamAssassin/Util.pm (revision 473988) @@ -535,7 +535,16 @@ # There's a die() in there which "shouldn't happen", but better be # paranoid. We'll return the unwrapped string if anything went wrong. my $text = $_[0] || ""; + + # Text::Wrap produces spurious warnings: + # [23409] warn: (?:(?<=[\s,]))* matches null string many times in regex; marked by <-- HERE in m/\G(?:(?<=[\s,]))* <-- HERE \Z/ at /usr/local/perl594/lib/5.9.4/Text/Wrap.pm line 46. + # trap and ignore them. Why do so many of the core modules do this + # kind of crap? :( use a $SIG{__WARN__} to trap it. + eval { + local $SIG{__WARN__} = sub { + ($_[0] =~ /matches null string many times/) or CORE::warn(@_); + }; $text = Text::Wrap::wrap($_[2] || "", $_[1] || "", $text); }; return $text;