You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Влад Сафронов <vl...@immo.ru> on 2003/07/18 14:56:51 UTC

Need help, Global Hash corruption under mod_perl in perl 5.8.0 !?!

Hi, 
 
I used Apache::ePerl ( http://www.ossp.org/pkg/tool/eperl/
<http://www.ossp.org/pkg/tool/eperl/> ) for a long time (up to perl
5.6.1)
until our admin install perl 5.8.0 and recompiled apache and mod_perl
with it.
 
After that global hash $Cache where all precompiled eperl scripts kept
in becomes corrupted
(even under httpd -X) after several calls:
 
1 req:
http://www.server.com/w/love_text/main.pwml
<http://www.server.com/w/love_text/main.pwml> 
2 req:
http://www.server.com/w/code/main.pwml
<http://www.server.com/w/code/main.pwml> 
3 req:
http://www.server.com/w/gift/main.pwml
<http://www.server.com/w/gift/main.pwml> 
 
all scripts are different. After third call all become unpredictable:
calling http://www.server.com/w/gift/main.pwml
<http://www.server.com/w/gift/main.pwml> 
invokes code/main.pwml and other called script randomly!
 
switching off the Cache (recompiling script ) helps the problem 
all become corect, but what can corruct has so strange?
 
the same files works ok under mod_perl with perl 5.6.1...
 
-vlad


Re: Need help, Global Hash corruption under mod_perl in perl 5.8.0 !?!

Posted by Perrin Harkins <pe...@elem.com>.
On Fri, 2003-07-18 at 09:03, Влад Сафронов wrote:
> I used Apache::ePerl ( http://www.ossp.org/pkg/tool/eperl/
> <http://www.ossp.org/pkg/tool/eperl/> ) for a long time (up to perl
> 5.6.1)
> until our admin install perl 5.8.0 and recompiled apache and mod_perl
> with it.
>  
> After that global hash $Cache where all precompiled eperl scripts kept
> in becomes corrupted
> (even under httpd -X) after several calls

Sounds like a bug in Apache::ePerl.

I'm afraid you'll find that ePerl isn't really being supported by anyone
at this point.  The last release was something like 5 years ago.  I'd
suggest that you consider moving your code to one of the other
templating systems available.  Meanwhile, you can try to debug
Apache::ePerl with the usual methods.

Your admin did recompile ePerl with the new version of perl as well,
didn't he?  And you are running mod_perl 1.x without threads?

- Perrin