Stas Bekman wrote:
Steve Hay wrote:

Here's a minimal conf file which still fails when running "perl t/TEST -start" (or even "C:\apache2\bin\Apache.exe -t -d C:/Temp/modperl-2.0/t -f C:/Temp/modperl-2.0/t/conf/httpd.conf -DAPACHE2 -DPERL_USEITHREADS"):

=====
LoadModule   perl_module C:\Temp\modperl-2.0\src\modules\perl\mod_perl.so
ServerName   localhost:8529
Listen       8529
ServerRoot   C:/Temp/modperl-2.0/t
DocumentRoot C:/Temp/modperl-2.0/t/htdocs
LogLevel     debug
Listen       8530
<VirtualHost _default_:8530>
 PerlOptions  +Parent
 <Perl >
   1;
 </Perl>
</VirtualHost>


The problem with this config, is that you don't handle @INC to use the fresh build. So it loads stuff from the previously installed system-wide mod_perl. Probably it doesn't affect the outcome, but please set it right (e.g. nuke the preinstalled things so it won't load them). You need something like this:

<VirtualHost _default_:8530>
 PerlSwitches -I/home/stas/apache.org/mp2-vhost/blib/lib/Apache2
 PerlSwitches -I/home/stas/apache.org/mp2-vhost/blib/arch/Apache2
 PerlSwitches -I/home/stas/apache.org/mp2-vhost/blib/lib
 PerlSwitches -I/home/stas/apache.org/mp2-vhost/blib/arch
 PerlSwitches -I/home/stas/apache.org/mp2-vhost/lib
 PerlOptions  +Parent
 <Perl>
   1;
 </Perl>
</VirtualHost>

In any case it works fine on linux.

modperl_mgv.c:264: package Apache::PerlSections not defined, attempting to load

Free to wrong pool 262770 not 925938.


The problems is this: perl uses dTHX; calls in some functions which disregards the passed context and retrieves the globally stored context. Which means that *every* time we select an interpreter, we must call PERL_SET_CONTEXT() and pass to it the parent interpreter of the currently used pool :(

In particular for your and mine segfaults the Perl_safesysfree() call is the one that uses dTHX and gets the wrong context at times, and then it crashes.

I think if you build perl without using perl's malloc this particular segfault will go away. Certainly it's not a good solution.


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


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



Reply via email to