perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cory Omand" <com...@blastwave.org>
Subject Re: Apache 2.2 and libapreq2 2.0.7 segfault
Date Thu, 30 Mar 2006 02:00:22 GMT
On 3/29/06, Philip M. Gollucci <pgollucci@p6m7g8.com> wrote:
> Cory Omand wrote:
> >   --with-mm-opts="INSTALLDIRS=vendor"
> wow, someone is using that other then me... Glad I added it :)

I'm glad you added it too :)

> Can you double check and make sure everything is picking up the same
> versions of apr and apr-util. (Do you have any other's installed?)
> (preferably via ldd)

That was one of the first things I checked.  I do only have one
version of libapr/aprutil installed, and both mod_apreq2.so and the
Perl shared module are both pointing to the correct libs.  I also
recompiled libapreq2 against the exact build of apache2 I'm running,
and still get a segfault when constructing new Apache2::Request
objects.

> If you run 'make test' in for httpd-apreq what happens ?

Excellent question :).  I disabled test on this module in my build
system during the dev releases, and never re-enabled it when 2.07 came
out... [rebuilding with test enabled]...

It looks like all of the Perl module tests pass with no issues.  The
tests then generate a bunch of SSL certificates, and fire up apache. 
Most of the apache based tests pass, up until the api/apreq tests:

server localhost:8529 started
t/api/cookie.........ok
t/api/error..........ok
t/api/module.........ok
t/api/param..........ok
t/apreq/big_input....ok
t/apreq/cgi..........# Failed test 1 in t/apreq/cgi.t at line 62
t/apreq/cgi..........NOK 1# Failed test 2 in t/apreq/cgi.t at line 62 fail #2
t/apreq/cgi..........NOK 2# Failed test 3 in t/apreq/cgi.t at line 62 fail #3
t/apreq/cgi..........NOK 3# Failed test 4 in t/apreq/cgi.t at line 62 fail #4
t/apreq/cgi..........NOK 4# Failed test 5 in t/apreq/cgi.t at line 62 fail #5
t/apreq/cgi..........NOK 5# Failed test 6 in t/apreq/cgi.t at line 62 fail #6
t/apreq/cgi..........NOK 6# Failed test 7 in t/apreq/cgi.t at line 62 fail #7
t/apreq/cgi..........NOK 7# Failed test 8 in t/apreq/cgi.t at line 62 fail #8
t/apreq/cgi..........NOK 8# Failed test 9 in t/apreq/cgi.t at line 62 fail #9
t/apreq/cgi..........NOK 9# Failed test 10 in t/apreq/cgi.t at line 84
t/apreq/cgi..........NOK 10# Failed test 11 in t/apreq/cgi.t at line 84 fail #2
t/apreq/cgi..........NOK 11# Failed test 12 in t/apreq/cgi.t at line 84 fail #3
t/apreq/cgi..........NOK 12# Failed test 13 in t/apreq/cgi.t at line 84 fail #4
t/apreq/cgi..........NOK 13# Failed test 14 in t/apreq/cgi.t at line 84 fail #5
t/apreq/cgi..........NOK 14# Failed test 15 in t/apreq/cgi.t at line 84 fail #6
t/apreq/cgi..........NOK 15# Failed test 16 in t/apreq/cgi.t at line 84 fail #7
t/apreq/cgi..........NOK 16# Failed test 17 in t/apreq/cgi.t at line 84 fail #8
t/apreq/cgi..........NOK 17# Failed test 18 in t/apreq/cgi.t at line 84 fail #9
t/apreq/cgi..........NOK 18# Failed test 19 in t/apreq/cgi.t at line 84 fail #10
t/apreq/cgi..........NOK 19# Failed test 20 in t/apreq/cgi.t at line 84 fail #11
t/apreq/cgi..........NOK 20# Failed test 21 in t/apreq/cgi.t at line 84 fail #12
t/apreq/cgi..........NOK 21# Failed test 22 in t/apreq/cgi.t at line 91
t/apreq/cgi..........NOK 22# Failed test 23 in t/apreq/cgi.t at line 94
t/apreq/cgi..........NOK 23# Failed test 24 in t/apreq/cgi.t at line 99
t/apreq/cgi..........NOK 24# Failed test 25 in t/apreq/cgi.t at line 104
t/apreq/cgi..........NOK 25# Failed test 26 in t/apreq/cgi.t at line 109
t/apreq/cgi..........NOK 26# Failed test 27 in t/apreq/cgi.t at line 118
t/apreq/cgi..........NOK 27# Failed test 28 in t/apreq/cgi.t at line 127
t/apreq/cgi..........NOK 28# Failed test 29 in t/apreq/cgi.t at line 137
t/apreq/cgi..........NOK 29# Failed test 30 in t/apreq/cgi.t at line 148
t/apreq/cgi..........NOK 30# Failed test 31 in t/apreq/cgi.t at line 157
t/apreq/cgi..........NOK 31request has failed (the response code was: 404)
see t/logs/error_log for more details
t/apreq/cgi..........dubious
        Test returned status 29 (wstat 7424, 0x1d00)
