mod_perl 1.21 question...

mod_perl 1.21 question...

Post by AK47 » Thu, 05 Aug 1999 04:00:00



Hi

I've compiled mod_perl as a DSO with Apache 1.3.6 (+ php 3.0.12),
under Linux RH5.2 (2.0.36).  "srm.conf" contains these lines:

    PerlModule  Apache::Status
    PerlModule  Apache::Registry

    Alias /perl/ /home/httpd/perl/
    <Location /perl>
    SetHandler perl-script
    PerlHandler Apache::Registry
    PerlSendHeader On
    Options +ExecCGI
    </Location>

Well: mod_perl is compiled, module is loaded and when
my browser requires the http://www.abc.bah/perl/perl.pl
page, the %ENV is happily browsed.

But if I reload that page quickly for a few times, the value
for %ENV{"PATH"}  is soon filled with garbage...
Seems that this has something to do with the spawning
of new servers...
Is this a bug or what else?

Thanks.

Gabriele Carioli

 
 
 

mod_perl 1.21 question...

Post by Wayne Alliso » Fri, 06 Aug 1999 04:00:00




Quote:> Hi

> I've compiled mod_perl as a DSO with Apache 1.3.6 (+ php 3.0.12),
> under Linux RH5.2 (2.0.36).  "srm.conf" contains these lines:

>     PerlModule  Apache::Status
>     PerlModule  Apache::Registry

>     Alias /perl/ /home/httpd/perl/
>     <Location /perl>
>     SetHandler perl-script
>     PerlHandler Apache::Registry
>     PerlSendHeader On
>     Options +ExecCGI
>     </Location>

> Well: mod_perl is compiled, module is loaded and when
> my browser requires the http://www.abc.bah/perl/perl.pl
> page, the %ENV is happily browsed.

> But if I reload that page quickly for a few times, the value
> for %ENV{"PATH"}  is soon filled with garbage...
> Seems that this has something to do with the spawning
> of new servers...
> Is this a bug or what else?

> Thanks.

> Gabriele Carioli

I've got exactly the same problem:

SERVER_SOFTWARE = Apache/1.3.6 (Unix) PHP/3.0.11 mod_perl/1.21 <br>
DOCUMENT_ROOT = /home/httpd/html
GATEWAY_INTERFACE = CGI-Perl/1.1
I only found it doing a bencmark on the simple $ENV{} example, where it
kept failing on some pages. I tracked it down to the $PATH being
corrupted.

It looks a bug to me, I guess your subject line hides that you've a bug.
I've not checked any where to see if it a bug.
I've saved a log of the environment as well which I might forward on.

So what now?

Regards Wayne

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

 
 
 

mod_perl 1.21 question...

Post by Wayne Alliso » Fri, 06 Aug 1999 04:00:00




Quote:> Hi

> I've compiled mod_perl as a DSO with Apache 1.3.6 (+ php 3.0.12),
> under Linux RH5.2 (2.0.36).  "srm.conf" contains these lines:

>     PerlModule  Apache::Status
>     PerlModule  Apache::Registry

>     Alias /perl/ /home/httpd/perl/
>     <Location /perl>
>     SetHandler perl-script
>     PerlHandler Apache::Registry
>     PerlSendHeader On
>     Options +ExecCGI
>     </Location>

> Well: mod_perl is compiled, module is loaded and when
> my browser requires the http://www.abc.bah/perl/perl.pl
> page, the %ENV is happily browsed.

> But if I reload that page quickly for a few times, the value
> for %ENV{"PATH"}  is soon filled with garbage...
> Seems that this has something to do with the spawning
> of new servers...
> Is this a bug or what else?

> Thanks.

I forgot to say in my other post that I ran httpd -X so that it doesn't
spawn more than one server so it shouldn't be forking  problem.
( i guess )
Wayne,

Quote:

> Gabriele Carioli

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
 
 
 

mod_perl 1.21 question...

Post by AK47 » Sat, 07 Aug 1999 04:00:00


Quote:>> ... when my browser requires the http://www.abc.bah/perl/perl.pl
>> page, the %ENV is happily browsed.
>> But if I reload that page quickly for a few times, the value
>> for %ENV{"PATH"}  is soon filled with garbage...
>> Is this a bug or what else?
>I've got exactly the same problem:
>I only found it doing a bencmark on the simple
>$ENV{} example, where it kept failing on some
>pages. I tracked it down to the $PATH being
>corrupted.

