Re: [mp2] failed test building mp2

2003-01-19 Thread Stas Bekman
Nick Tonkin wrote:

On Sun, 19 Jan 2003, Stas Bekman wrote:



Nick Tonkin wrote:


On Fri, 17 Jan 2003, Nick Tonkin wrote:




Hey all,

Building the latest mp2 I get:
protocol/echo_filter.ok  
Failed Test   Stat Wstat Total Fail  Failed  List of Failed
---
apr/threadmutex.t33 100.00%  1-3
*** server localhost.rlnt.net:8529 shutdown
!!! error running tests (please examine t/logs/error_log)
*** Error code 1


Nick et al, please submit a complete bug report as explained here:
http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems
(linked from the shortcuts menu!).



grumble
Hrmph. There should be a lynx-friendly version of these sites. All that
cool template-driven menu stuff just turns into a long long list of links!
/grumble


Eh? What user-unfriendly do you find about perl.apache.org when using 
lynx? It looks very good in it. In any case let's not mix too many things 
in one thread and if you think you can offer to make it better docs-dev / 
perl.apache.org is the list to discuss this kind of issues.

OK. Bug report sent under different mail, using latest cvs
sources. There's two errors now, used to be one!


That's OK. See the followup in reply to your report.

[...]

Patch made no difference to the error.


Can you try to step through with gdb and see what the problem is?
This should help:
http://perl.apache.org/docs/2.0/devel/debug/c.html#Precooked_gdb_Startup_Scripts
You should break at modperl_mgv_resolve, which is probably called from 
modperl_handler_resolve and step through to see where it fails.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Re: [mp2] failed test building mp2

2003-01-18 Thread Stas Bekman
Nick Tonkin wrote:

On Fri, 17 Jan 2003, Nick Tonkin wrote:



Hey all,

Building the latest mp2 I get:
protocol/echo_filter.ok  
Failed Test   Stat Wstat Total Fail  Failed  List of Failed
---
apr/threadmutex.t33 100.00%  1-3
*** server localhost.rlnt.net:8529 shutdown
!!! error running tests (please examine t/logs/error_log)
*** Error code 1

Nick et al, please submit a complete bug report as explained here:
http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems
(linked from the shortcuts menu!).

Based on the previous thread I'd guess that you are using a prefork mpm 
with non-threaded perl.

The perl error was that APR/ThreadMutex.pm was not found. But it's right
next to everything else.


Please specify the exact error mesasge, not the rephrasing version of it.
2.0 is trying to be very smart about finding the modules the handlers 
reside in. And so far it seems to create more trouble than help. The real 
error wasn't that the file wasn't found. Please try again with the patch 
below. It's not a patch destined to go in, but just to see that the real 
problem is elsewhere.

I changed the 'require APR::ThreadMutex' to 'use APR::ThreadMutex'
(outside the handler() sub) anow test suite skips the threadmutex.pm test.

What does this mean?


Again, the autogenerated client test would report skipped, when there was 
an error. I've fixed it in the cvs. please try again with the cvs version, 
where the client aborts the test rather than skipping it, when the server 
side fails.

Here is something to try with the prev error

Index: src/modules/perl/modperl_util.c
===
RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_util.c,v
retrieving revision 1.50
diff -u -r1.50 modperl_util.c
--- src/modules/perl/modperl_util.c 11 Jan 2003 00:02:16 -  1.50
+++ src/modules/perl/modperl_util.c 19 Jan 2003 02:07:30 -
@@ -15,7 +15,7 @@
 POPSTACK;

 if (SvTRUE(ERRSV)) {
-if (logfailure) {
+if (1) {
 (void)modperl_errsv(aTHX_ HTTP_INTERNAL_SERVER_ERROR,
 NULL, NULL);
 }



__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Re: [mp2] failed test building mp2

2003-01-18 Thread Nick Tonkin
On Sun, 19 Jan 2003, Stas Bekman wrote:

 Nick Tonkin wrote:
  On Fri, 17 Jan 2003, Nick Tonkin wrote:
  
  
 Hey all,
 
 Building the latest mp2 I get:
 protocol/echo_filter.ok  
 Failed Test   Stat Wstat Total Fail  Failed  List of Failed
 ---
 apr/threadmutex.t33 100.00%  1-3
 *** server localhost.rlnt.net:8529 shutdown
 !!! error running tests (please examine t/logs/error_log)
 *** Error code 1
 
 Nick et al, please submit a complete bug report as explained here:
 http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems
 (linked from the shortcuts menu!).

grumble
Hrmph. There should be a lynx-friendly version of these sites. All that
cool template-driven menu stuff just turns into a long long list of links!
/grumble

OK. Bug report sent under different mail, using latest cvs
sources. There's two errors now, used to be one!
 
 Here is something to try with the prev error
 
 Index: src/modules/perl/modperl_util.c
 ===
 RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_util.c,v
 retrieving revision 1.50
 diff -u -r1.50 modperl_util.c
 --- src/modules/perl/modperl_util.c 11 Jan 2003 00:02:16 -  1.50
 +++ src/modules/perl/modperl_util.c 19 Jan 2003 02:07:30 -
 @@ -15,7 +15,7 @@
   POPSTACK;
 
   if (SvTRUE(ERRSV)) {
 -if (logfailure) {
 +if (1) {
   (void)modperl_errsv(aTHX_ HTTP_INTERNAL_SERVER_ERROR,
   NULL, NULL);
   }
 
 

Patch made no difference to the error.

- nick

   
Nick Tonkin   {|8^)





Re: [mp2] failed test building mp2

2003-01-17 Thread Nick Tonkin
On Fri, 17 Jan 2003, Nick Tonkin wrote:

 
 Hey all,
 
 Building the latest mp2 I get:
 protocol/echo_filter.ok  
 Failed Test   Stat Wstat Total Fail  Failed  List of Failed
 ---
 apr/threadmutex.t33 100.00%  1-3
 *** server localhost.rlnt.net:8529 shutdown
 !!! error running tests (please examine t/logs/error_log)
 *** Error code 1

The perl error was that APR/ThreadMutex.pm was not found. But it's right
next to everything else.

I changed the 'require APR::ThreadMutex' to 'use APR::ThreadMutex'
(outside the handler() sub) anow test suite skips the threadmutex.pm test.

What does this mean?


- nick

   
Nick Tonkin   {|8^)