Thanos Chatziathanassiou
Fri, 28 Jul 2006 06:40:02 -0700
(Hate to reply to my own mail, but...)for reasons I cannot figure out yet, this part of Load.pm doesn't quite work as expected:
---snip---
opendir(DIR, $file) || die("can't open $file for reading: $!");
my @files = readdir(DIR);
close DIR;
---snip---
@files contains as many elements as files in $file (which in this
context is actually a directory), but instead of filenames, they contain
the empty string. Which of course leads to the deep recursion/out of
memory error, given a directory with enough files.
Still don't get why this happens though.And furthermore, why it works with 1.3.34 (all other things being equal - perl - mod_perl - Apache::ASP version etc) and doesn't on 1.3.36
> I upgraded apache to 1.3.36 yesterday and now the following occurs: > > [ASP WARN] Deep recursion on subroutine "Apache::ASP::Load::Run" at > /usr/local/lib/perl5/site_perl/5.6.1//Apache/ASP/Load.pm line 102. > Out of memory! > > (line number may be a bit off, since I have tested and commented out > the > ``ExcludeDirs'' thing we've talked about in the past) > Obviously ram isn't the problem and the previous 1.3.34 installation > works correct. > > Does anyone have any ideas ? > > Best Regards, > Thanos Chatziathanassiou --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]