You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Randy Kobes <ra...@theoryx5.uwinnipeg.ca> on 2006/05/23 07:06:05 UTC

Apache/2.2.2 on Win32

On Win32 (ActivePerl 817, based on perl-5.8.8), there
are a few failures using Apache/2.2.2 with the svn
mod_perl sources. One set of failures is the
apr-ext tests:
=======================================================================
Failed Test             Stat Wstat Total Fail  Failed  List of Failed
-----------------------------------------------------------------------------
t\apr-ext\brigade.t        5  1280    14   28 200.00%  1-14
t\apr-ext\bucket.t         5  1280    21   42 200.00%  1-21
t\apr-ext\finfo.t          5  1280    27   54 200.00%  1-27
t\apr-ext\perlio.t         5  1280    ??   ??       %  ??
t\apr-ext\pool.t           5  1280    75  150 200.00%  1-75
t\apr-ext\table.t          5  1280    58  116 200.00%  1-58
t\apr-ext\threadmutex.t    5  1280     5   10 200.00%  1-5
t\apr-ext\uri.t            5  1280    36   72 200.00%  1-36
Failed 8/16 test scripts, 50.00% okay. 236/269 subtests 
failed, 12.27% okay.
=======================================================================
These all relate to the same problem: a trace is
=======================================================================
apr_pool_create_ex(apr_pool_t * * 0x0140fd40,
                    apr_pool_t * 0x00000000,
                    int (int)* 0x00000000,
                    apr_allocator_t * 0x00000000) line 798
mpxs_apr_pool_create(interpreter * 0x002243b4,
                      sv * 0x0255abac) line 165
XS_APR__Pool_new(interpreter * 0x002243b4,
                  cv * 0x0255a3e4) line 245 + 43 bytes
