On Sat, 2003-03-22 at 23:14, Stas Bekman wrote:
[snip]
>
> Any chance you can come up with a stripped version of Apache::PAR that still
> reproduces the problem? So we can have a good test?
>
> If not, where do I get the version of Apache::PAR that you are having the
> problem with?
>
Actually, it was easier than I thought to come up with a stripped down
version - it can be done without Apache::PAR or PAR at all - it appears
to be happening with any PerlModule coming from an add_config(). The
following code generates the same segfault for me:
In startup.pl:
use lib qw(/usr/local/apache2/lib);
use Apache::ServerUtil;
my $conf = "
PerlModule TestMod
<Location /test/module>
SetHandler perl-script
PerlHandler TestMod
</Location>
";
Apache->server->add_config([split /\n/, $conf]);
However, it works if I remove the PerlModule TestMod line above, or if
the configuration is instead moved to httpd.conf after startup.pl:
In startup.pl:
use lib qw(/usr/local/apache2/lib);
In httpd.conf after startup.pl:
PerlModule TestMod
<Location /test/module>
SetHandler perl-script
PerlHandler TestMod
</Location>
Below is the TestMod.pm that I'm using (although it doesn't really
appear to matter what the module is):
package TestMod;
use Apache::Const qw(OK);
use Apache::RequestRec;
use Apache::RequestIO;
sub handler {
my $r = shift;
$r->content_type('text/plain');
$r->print("Hello from a Perl Module\n");
return OK;
}
1;
--
Nathan Byrd <[EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]