Steve Hay wrote:
Randy Kobes wrote:

produce, but not in all cases.



Anyway, here's a trace, this time with the Perl symbols:

does it mean that you get a segfault?


The Windows equivalent, yes ... The message that comes up
is an access violation in mod_perl.so.


Now that I've got ap2+mp2 running with perl-5.8.1, I get the same result as Randy running the test suite: It gets as far as:

filter\both_str_con_add........ok 2/4

and then crashes.

Then line it crashed at was this:

   modperl_handler_t *handler =
       ((modperl_filter_ctx_t *)filter->f->ctx)->handler;

and I notice that "filter->f->ctx" has the value 0x00000000 at this point, hence the access violation -- you can't access the "handler" member of a struct pointed to by "filter->f->ctx" when that pointer is NULL.

Don't know if that helps anyone at all.

Most likely something else has corrupted the memory.


Re-running the tests as "perl t/TEST -verbose t/filter" fixes everything except for filter/in_str_consume.t test 1, which still fails for me (even with perl-5.8.1).

that means that some previous tests affect the filter tests. t/SMOKE is good at finding the shortest sequence of tests that lead to the failure.


But I'm a bit lost in the amount of mixed reports. Can you please report the filter/in_str_consume.t in a separate email/thread? Thanks.

What's that all about, then?

Stas: In a previous mail you said, "I suspect that the problem has surfaced after I have changed the number of running servers from one to two to allow the proxy work. What happens if you make the proxy filter skip and run the tests with only one server available? I bet they will all work." Could I have that again in English please? What do you want me to try?

Sorry, that means, making that test skip as in the patch below. And then run:


t/TEST -conf -maxclients 1
t/TEST

Index: t/modules/proxy.t
===================================================================
RCS file: /home/cvs/modperl-2.0/t/modules/proxy.t,v
retrieving revision 1.1
diff -u -r1.1 proxy.t
--- t/modules/proxy.t   26 Aug 2003 23:28:04 -0000      1.1
+++ t/modules/proxy.t   16 Sep 2003 18:52:21 -0000
@@ -8,7 +8,7 @@

my $location = "/TestModules__proxy";

-plan tests => 1, [qw(proxy access)];
+plan tests => 1, 0;

 my $expected = "ok";
 my $received = GET_BODY_ASSERT $location;


__________________________________________________________________ Stas Bekman JAm_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


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to