It woud be nice to understand what's $PATH
corrupted by. But that goes beyond my
programming capabilities under Linux...

Quote:>It looks a bug to me, I guess your subject
>line hides that you've a bug. I've not checked
>any where to see if it a bug. I've saved a log
>of the environment as well which I might forward on.
> ... I guess your subject line hides that you've a bug.

Yes, my subject could be more clear ...

Quote:>So what now?

I think we've to wait till mod_perl 1.22  :o(

I guess that a solution could be *not* to build
it as a DSO.


about this bug/problem. I've lurked around a little
in the mod_perl mailing list archive, but it's
really too large, and couldn't find anything ...

 
 
 

mod_perl 1.21 question...

Post by AK47 » Sun, 08 Aug 1999 04:00:00



the following answer:

---------------------------

Quote:> Hi

> I'm writing to signal a possible bug in mod_perl 1.21

> I've compiled mod_perl as a DSO with Apache 1.3.6 (+ php 3.0.12),
> under Linux RH5.2 (2.0.36). My "srm.conf" file contains these
> lines:

[snip]

This is a problem that several people have just recently begun to work
actively on fixing.  Douglas and I have been exchanging patches on the
list as to different solutions, but we've yet to come up with a
perfect one yet.  Several work but they have side effects or tradeoffs
that aren't necessarily desirable in a final version.  You can check
the past two weeks or so for "path corruption" in the archives and you
should find the discussions of the problem.

You can work around this by:

PerlSetVar PATH /bin:/usr/bin:(other dirs)

This should make the problem go away.

Good luck!  Post if you still have troubles.

Chip
---------------------------

 
 
 

mod_perl 1.21 question...

Post by Ask Bjoern Hanse » Fri, 13 Aug 1999 04:00:00


[...]

Quote:> > But if I reload that page quickly for a few times, the value
> > for %ENV{"PATH"}  is soon filled with garbage...

This is fixed in the latest 1.22-dev snapshot.

Try getting:

  http://dev.apache.org/from-cvs/modperl/modperl_19990812011936.tar.gz

(just know that it is a developers version!)

 - ask

--
ask bjoern hansen - <http://www.netcetera.dk/~ask/>

 
 
 

1. Instaling mod_perl 1.21 on Apache 1.3.11

I am trying to install mod_perl 1.21 on Apache 1.3.11 on RH 6.1, following
instructions in Install.apaci, but I got this message:

cc -c -I..  -I/usr/lib/perl5/5.00503/i386-linux/CORE  -I../os/unix -I../incl
ude
  -DLINUX=2 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BOOL -I/usr/local/in
clud
e -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED `../apaci`
ab.c
cc  -DLINUX=2 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BOOL -I/usr/local/
incl
ude -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
`../apaci` -o a
b   -L../os/unix -L../ap
b.o -lap -los  -lm -lcrypt -rdynamic  -L/usr/local/lib

/usr/lib/perl5/5.00503/i386-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/pe
rl5
/5.00503/i386-linux/CORE -lperl -lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposi
x -l
crypt
make[3]: Leaving directory `/home/apache_1.3.11/src/support'
<=== src/support
make[2]: Leaving directory `/home/apache_1.3.11'
<=== src
make[1]: Leaving directory `/home/apache_1.3.11'
make: execvp: /bin/sh: Argument list too long
make: *** [pm_to_blib] Error 127

Anybody?

--

           toliko od ...

2. cannot set up a DHCP client...

3. apache 1.3.6, mod_perl 1.21 as DSO on Solaris 5.7 ?

4. Support for Diamond Stealth?

5. Apache 1.21 reload question

6. Problem with Solaris 2.6 NFS servers

7. JX-1.1.21 build problems under slakware

8. Colorado IDE Tape Drives under Linux (Redhat 5.1)

9. Adaptec 2940 v1.11 OK, 1.21 Not

10. Adaptec 2940 BIO 1.16 and 1.21; what's the diff

11. Adaptec 2940 BIOS 1.21

12. ADAPTEC 2940 ROM 1.21 Supported?

13. ANNOUNCE: GNU text utilities 1.21 released