DIED. FAILED tests 1-41
        Failed 41/41 tests, 0.00% okay
t/apreq/cookie.......ok
t/apreq/inherit......ok
t/apreq/request......ok
t/apreq/upload.......request has failed (the response code was: 404)
see t/logs/error_log for more details
t/apreq/upload.......dubious
        Test returned status 29 (wstat 7424, 0x1d00)
DIED. FAILED tests 1-20
        Failed 20/20 tests, 0.00% okay
Failed Test      Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/apreq/cgi.t      29  7424    41   51 124.39%  1-41
t/apreq/upload.t   29  7424    20   40 200.00%  1-20
Failed 2/10 test scripts, 80.00% okay. 61/191 subtests failed, 68.06% okay.
[warning] server localhost:8529 shutdown

The error log contains many errors like the following:

[Wed Mar 29 20:54:48 2006] [error] [client 127.0.0.1] Premature end of
script headers: test_cgi.pl
Can't load '/export/medusa/comand/csw/cpan/libapreq2/work/comand-ra.d/libapreq2-2.07/glue/perl/t/cgi-bin/../../blib/arch/auto/APR/Request/Request.so'
for module APR::Request: ld.so.1: test_cgi.pl: fatal: libapreq2.so.3:
open failed: No such file or directory at
/opt/csw/lib/perl/5.8.8/DynaLoader.pm line 230.
 at /export/medusa/comand/csw/cpan/libapreq2/work/comand-ra.d/libapreq2-2.07/glue/perl/t/cgi-bin/../../blib/lib/APR/Request/Param.pm
line 27
Compilation failed in require at
/export/medusa/comand/csw/cpan/libapreq2/work/comand-ra.d/libapreq2-2.07/glue/perl/t/cgi-bin/../../blib/lib/APR/Request/Param.pm
line 27.
BEGIN failed--compilation aborted at
/export/medusa/comand/csw/cpan/libapreq2/work/comand-ra.d/libapreq2-2.07/glue/perl/t/cgi-bin/../../blib/lib/APR/Request/Param.pm
line 27.
Compilation failed in require at
/export/medusa/comand/csw/cpan/libapreq2/work/comand-ra.d/libapreq2-2.07/glue/perl/t/cgi-bin/test_cgi.pl
line 11.
BEGIN failed--compilation aborted at
/export/medusa/comand/csw/cpan/libapreq2/work/comand-ra.d/libapreq2-2.07/glue/perl/t/cgi-bin/test_cgi.pl
line 11.

This appears to be a test issue, as nothing is yet installed.  The
first half of the tests find libapreq properly, so why would this
section not find it?  Oh, and no segfaults during the test either...
strange.

- C.

Mime
View raw message