Great Circle Associates Majordomo-Users
(February 1997)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Weird "Can't modify subroutine entry" error
From: Dave Wolfe <dwolfe @ risc . sps . mot . com>
Date: Wed, 26 Feb 1997 09:07:33 -0600 (CST)
To: paulh @ imc . org (Paul Hoffman)
Cc: majordomo-users @ greatcircle . com, majordomo-workers @ greatcircle . com (Majordomo developer's mailing list), cwilson @ slurp . neu . sgi . com (Chan Wilson), majordomo-patches @ cloud . ccsf . cc . ca . us
In-reply-to: <v03101710af3944990cc7@[165.227.249.100]> from "Paul Hoffman" at Feb 25, 97 05:40:14 pm
Reply-to: Dave Wolfe <david_wolfe @ risc . sps . mot . com>

[ Paul Hoffman writes: ]
> 
> Anyone seen this one in MJ 1.94? It just started happening, doesn't happen
> for each message, and I haven't touched any of the MJ code or that archive
> in months. I checked, and all the permissions seem fine. Maybe a lock
> problem?
> 
>    ----- Transcript of session follows -----
> Can't modify subroutine entry in scalar assignment at
> /usr/home/majordomo/majordomo.pl line 274, near "m@^(/\S+/)@;"
> 554 "|/usr/home/majordomo/wrapper archive -f

Looking at the logic, it appears that your log file has ceased to exist.
Try creating it (with the proper permissions and owners) and your
problem should go away.

There's a regex bug there in majordomo.pl. Here's the patch (for
unpatched 1.94.1):

--- majordomo.pl.orig	Mon Dec 23 09:03:52 1996
+++ majordomo.pl	Wed Feb 26 09:02:04 1997
@@ -301,7 +301,8 @@
     local($err);
     if ( ! -w $log_file ) {
 	if ( ! -e $log_file ) {			# log file may not exist, check dir perms.
-	    local($dir) = $log_file =~ m@^(/\S+/)@;
+	    local($dir);
+	    ($dir) = $log_file =~ m@^(/\S+)/@;
 	    if ( ! -w $dir ) {
 		$err .= "Unable to create log file in $dir, check permissions.\n"; # 
 	    }

-- 
 Dave Wolfe


References:
Indexed By Date Previous: Re: MAJORDOMO ABORT (mj_majordomo) (fwd)
From: Dave Wolfe <dwolfe@risc.sps.mot.com>
Next: Re: problem with 1.94.1 on sunos /solris
From: Dave Wolfe <dwolfe@risc.sps.mot.com>
Indexed By Thread Previous: Weird "Can't modify subroutine entry" error
From: Paul Hoffman <paulh@imc.org>
Next: Majordomo on Solaris 2.5.1
From: A Sheikh <bmcnamee@sprynet.com>

Google
 
Search Internet Search www.greatcircle.com