[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl
Subject: Re: Apache2::Dispatch issue
From: Joe Breeden <joe.breeden () gmail ! com>
Date: 2010-06-08 19:36:33
Message-ID: AANLkTingupOLUWNGKIC2MhzAa7U3NaIN0PBbEcC-CmBU () mail ! gmail ! com
[Download RAW message or body]
On Tue, Jun 8, 2010 at 1:21 PM, Fred Moyer <fred@redhotpenguin.com> wrote:
> On Tue, Jun 8, 2010 at 9:10 AM, Joe Breeden <joe.breeden@gmail.com> wrote:
> > I'm seeing this in the log on hits that fail:
> >
> > Use of uninitialized value in substitution iterator at
> > /usr/lib/perl5/site_perl/5.8.8/Apache/Dispatch/Util.pm line 350.
> > Use of uninitialized value in string eq at
> > /usr/lib/perl5/site_perl/5.8.8/Apache/Dispatch/Util.pm line 368.
>
> Can you apply this patch and post the output from the failed hits?
>
> Index: lib/Apache/Dispatch/Util.pm
> ===================================================================
> --- lib/Apache/Dispatch/Util.pm (revision 86)
> +++ lib/Apache/Dispatch/Util.pm (working copy)
> @@ -326,6 +326,7 @@
> my $location;
>
> # change all the / to ::
> + $log->debug('uri: ' . $r->uri) if $debug > 1;
> (my $class_and_method = $r->uri) =~ s!/!::!g;
>
> if ($newloc) {
>
>
>
I made the change, but didn't see the output. In fact, I don't think any of
the logging output is actually being generated. It may be because my
mod_perl wasn't compiled with the proper switches for this module. I just
used the mod_perl that was configured with the host. I re-read the perldoc
and noticed this:
"This is alpha software, and as such has not been tested on multiple
platforms or environments for security, stability or other concerns. It
requires PERL_DIRECTIVE_HANDLERS=1, PERL_LOG_API=1, PERL_HANDLER=1, and
maybe other hooks to function properly."
Which makes me think I should look at the way mod_perl was compiled on my
box.
But, just in case it helps, I changed the $log->debug to just a print STDERR
and got:
uri: /admin
Thanks for the help
[Attachment #3 (text/html)]
<br><br><div class="gmail_quote">On Tue, Jun 8, 2010 at 1:21 PM, Fred Moyer <span \
dir="ltr"><<a href="mailto:fred@redhotpenguin.com">fred@redhotpenguin.com</a>></span> \
wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; \
border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> <div class="im">On \
Tue, Jun 8, 2010 at 9:10 AM, Joe Breeden <<a \
href="mailto:joe.breeden@gmail.com">joe.breeden@gmail.com</a>> wrote:<br> > \
I'm seeing this in the log on hits that fail:<br> ><br>
> Use of uninitialized value in substitution iterator at<br>
> /usr/lib/perl5/site_perl/5.8.8/Apache/Dispatch/Util.pm line 350.<br>
> Use of uninitialized value in string eq at<br>
> /usr/lib/perl5/site_perl/5.8.8/Apache/Dispatch/Util.pm line 368.<br>
<br>
</div>Can you apply this patch and post the output from the failed hits?<br>
<br>
Index: lib/Apache/Dispatch/Util.pm<br>
===================================================================<br>
--- lib/Apache/Dispatch/Util.pm (revision 86)<br>
+++ lib/Apache/Dispatch/Util.pm (working copy)<br>
@@ -326,6 +326,7 @@<br>
my $location;<br>
<br>
# change all the / to ::<br>
+ $log->debug('uri: ' . $r->uri) if $debug > 1;<br>
(my $class_and_method = $r->uri) =~ s!/!::!g;<br>
<br>
if ($newloc) {<br>
<div><div></div><div class="h5"><br>
<br></div></div></blockquote><div><br>I made the change, but didn't see the \
output. In fact, I don't think any of the logging output is actually being \
generated. It may be because my mod_perl wasn't compiled with the proper switches \
for this module. I just used the mod_perl that was configured with the host. I \
re-read the perldoc and noticed this:<br> <br>"This is alpha software, and as \
such has not been tested on multiple platforms or environments for security, \
stability or other concerns. It requires PERL_DIRECTIVE_HANDLERS=1, PERL_LOG_API=1, \
PERL_HANDLER=1, and maybe other hooks to function properly."<br><br>Which makes \
me think I should look at the way mod_perl was compiled on my box. <br><br>But, just \
in case it helps, I changed the $log->debug to just a print STDERR and got:<br> \
<br>uri: /admin<br><br>Thanks for the help</div></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic