From owner-freebsd-questions@FreeBSD.ORG Thu Feb 5 03:09:09 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6B9E16A4CE for ; Thu, 5 Feb 2004 03:09:09 -0800 (PST) Received: from lv.raad.tartu.ee (lv.raad.tartu.ee [194.126.106.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C50643D41 for ; Thu, 5 Feb 2004 03:09:07 -0800 (PST) (envelope-from toomas.aas@raad.tartu.ee) Received: Message by Barricade lv.raad.tartu.ee with ESMTP id i15B95kY009637; Thu, 5 Feb 2004 13:09:05 +0200 Message-Id: <200402051109.i15B95kY009637@lv.raad.tartu.ee> Received: from INFO/SpoolDir by raad.tartu.ee (Mercury 1.48); 5 Feb 04 13:09:05 +0200 Received: from SpoolDir by INFO (Mercury 1.48); 5 Feb 04 13:08:36 +0200 From: "Toomas Aas" Organization: Tartu City Government To: questions@freebsd.org, spamassassin-users@incubator.apache.org Date: Thu, 5 Feb 2004 13:08:32 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Priority: normal Subject: can't use subscript on split X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2004 11:09:09 -0000 Hello! I'm using SpamAssassin through amavisd-new, installed from these FreeBSD ports: amavisd-new-20030616.p7 p5-Mail-SpamAssassin-2.62 Today, I made some changes to my local.cf and then ran /usr/local/etc/rc.d/amavisd.sh stop, followed by /usr/local/etc/rc.d/amavisd.sh start. To my surprise, amavisd failed to start with the following error message: Problem in the antispam code: Can't use subscript on split at /usr/local/lib/perl5/site_perl/5.005/Mail/SpamAssassin.pm line 100, near "1]" BEGIN failed--compilation aborted at (eval 50) line 11. I reversed my changes to local.cf and tried again, but got the same error message. I also tried removing local.cf entirely, but the error message still remained. Relevant passage of SpamAssassin.pm is this: -------------------------------< cut >------------------------------- # If you hacked up your SA, add a token to identify it here. Eg.: I use # "mss", increasing with every hack. @EXTRA_VERSION = qw(); if (defined $IS_DEVEL_BUILD && $IS_DEVEL_BUILD) { push(@EXTRA_VERSION, ( 'r' . qw{$LastChangedRevision: 6141 $ updated by SVN}[1] )); } -------------------------------< cut >------------------------------- Line 100 is the one starting with push. When I comment out this line, amavisd+SA load fine and seem to work OK, even after I put back my local.cf file including today's modifications. However, I'd like to find out what caused the problem. I haven't upgraded SA nor amavisd-new nor anything else I can think of on this server for a month or so, and I haven't had this problem before. Come to think of it, the only time I've run 'amavisd.sh start' with this version of amavisd+SA was immediately after the last upgrade of amavisd+SA, since then it has been running continuously. But it must have worked then. Maybe there is something in the Perl code above that is immediately obvious to anyone knowing Perl, but IANAP. Thanks in advance for any ideas, -- Toomas Aas | toomas.aas@raad.tartu.ee | http://www.raad.tartu.ee/~toomas/ * Character density: The number of very weird people in the office.