mhonarc-users

Re: Re: Re: MHonArc bug (v2.3.3)

1999-02-05 00:57:37
---Bruce Hauge <bruceh(_at_)hpcvcdv(_dot_)cv(_dot_)hp(_dot_)com> wrote:

This is perl, version 5.004
MHonArc v2.3.3 (Perl 5.004)
HP-UX hpcvcdv B.10.20 A 9000/780 2010073319 two-user license

The exact command-line used to invoke the program. 

/home/bruceh/net/mhonarc/MHonArc2.3.3/install/mhonarc \
-rcfile /usr/warts/totem/lib/majordomo/rcfile \
-outdir avo_expert \
-nolock \
/usr/warts/totem/lib/majordomo/archive/avo_expert
... 
Reading resource file: /usr/warts/totem/lib/majordomo/rcfile ...
Converting messages to avo_expert
Reading /usr/warts/totem/lib/majordomo/archive/avo_expert
....................
Writing mail .Attempt to free unreferenced scalar at
/home/bruceh/net/mhonarc/MHonArc2.3.3/install/mhamain.pl line 148.
... 
Running mhonarc from a ksh script (mk_test) from cron. Permissions
are 
(note setuid and setguid):

  -rwsr-Sr-x   1 bruceh     totem          367 Jan 21 15:04 mk_test

Error occurs when I run as:

  uid=567(bruceh) gid=90(niddesctr)

No errors when I run as gid=98(totem)

This looks like a problem with the port of perl on your system.  The
error message comes from perl and not from mhonarc.

Since I do not have access to a HP-UX 10.20 system, I have no
way to figure out what is causes the error in perl.  Could be
related to taint mode if using setuid/getuid?  Have you tried
the latest version of perl to see if the problem still exists?

        --ewh

Thanks for the reply. I was able to try this under version 5.004_04 of Perl
(still on HP-UX). Unfortunately, it still fails with the same error:

------------------------------------------------------------------------------
$ mk_test
Reading resource file: /usr/warts/totem/lib/majordomo/rcfile ...
Converting messages to avo_expert
Reading /usr/warts/totem/lib/majordomo/archive/avo_expert ..................
Writing mail .Attempt to free unreferenced scalar at 
/home/bruceh/net/mhonarc/MHonArc2.3.3/install/mhamain.pl line 148.
./mk_test[17]: 10717 Bus error
------------------------------------------------------------------------------

We have some "earlier" versions of Perl (5.001, 5.003) that I could try to
see if this problem exists with those versions.

Any other suggestions of things to try?

Bruce

 +------------------------------------------------------------------+
 | Bruce Hauge                                                      |
 | HEWLETT-PACKARD COMPANY                  EMAIL: 
bruceh(_at_)cv(_dot_)hp(_dot_)com |
 | Integrated Circuits Business Division    PHONE: (541) 715-2675   |
 | 1000 NE Circle Blvd., MS: 133A           FAX: (541) 715-2145     |
 | Corvallis, OR  97330                                             |
 +------------------------------------------------------------------+

A co-worker and I looked into this a little more and we've pretty much 
convinced ourselves that this is coming from the taint mode of Perl
being turned on. 

We first tried to use the "wrapsuid" script that comes with Perl, but it
failed with the same error.

We ended up writing a wrapper program that sets the proper group id and
then executes the script:

-------------------------------------------------------------------------
#include <unistd.h>
main(int argc, char **argv) {
   setresgid (98,98,98);
   execl( "/usr/warts/totem/lib/majordomo/mk_html","mk_html",(char *)0);
}
-------------------------------------------------------------------------

Thanks for the help. Let me know if you want to pursue this further.

Bruce

 +------------------------------------------------------------------+
 | Bruce Hauge                                                      |
 | HEWLETT-PACKARD COMPANY                  EMAIL: 
bruceh(_at_)cv(_dot_)hp(_dot_)com |
 | Integrated Circuits Business Division    PHONE: (541) 715-2675   |
 | 1000 NE Circle Blvd., MS: 133A           FAX: (541) 715-2145     |
 | Corvallis, OR  97330                                             |
 +------------------------------------------------------------------+

<Prev in Thread] Current Thread [Next in Thread>