httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: TestConfigPerl problem
Date Mon, 10 Feb 2003 23:01:07 GMT
Joe Orton wrote:
> Since rev 1.63 of TestConfigPerl.pm I get this error running TEST (after
> a fresh checkout)
> 
> make[1]: Leaving directory `/home/joe/src/httpd-test/pf/c-modules/authany'
> !!! configure() has failed:
> Use of uninitialized value in subroutine entry at 
> /home/joe/src/httpd-test/pf/t/../Apache-Test/lib/Apache/TestConfigPerl.pm 
> line 318, <GEN48> line 18.
> 
> backing down to r1.62 works fine. Any ideas? I'm using perl 5.8.0.

I can't reproduce it. The difference between 1.62 and 1.63 is a big 
refactoring of the code that parses the config sections.

Can you please check what is undefined? $line, $indent? Also a trace of calls 
that leads to this situation will help, which the following patch should 
accomplish:

Index: Apache-Test/lib/Apache/TestConfigPerl.pm
===================================================================
RCS file: 
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigPerl.pm,v
retrieving revision 1.65
diff -u -r1.65 TestConfigPerl.pm
--- Apache-Test/lib/Apache/TestConfigPerl.pm    3 Feb 2003 02:18:32 -0000 
   1.65
+++ Apache-Test/lib/Apache/TestConfigPerl.pm    10 Feb 2003 23:00:46 -0000
@@ -315,6 +315,9 @@
  sub process_vhost_open_tag {
      my($self, $line, $indent) = @_;

+    use Carp;
+    Carp::confess("whoah!") unless defined $line and defined $indent;
+
      my $cfg = $self->parse_vhost($line);
      my $port = $cfg->{port};
      $cfg->{out_postamble}->();


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Mime
View raw message