On Fri, 27 Sep 2019 at 11:32, Pete Houston <p...@openstrike.co.uk> wrote:
>
> On Fri, Sep 27, 2019 at 08:22:11AM +0100, Steve Hay wrote:
> > Can you give any more detail on the apache_resource.t failure? I've
> > not seen that reported anywhere else.
>
> $ t/TEST -verbose t/modules/apache_resource.t
> [warning] setting ulimit to allow core files
> ulimit -c unlimited; /usr/bin/perl /home/pete/src/mod_perl-2.0.11-rc3/t/TEST 
> -verbose 't/modules/apache_resource.t'
> /usr/local/httpd-2.4.41/bin/httpd  -d /home/pete/src/mod_perl-2.0.11-rc3/t -f 
> /home/pete/src/mod_perl-2.0.11-rc3/t/conf/httpd.conf -D APACHE2 -D APACHE2_4 
> -D PERL_USEITHREADS
> using Apache/2.4.41 (event MPM)
>
> waiting 300 seconds for server to start: .[Fri Sep 27 11:21:12.994001 2019] 
> [env:warn] [pid 4182:tid 139866432870272] AH01506: PassEnv variable 
> LD_LIBRARY_PATH was undefined
> [Fri Sep 27 11:21:13.154432 2019] [perl:info] [pid 4182:tid 139866432870272] 
> 6 Apache2:: modules loaded
> [Fri Sep 27 11:21:13.154642 2019] [perl:info] [pid 4182:tid 139866432870272] 
> 0 APR:: modules loaded
> [Fri Sep 27 11:21:13.154837 2019] [perl:info] [pid 4182:tid 139866432870272] 
> base server + 29 vhosts ready to run tests
> ...
> waiting 300 seconds for server to start: ok (waited 3 secs)
> server localhost.localdomain:8529 started
> server localhost.localdomain:8530 listening (filter_out_apache)
> server localhost.localdomain:8531 listening (perlsections)
> server localhost.localdomain:8532 listening (inherit)
> server localhost.localdomain:8533 listening (TestUser::rewrite)
> server localhost.localdomain:8534 listening (TestVhost::log)
> server localhost.localdomain:8535 listening (TestVhost::config)
> server localhost.localdomain:8536 listening (TestModperl::perl_options2)
> server localhost.localdomain:8537 listening (TestModperl::perl_options)
> server localhost.localdomain:8538 listening (TestModperl::merge)
> server localhost.localdomain:8539 listening (TestModperl::setupenv)
> server localhost.localdomain:8540 listening 
> (TestDirective::perlcleanuphandler)
> server localhost.localdomain:8541 listening (TestModules::proxy)
> server localhost.localdomain:8542 listening (TestProtocol::echo_block)
> server localhost.localdomain:8543 listening (TestProtocol::echo_bbs2)
> server localhost.localdomain:8544 listening (TestProtocol::pseudo_http)
> server localhost.localdomain:8545 listening (TestProtocol::echo_timeout)
> server localhost.localdomain:8546 listening (TestProtocol::echo_filter)
> server localhost.localdomain:8547 listening (TestProtocol::echo_nonblock)
> server localhost.localdomain:8548 listening (TestProtocol::echo_bbs)
> server localhost.localdomain:8549 listening (TestPreConnection::note)
> server localhost.localdomain:8550 listening (TestHooks::init)
> server localhost.localdomain:8551 listening (TestHooks::trans)
> server localhost.localdomain:8552 listening (TestHooks::hookrun)
> server localhost.localdomain:8553 listening (TestHooks::stacked_handlers2)
> server localhost.localdomain:8554 listening (TestHooks::startup)
> server localhost.localdomain:8555 listening (TestFilter::both_str_con_add)
> server localhost.localdomain:8556 listening (TestFilter::in_bbs_msg)
> server localhost.localdomain:8557 listening (TestFilter::in_str_msg)
> server localhost.localdomain:8558 listening (TestFilter::in_bbs_inject_header)
> server localhost.localdomain:8559 listening (TestDirective::perlmodule)
> server localhost.localdomain:8560 listening (TestDirective::perlrequire)
> server localhost.localdomain:8561 listening (TestDirective::perlloadmodule4)
> server localhost.localdomain:8562 listening (TestDirective::perlloadmodule5)
> server localhost.localdomain:8563 listening (TestDirective::perlloadmodule3)
> server localhost.localdomain:8564 listening (TestAPI::add_config)
> server localhost.localdomain:8565 listening (TestDirective::perlloadmodule6)
> server localhost.localdomain:8566 listening (TestHooks::push_handlers_anon)
> t/modules/apache_resource.t ..
> 1..1
> # Running under perl version 5.020003 for linux
> # Current time local: Fri Sep 27 11:21:16 2019
> # Current time GMT:   Fri Sep 27 10:21:16 2019
> # Using Test.pm version 1.26
> # Using Apache/Test.pm version 1.42
> not ok 1
> # Failed test 1 in t/modules/apache_resource.t at line 18
> Failed 1/1 subtests
>
> Test Summary Report
> -------------------
> t/modules/apache_resource.t (Wstat: 0 Tests: 1 Failed: 1)
>   Failed test:  1
> Files=1, Tests=1,  1 wallclock secs ( 0.05 usr  0.02 sys +  0.47 cusr  0.11 
> csys =  0.65 CPU)
> Result: FAIL
> Failed 1/1 test programs. 1/1 subtests failed.
> [warning] server localhost.localdomain:8529 shutdown
> [  error] error running tests (please examine t/logs/error_log)
>
>
> Some potentially relevant entries in t/logs/error_log:
>
> [Fri Sep 27 11:21:15.932361 2019] [cgid:error] [pid 4190:tid 139866432870272] 
> (2)No such file or directory: AH01243: Couldn't bind unix domain socket 
> /home/pete/src/mod_perl-2.0.11-rc3/t/logs/logs/cgisock.4186
> ...
> [Fri Sep 27 11:21:16.040150 2019] [cgid:crit] [pid 4186:tid 139866432870272] 
> AH01238: cgid daemon failed to initialize
> ...
> [Fri Sep 27 11:21:16.546874 2019] [authz_core:debug] [pid 4193:tid 
> 139866043488000] mod_authz_core.c(846): [client 127.0.0.1:52528] AH01628: 
> authorization result: granted (no directives)
> [Fri Sep 27 11:21:17.479647 2019] [authz_core:debug] [pid 4192:tid 
> 139865920358144] mod_authz_core.c(846): [client 127.0.0.1:52529] AH01628: 
> authorization result: granted (no directives)
> ap_get_server_version() is deprecated since httpd/2.3.0 try using 
> ap_get_server_(description|banner)() instead at 
> /home/pete/src/mod_perl-2.0.11-rc3/blib/lib/Apache2/Status.pm line 145.
> Use of uninitialized value $lim in pattern match (m//) at 
> blib/lib/BSD/Resource.pm (autosplit into 
> blib/lib/auto/BSD/Resource/_find_rlimit.al) line 579.
> Use of uninitialized value $lim in pattern match (m//) at 
> blib/lib/BSD/Resource.pm (autosplit into 
> blib/lib/auto/BSD/Resource/_find_rlimit.al) line 585.
> Use of uninitialized value $lim in concatenation (.) or string at 
> blib/lib/BSD/Resource.pm (autosplit into 
> blib/lib/auto/BSD/Resource/_find_rlimit.al) line 588.
> [Fri Sep 27 11:21:17.504749 2019] [perl:error] [pid 4192:tid 139865920358144] 
> [client 127.0.0.1:52529] getrlimit: Unknown limit '' at 
> /home/pete/src/mod_perl-2.0.11-rc3/blib/lib/Apache2/Resource.pm line 119.\n
>
> I can compress and attach the whole error log if you think it might help.
>

I think the last line of the log extracts above is the clue, but I'm
not going to be able to fix this myself. Line 119 in
Apache2/Resource.pm is:

        my ($soft, $hard) = getrlimit $val;

So it looks like $val is blank. That comes from line 118:

        my $val = eval "&BSD::Resource::${res}()";

where $res is one of the keys of the $lim hashref, which comes from line 112:

    my $lim = get_rlimits();

Both getrlimit() and get_rlimits() are further BSD::Resource
functions, which I see the error log also has further references to
above (several uninitialized value warnings), but is not a thing that
I have access to on Windows. Unless anyone else can help here then
we'll have to let this one go for now. Hopefully it's not a
showstopper.

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

Reply via email to