Steve Hay wrote:

>I'll try whittling down the conf even further.
>
The attached conf & extra startup script is fairly minimal and still 
causes this sequence to crash:

    perl t/TEST -verbose t/modules/reload.t t/perl/api.t t/perl/ithreads.t

But if I comment-out the line:

    PerlModule TestPerl::hash_attack

then the tests succeed.

If I restore that line, but change t/response/TestPerl/hash_attack.pm so 
that it only contains:

    package TestPerl::hash_attack;
    1;

then ithreads.t crashes again!

Bizarre.  Is this worth pursuing any further?

- Steve


------------------------------------------------
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.
LoadFile "C:\apache2\perl5\bin\perl58.dll"
LoadModule perl_module "C:\Temp\mod_perl-2.0\src\modules\perl\mod_perl.so"

ServerName localhost:8529
Listen     0.0.0.0:8529

ServerRoot   "C:/Temp/mod_perl-2.0/t"
DocumentRoot "C:/Temp/mod_perl-2.0/t/htdocs"

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

ThreadsPerChild      50
MaxRequestsPerChild  0

PerlSwitches -IC:/Temp/mod_perl-2.0/t
PerlSwitches -IC:/Temp/mod_perl-2.0/t/response
PerlSwitches -IC:/Temp/mod_perl-2.0/blib/arch
PerlSwitches -IC:/Temp/mod_perl-2.0/blib/lib
PerlSwitches -IC:/Temp/mod_perl-2.0/t/lib
PerlRequire C:\Temp\mod_perl-2.0\t\conf\modperl_extra.pl

PerlModule Apache::Reload
<Location /TestModules__reload>
    PerlInitHandler Apache::TestHandler::same_interp_fixup Apache::Reload
    PerlSetVar ReloadDebug Off
    PerlSetVar ReloadAll Off
    SetHandler modperl
    PerlResponseHandler TestModules::reload
</Location>

<Location /TestPerl__api>
    SetHandler modperl
    PerlResponseHandler TestPerl::api
</Location>

#PerlModule TestPerl::foo

Listen 0.0.0.0:8557
<VirtualHost _default_:8557>
    ServerName localhost:8557
    
    <IfDefine PERL_USEITHREADS>
        PerlOptions +Parent
        PerlInterpStart         1
        PerlInterpMax           1
        PerlInterpMinSpare      1
        PerlInterpMaxSpare      1
    </IfDefine>
    
    PerlSwitches -IC:/Temp/mod_perl-2.0/t
    
    <Location /TestPerl__ithreads>
        SetHandler modperl
        PerlResponseHandler TestPerl::ithreads
    </Location>
    
</Virtualhost>

<Location /TestPerl__ithreads>
    SetHandler modperl
    PerlResponseHandler TestPerl::ithreads
</Location>
use strict;
use warnings FATAL => 'all';

use Apache2 ();
use Apache::ServerRec ();
use Apache::ServerUtil ();
use Apache::Process ();
use Apache::RequestRec ();
use Apache::RequestIO ();
use Apache::Const -compile => ':common';

test_add_config();

sub test_add_config {
    my $conf = <<'EOC';
PerlModule Apache::TestHandler
<Location /apache/add_config>
  SetHandler perl-script
  PerlResponseHandler Apache::TestHandler::ok1
</Location>
EOC
    Apache->server->add_config([split /\n/, $conf]);

    Apache->server->add_config(['<Perl >', '1;', '</Perl>']);
}

1;

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

Reply via email to