First of all, sorry if this is not the appropriate list.
This is the right list, Juanma. ;) Thank you for your report.
I have a problem with the latest mod_perl 2.0 binary for Windows and ActivePerl 5.8.1 build 807. (I've tested it on XP and 2K with identical results, BTW.)
I know the latest release of mod_perl 2.0 is 1.99_11, but by following the instructions at
http://perl.apache.org/docs/2.0/os/win32/install.html#PPM_Packages
what gets installed is something that identifies itself as 1.99_12:
ppm> query mod_perl Querying target 1 (ActivePerl 5.8.1.807) 1. mod_perl [1.99_12~ Embed a Perl interpreter in the Apache/2.0.48 http~ ppm>
I suppose Randy simply used the cvs version to make this build.
Once installed, it causes some errors with Apache::Status.
For example, requesting http://localhost/perl-status shows the required information, followed by:
OK The server encountered an internal error or misconfiguration and was unable to complete your request.
[...]
FWIW, Apache::Status::handler returns 0, instead of Apache::OK or whatever, but I'm not sure if that's the right value or not.
Good catch. Now fixed in cvs. Thank you.
In fact what happened is that I started to port Apache::Status to mp2, but was distracted by other issues and never had a chance to complete it. It's almost completed though.
http://localhost/perl-status?myconfig fails, and the error logs says:
[Sat Nov 15 17:39:17 2003] [error] [client 127.0.0.1] Modification of a read-only value attempted at C:/bin/Perl/lib/Config.pm line 75. , referer: http://localhost/perl-status
Config.pm line 75 tries to modify $summary, which is declared as
our $summary : unique = ...
which could be the cause, as perlfunc states that:
[...] this attribute also has the effect of making the global readonly when the first new interpreter is cloned (for example, when the first new thread is created).
Yup, confirmed, that's a bug in perl:
% perl-5.8.1-ithread -le 'use threads; require Config; \
threads->new(sub { })->detach; print Config::myconfig()'
Modification of a read-only value attempted at /home/stas/perl/5.8.1-ithread/lib/5.8.1/i686-linux-thread-multi/Config.pm line 88.
I reported it to p5p and CC'ed you.
However this works:
% perl-5.8.1-ithread -le 'use threads; require Config; \
my $config = Config::myconfig(); threads->new(sub { })->detach; \
print $config'though it didn't help in Apache/Status :( I guess temprorary we could call a slow external query:
qx[$^X -V]
but I'll just disable it till this ussue gets resolved.
p.s. though it wasn't needed for this report as I was able to reproduce the problem, in the future bug reports please follow: http://perl.apache.org/bugs/. Thanks.
__________________________________________________________________ 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]
