Loading ...
Sorry, an error occurred while loading the content.

Re: Apache2::Status bug?

Expand Messages
  • OpenMacNews
    hi stas, ... the devil, apparently, IS in the details ... =) i mod d my httpd.conf as above, and followed the sequence, and -- sure nuf: Syntax Tree Dump
    Message 1 of 6 , May 2, 2005
    • 0 Attachment
      hi stas,

      >> although i'm relatively new to its use, /perl-status seems to behave w/
      >> no obvious errors (so far).
      >>
      >> if there's any info i can provide that may be helpful, pls let me know.
      >
      > You need to enable: the terse feature and then follow: Loaded Modules ->
      > Apache::Const -> Apache::Const::OK -> Syntax Tree Dump (execution order)
      > Did you do that? The config I've used was:
      >
      > <Location /status/perl>
      > PerlSetVar StatusOptionsAll On
      > PerlSetVar StatusDumper On
      > PerlSetVar StatusPeek On
      > PerlSetVar StatusLexInfo On
      > PerlSetVar StatusDeparse On
      > PerlSetVar StatusDeparseOptions "-p -sC"
      > PerlSetVar StatusTerse On
      > PerlSetVar StatusTerseSize On
      > PerlSetVar StatusTerseSizeMainSummary On
      > SetHandler modperl
      > PerlResponseHandler Apache2::Status
      > </Location>

      the devil, apparently, IS in the details ... =)

      i mod'd my httpd.conf as above, and followed the sequence, and -- sure nuf:

      Syntax Tree Dump (execution) for Apache2::Const::OK
      OK

      The server encountered an internal error or misconfiguration and was unable
      to complete your request.

      More information about this error may be available in the server error log.

      Apache/2.1.5-dev (Unix) DAV/2 SVN/1.2.0-rc2 mod_perl/1.999.23-dev
      Perl/v5.8.6 Port 80


      w/ the following in the apachelog ...

      [Mon May 02 10:12:02 2005] [error] [client 10.0.0.6] err: coderef has no
      START\n, referer:
      http://localhost/perl-status/Apache2::Const::OK/FUNCTION?cv_dump

      fwiw, setting any/all of:

      > PerlSetVar StatusTerse Off
      > PerlSetVar StatusTerseSize Off
      > PerlSetVar StatusTerseSizeMainSummary Off

      has, seemingly, no effect on the error ...

      cheers,

      richard
    • Stas Bekman
      ... [...] ... I ve reproduced this problem at the command line and filed a bug report: http://rt.perl.org/rt3/index.html?q=35849 Notice that it happens only
      Message 2 of 6 , May 17, 2005
      • 0 Attachment
        Stas Bekman wrote:
        > Octavian Rasnita wrote:
        >
        >> Hello,
        >>
        >> I have finished (I hope) installing mod_perl rc5 under Windows 2000,
        >> and I
        >> have tried the server using http://localhost/perl-status.
        >>
        >> I was able to use it very well, until I have tried to see the following
        >> links in order:
        >> Loaded Modules - Apache::Const - Apache::Const::OK - Syntax Tree Dump
        >> (execution order)
        [...]
        >> In the error log, the only error was:
        >>
        >> [Fri Apr 29 19:17:00 2005] [error] [client 127.0.0.1] err: coderef has no
        >> START\n, referer:
        >> http://localhost/perl-status/Apache2::Const::OK/FUNCTION?cv_dump
        >> ---
        >>
        >> I have also tried the following links in order:
        >> Loaded Modules - Apache::Const - Apache::Const::OK - - Syntax Tree Dump
        >> (syntax order)
        >>
        >> But it gave me the following error in the log file:
        >>
        >> [Fri Apr 29 19:42:20 2005] [error] [client 127.0.0.1] err: unknown
        >> function
        >> (main::slow)\n, referer:
        >> http://localhost/perl-status/Apache2::Const::OK/FUNCTION?cv_dump
        >> ---
        >>
        >> Could this be a bug, or I need to change something in the script to
        >> make it
        >> compatible with Windows?
        >
        >
        > It's more like B::Terse bug, notice the comment:
        >
        > sub noh_b_terse {
        > my $r = shift;
        >
        > $r->content_type("text/plain");
        > return unless has($r, "terse");
        >
        > no strict 'refs';
        > my($arg, $name) = (split "/", $r->uri)[-2,-1];
        > $r->print("Syntax Tree Dump ($b_terse_exp{$arg}) for $name\n\n");
        >
        > # XXX: blead perl dumps things to STDERR, though the same version
        > # works fine with 1.27
        > B::Terse::compile($arg, $name)->();
        > }
        >
        > I get the same problem on linux/prefork mpm.

        I've reproduced this problem at the command line and filed a bug report:
        http://rt.perl.org/rt3/index.html?q=35849

        Notice that it happens only with XS subs.

        --
        __________________________________________________________________
        Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
        http://stason.org/ mod_perl Guide ---> http://perl.apache.org
        mailto:stas@... http://use.perl.org http://apacheweek.com
        http://modperlbook.org http://apache.org http://ticketmaster.com
      Your message has been successfully submitted and would be delivered to recipients shortly.