=======================================================================
The apr_pool_create_ex() trouble on line 798 refers to 
httpd-2.2.2/srclib/apr/memory/unix/apr_pools.c, which
refers to
============================================================
APR_DECLARE(apr_status_t) apr_pool_create_ex(
   apr_pool_t **newpool,
   apr_pool_t *parent,
   apr_abortfunc_t abort_fn,
   apr_allocator_t *allocator) {
     apr_pool_t *pool;
     apr_memnode_t *node;

     *newpool = NULL;

     if (!parent)
         parent = global_pool;

     if (!abort_fn && parent)
         abort_fn = parent->abort_fn;

     if (allocator == NULL)
         allocator = parent->allocator; // line 798
=======================================================================
with the trouble being that parent is NULL.

The mpxs_apr_pool_create() function is found in
xs/APR/Pool/APR__Pool.h, while XS_APR__Pool_new() is
found in WrapXS/APR/Pool/Pool.c.

There's no analagous problems with the corresponding
apr/ tests (which use mod_perl.so), so it's unique
to using apr out of the mod_perl.so environment.

Has anyone, in a threaded or non-threaded environment,
seen any such problems with a unix flavour with Apache/2.2?

Does something in the above trigger any suggestions to try?
Thanks.

-- 
best regards,
Randy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: Apache/2.2.2 on Win32

Posted by Steve Hay <st...@uk.radan.com>.
Randy Kobes wrote:
> On Wed, 24 May 2006, Steve Hay wrote:
> 
>> I only have a couple of other test failures left in my configuration 
>> too now:
>> Failed Test       Stat Wstat Total Fail  Failed  List of Failed 
>> t\api\status.t   6    2  33.33%  4-5
>> t\apr-ext\finfo.t      27    4  14.81%  11-12 25-26t\apr\finfo.t     
>> 28    4  14.29%  12-13 26-27
>> 11 tests and 36 subtests skipped.Failed 3/240 test scripts,
>> 98.75% okay. 10/2400 subtests failed, 99.58% okay.
> 
> The problem with the api/status test I think is known.
> For the (apr|apr-ext)/finfo.t tests, the problem
> turned out to be a bug in the apr library that comes
> with Apache/2.2 on Win32, which causes the FPROT_WREAD
> and FPROT_WWRITE tests to fail. This is scheduled to
> be fixed in the next apr release, so for now, I committed
> a patch to skip these tests on Win32 for Apache/2.2.

OK, works for me.  Just the api/status test failures left, then.


------------------------------------------------
Radan Computational Ltd.

The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only. If you have received this message in error or there are any problems, please notify the sender immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd. The recipient(s) of this message should check it and any attached files for viruses: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email.

Re: Apache/2.2.2 on Win32

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Randy Kobes wrote:
> On Wed, 24 May 2006, Steve Hay wrote:
> 
>> I only have a couple of other test failures left in my configuration 
>> too now:
>> Failed Test       Stat Wstat Total Fail  Failed  List of Failed 
>> t\api\status.t   6    2  33.33%  4-5
Yes, this is know, on my list, though I'm libapreq land atm
If anyone beats me to it great!



-- 
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F

"It takes a minute to have a crush on someone, an hour to like someone,
and a day to love someone, but it takes a lifetime to forget someone..."

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: Apache/2.2.2 on Win32

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Wed, 24 May 2006, Steve Hay wrote:

> I only have a couple of other test failures 
> left in my configuration too now:
> Failed Test       Stat Wstat Total Fail  Failed  List of 
> Failed t\api\status.t   6    2  33.33%  4-5
> t\apr-ext\finfo.t      27    4  14.81%  11-12 
> 25-26t\apr\finfo.t     28    4  14.29%  12-13 26-27
> 11 tests and 36 subtests skipped.Failed 3/240 test scripts,
> 98.75% okay. 10/2400 subtests failed, 99.58% okay.

The problem with the api/status test I think is known.
For the (apr|apr-ext)/finfo.t tests, the problem
turned out to be a bug in the apr library that comes
with Apache/2.2 on Win32, which causes the FPROT_WREAD
and FPROT_WWRITE tests to fail. This is scheduled to
be fixed in the next apr release, so for now, I committed
a patch to skip these tests on Win32 for Apache/2.2.

-- 
best regards,
Randy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: Apache/2.2.2 on Win32

Posted by Steve Hay <st...@uk.radan.com>.
Randy Kobes wrote:
> On Tue, 23 May 2006, Randy Kobes wrote:
> 
>> On Win32 (ActivePerl 817, based on perl-5.8.8), there
>> are a few failures using Apache/2.2.2 with the svn
>> mod_perl sources. One set of failures is the
>> apr-ext tests:
> [ ... ]
> 
> The problem with these tests turned out to be that
> mp2 is using the config scripts for apr and apu
> to be named apr-1-config and apu-1-config (as
> is found in Apache/2.2), but the Win32 scripts
> I had made up were using the old names of apr-config
> and apu-config (this had the effect of not defining
> MP_HAVE_APR_LIBS in the top-level Makefile.PL). I've updated these 
> scripts on the perl.apache.org site to
> use the new names, and after reinstalling these,
> and making a small change in the xs/APR/APR/Makefile.PL
> to allow for the "1" in libapr-1.lib, these problems
> with the apr-ext tests disappear.
> 
> There's still some individual failures of some
> tests on Win32 with Apache/2.2, but these are
> unrelated to the above problem.

Excellent. Thanks again, Randy! I only have a couple of other test 
failures left in my configuration too now:

Failed Test       Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t\api\status.t                   6    2  33.33%  4-5
t\apr-ext\finfo.t               27    4  14.81%  11-12 25-26
t\apr\finfo.t                   28    4  14.29%  12-13 26-27
11 tests and 36 subtests skipped.
Failed 3/240 test scripts, 98.75% okay. 10/2400 subtests failed, 99.58% 
okay.



------------------------------------------------
Radan Computational Ltd.

The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only. If you have received this message in error or there are any problems, please notify the sender immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd. The recipient(s) of this message should check it and any attached files for viruses: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email.

Re: Apache/2.2.2 on Win32

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Tue, 23 May 2006, Randy Kobes wrote:

> On Win32 (ActivePerl 817, based on perl-5.8.8), there
> are a few failures using Apache/2.2.2 with the svn
> mod_perl sources. One set of failures is the
> apr-ext tests:
[ ... ]

The problem with these tests turned out to be that
mp2 is using the config scripts for apr and apu
to be named apr-1-config and apu-1-config (as
is found in Apache/2.2), but the Win32 scripts
I had made up were using the old names of apr-config
and apu-config (this had the effect of not defining
MP_HAVE_APR_LIBS in the top-level Makefile.PL). I've 
updated these scripts on the perl.apache.org site to
use the new names, and after reinstalling these,
and making a small change in the xs/APR/APR/Makefile.PL
to allow for the "1" in libapr-1.lib, these problems
with the apr-ext tests disappear.

There's still some individual failures of some
tests on Win32 with Apache/2.2, but these are
unrelated to the above problem.

-- 
best regards,
Randy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: Apache/2.2.2 on Win32

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Philip M. Gollucci wrote:
> Randy Kobes wrote:
>> Has anyone, in a threaded or non-threaded environment,
>> seen any such problems with a unix flavour with Apache/2.2?
> ------------------------------------------------------------------------------- 
> 
> t/apache/content_length_header.t               27    1   3.70%  17
> t/api/status.t                                  6    2  33.33%  4-5
> 7 tests skipped.

> I'll try mp2 trunk next.
  t/api/status.t                                  6    2  33.33%  4-5

Is my only failure on mp2 trunk.

Sorry I can't be more of a help.

-- 
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F

"It takes a minute to have a crush on someone, an hour to like someone,
and a day to love someone, but it takes a lifetime to forget someone..."

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: Apache/2.2.2 on Win32

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Randy Kobes wrote:
> Has anyone, in a threaded or non-threaded environment,
> seen any such problems with a unix flavour with Apache/2.2?
-------------------------------------------------------------------------------
t/apache/content_length_header.t               27    1   3.70%  17
t/api/status.t                                  6    2  33.33%  4-5
7 tests skipped.

Thats:
	FreeBSD 6.1
   	perl 5.8.8
	httpd 2.2.2 prefork apr not threaded
	mod_perl 2.0.2

I expect the content_length_header.t to happen in 2.0.2 with 2.2.x.

I'll try mp2 trunk next.

> Does something in the above trigger any suggestions to try?
> Thanks.
Not yet.
Seems to be Windows specific though.



-- 
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F

"It takes a minute to have a crush on someone, an hour to like someone,
and a day to love someone, but it takes a lifetime to forget someone..."

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org